// JavaScript Document
function addtotal()
{
//var str1=document.form1.Processor.length;
var total=214;
for (var i=0; i < document.form1.Processor.length; i++)
   {
   if (document.form1.Processor[i].checked)
      {
      var rad_val = document.form1.Processor[i].value;
      }
   }
   if(rad_val=="AMDX5000")
   {
   total=total+35;
   }
    if(rad_val=="AMDPhenom9500")
   {
   total=total+50;
   }
  
   for (var i=0; i < document.form1.Memory.length; i++)
   {
   if (document.form1.Memory[i].checked)
      {
      var rad_val = document.form1.Memory[i].value;
      }
   }
    if(rad_val=="2GBPC3200")
   {
   total=total+45;
   }
    if(rad_val=="4GBPC5300")
   {
   total=total+65;
   }
    
  // alert(total);
   for (var i=0; i < document.form1.Hd1.length; i++)
   {
   if (document.form1.Hd1[i].checked)
      {
      var rad_val = document.form1.Hd1[i].value;
      }
   }
     if(rad_val=="120IDE")
   {
     var str1=document.form1.upgrade_120IDE.value;
	 if(str1=="160GB")
	 {
		total=total+30; 
	 }
	  if(str1=="250GB")
	 {
		total=total+40; 
	 }
	  if(str1=="500GB")
	 {
		total=total+55; 
	 }
	  if(str1=="750GB")
	 {
		total=total+75; 
	 }
	  if(str1=="1000GB")
	 {
		total=total+95; 
	 }
	  if(str1=="74GBRAPTOR")
	 {
		total=total+45; 
	 }
   }
   
    if(rad_val=="2x120IDEHWR1")
   {
	   total=total+40; 
     var str1=document.form1.upgrade_2x120IDEHWR1.value;
	 if(str1=="160GB")
	 {
		total=total+35; 
	 }
	  if(str1=="250GB")
	 {
		total=total+45; 
	 }
	  if(str1=="500GB")
	 {
		total=total+85; 
	 }
	  if(str1=="750GB")
	 {
		total=total+125; 
	 }
	  if(str1=="1000GB")
	 {
		total=total+150; 
	 }
	  if(str1=="74GBRAPTOR")
	 {
		total=total+65; 
	 }
   }
  
  if(rad_val=="73SCSI")
   {
	   total=total+85; 
     var str1=document.form1.upgrade_73SCSI.value;
	 if(str1=="147GB")
	 {
		total=total+35; 
	 }
	  if(str1=="300GB")
	 {
		total=total+55; 
	 }
	 
	  if(str1=="36GB")
	 {
		total=total-10; 
	 }	 
	 if(document.form1.SCSI_15K_upgrade.checked)
	 total=total+35;
	 if(document.form1.SCSI_SAS_upgrade.checked)
	 total=total+55;
	
   }
  if(rad_val=="73SCSIHWR1")
   {
	   total=total+145; 
     var str1=document.form1.upgrade_73SCSIHWR1.value;
	 if(str1=="147GB")
	 {
		total=total+75; 
	 }
	  if(str1=="300GB")
	 {
		total=total+125; 
	 }
	  if(str1=="36GB")
	 {
		total=total-20; 
	 }
	 
	 if(document.form1.SCSIHWR1_15K_upgrade.checked)
	 total=total+45;
	 if(document.form1.SCSIHWR1_SAS_upgrade.checked)
	 total=total+65;
	// alert(total);
   }
  
 
   for (var i=0; i < document.form1.Hd2.length; i++)
   {
   if (document.form1.Hd2[i].checked)
      {
      var rad_val = document.form1.Hd2[i].value;
      }
   }

   if(rad_val=="120IDE_hd2")
   {
	   
     var str1=document.form1.upgrade_hd2_120IDE.value;
	 if(str1=="160GB")
	 {
		total=total+30; 
	 }
	  if(str1=="250GB")
	 {
		total=total+45; 
	 }
	  if(str1=="500GB")
	 {
		total=total+55; 
	 }
	  if(str1=="750GB")
	 {
		total=total+65; 
	 }
	  if(str1=="1000GB")
	 {
		total=total+95; 
	 }
	  if(str1=="74GBRAPTOR")
	 {
		total=total+45; 
	 }
   }
	
	 if(rad_val=="73SCSI_hd2")
   {
	   total=total+65; 
     var str1=document.form1.upgrade_hd2_73SCSI.value;
	if(str1=="147GB")
	 {
		total=total+55; 
	 }
	  if(str1=="300GB")
	 {
		total=total+105; 
	 }
	  if(str1=="36GB")
	 {
		total=total-10; 
	 }
	 
	 if(document.form1.SCSIHD2_15K_upgrade.checked)
	 total=total+35;
	 if(document.form1.SCSIHD2_SAS_upgrade.checked)
	 total=total+45;
   }
   if(rad_val=="NoHd2")
   {
	   total=total-5; 
   }
	
   for (var i=0; i < document.form1.RemoteBackup.length; i++)
   {
   if (document.form1.RemoteBackup[i].checked)
      {
      var rad_val = document.form1.RemoteBackup[i].value;
      }
   }

    if(rad_val=="LWGuardian")
   {
	   total=total+125; 
     var str1=document.form1.GuardianDiskSpace.value;
	if(str1=="Guardian250GB")
	 {
		total=total+75; 
	 }
	  if(str1=="Guardian500GB")
	 {
		total=total+175; 
	 }
	  if(str1=="Guardian1000GB")
	 {
		total=total+375; 
	 }
	 
	 if(document.form1.GuardianMySQL.checked)
	 total=total+75;
	 if(document.form1.GuardianCPanel.checked)
	 total=total+0;
   }

    if(rad_val=="backup50")
   {
	   total=total+25;  
	 
	 if(document.form1.OffsiteBackup.checked)
	 total=total+0;
	 
   }
  
    if(rad_val=="backup100")
   {
	   total=total+75;  
	 
	 if(document.form1.OffsiteBackup.checked)
	 total=total+0;
	 
   }
 
   for (var i=0; i < document.form1.OS.length; i++)
   {
   if (document.form1.OS[i].checked)
      {
      var rad_val = document.form1.OS[i].value;
      }
   }

    if(rad_val=="W2K3Server")
   {
	   total=total+30; 
	    if(document.form1.W2K3Enterprise.checked)
	 total=total+15;
     var str1=document.form1.MSSQL.value;
	 if(str1=="MSSQLServerWorkgroup")
	 {
		total=total+100; 
	 }
	  if(str1=="MSSQLServer2005")
	 {
		total=total+275; 
	 }
	  if(str1=="MSSQLServer")
	 {
		total=total+275; 
	 }
	  if(str1=="MSSQL250")
	 {
		total=total+45; 
	 }
	  if(str1=="MSSQL500")
	 {
		total=total+65; 
	 }
	 
   }
 
    for (var i=0; i < document.form1.ControlPanel.length; i++)
   {
   if (document.form1.ControlPanel[i].checked)
      {
      var rad_val = document.form1.ControlPanel[i].value;
      }
   }
  
   if(rad_val=="Cpanel")
   {
	   total=total+45; 
	    if(document.form1.ServerSecure.checked)
	 total=total+0;
	  if(document.form1.Fantastico.checked)
	 total=total+0;
    
	 
   }
 //
   if(rad_val=="Plesk")
   {
	   total=total+20;	
     var str1=document.form1.PleskAddOn.value;
	 if(str1=="AppPack")
	 {
		total=total+5; 
	 }
	  if(str1=="PowerPack")
	 {
		total=total+10; 
	 } 
	 
   }
 
 //
     for (var i=0; i < document.form1.SetupFee.length; i++)
   {
   if (document.form1.SetupFee[i].checked)
      {
      var rad_val = document.form1.SetupFee[i].value;
      }
   }
    if(rad_val=="setup150")
   {
   total=total-15;
   }
    if(rad_val=="setup250")
   {
   total=total-25;
   }
    if(rad_val=="setup350")
   {
   total=total-35;
   }
   document.getElementById("price1").innerHTML="Price: $"+total+"/mon";
   document.getElementById("price").innerHTML="Price: $"+total+"/mon";
   document.getElementById("totalvalue").value=total;
}
