function celeServer()
{
	//alert(document.form.server.value);	
	if (document.form.server.value=="Celeron 1.7 GHz - \$99/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "Celeron 1.7 GHz";
		document.form.proPrice.value = "99.00";
		document.form.setup.value = "99.00";
	}else
	if (document.form.server.value=="Celeron 1.7 GHz - \$99/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "Celeron 1.7 GHz";
		document.form.proPrice.value = "297.00";
		document.form.setup.value = "00.00";
	}else
	if (document.form.server.value=="Celeron 2.4 GHz - \$129/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "Celeron 2.4 GHz";
		document.form.proPrice.value = "129.00";
		document.form.setup.value = "99.00";
	}else
	if (document.form.server.value=="Celeron 2.4 GHz - \$129/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "Celeron 2.4 GHz";
		document.form.proPrice.value = "387.00";
		document.form.setup.value = "00.00";
	}else
	if (document.form.server.value=="PentiumIV 2.4 GHz - \$149/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "PentiumIV 2.4 GHz";
		document.form.proPrice.value = "149.00";
		document.form.setup.value = "99.00";

	}else
	if (document.form.server.value=="PentiumIV 2.4 GHz - \$149/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "PentiumIV 2.4 GHz";
		document.form.proPrice.value = "447.00";
		document.form.setup.value = "00.00";

	}else
	if (document.form.server.value=="PentiumIV 3.0 GHz - \$199/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "PentiumIV 3.0 GHz";
		document.form.proPrice.value = "199.00";
		document.form.setup.value = "99.00";

	}else
	if (document.form.server.value=="PentiumIV 3.0 GHz - \$199/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "PentiumIV 3.0 GHz";
		document.form.proPrice.value = "597.00";
		document.form.setup.value = "00.00";

	}
	else
	if (document.form.server.value=="Xeon 2.4 GHz - \$249/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "Xeon 2.4 GHz";
		document.form.proPrice.value = "249.00";
		document.form.setup.value = "99.00";

	}
	else
	if (document.form.server.value=="Xeon 2.4 GHz - \$249/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "Xeon 2.4 GHz";
		document.form.proPrice.value = "747.00";
		document.form.setup.value = "00.00";

	}
	else
	if (document.form.server.value=="Xeon 2.8 GHz - \$299/mo \$99 Setup, Payable Monthly"){
	    document.form.processor.value = "Xeon 2.8 GHz";
		document.form.proPrice.value = "299.00";
		document.form.setup.value = "99.00";

	}
	else
	if (document.form.server.value=="Xeon 2.8 GHz - \$299/mo \$0 Setup, Payable Quaterly"){
	    document.form.processor.value = "Xeon 2.8 GHz";
		document.form.proPrice.value = "897.00";
		document.form.setup.value = "00.00";

	}
}



function phdd()
{
    if (document.form.phdd.value=="1")
	{
		document.form.primaryHdd.value = "80 GB Hard Drive";
		document.form.primaryHddPrice.value = "";
	}else
	if (document.form.phdd.value=="2")
	{
		document.form.primaryHdd.value = "Upgrade to 120 GB Drive";
		document.form.primaryHddPrice.value = "30.00";
	}
}

function secphdd()
{
    if (document.form.shdd.value=="none")
	{
		document.form.secondaryHdd.value = "No Secondary";
		document.form.secondaryHddPrice.value = "";
	}else
	if (document.form.shdd.value=="1")
	{
		document.form.secondaryHdd.value = "80 GB Hard Drive";
		document.form.secondaryHddPrice.value = "50.00";
	}else
	if (document.form.shdd.value=="2")
	{
		document.form.secondaryHdd.value = "120 GB Hard Drive";
		document.form.secondaryHddPrice.value = "60.00";
	}
}
function ramVal()
{
    if (document.form.ram.value=="1"){
		document.form.ramm.value = "1024 MB RAM";
		document.form.rammprice.value = "";
	}else
	if (document.form.ram.value=="2"){
		document.form.ramm.value = "Upgrade to 1536 MB RAM";
		document.form.rammprice.value = "35.00";
	}else
	if (document.form.ram.value=="3"){
		document.form.ramm.value = "Upgrade to 2048 MB RAM";
		document.form.rammprice.value = "50.00";
	}else
	if (document.form.ram.value=="512"){
		document.form.ramm.value = "512 MB RAM";
		document.form.rammprice.value = "";
	}else
	if (document.form.ram.value=="1024"){
		document.form.ramm.value = "Upgrade to 1024 MB RAM";
		document.form.rammprice.value = "25.00";
	}
}

function ipVal()
{
    if (document.form.ip_addresses.value=="5ip")
	{
		document.form.ipp.value = "5 IP Addresses";
		document.form.ippPrice.value = "";
	}
}

function bandVal()
{
    if (document.form.bandwidth.value=="1000gb")
	{
		document.form.bandw.value = "1000 GB Bandwidth";
		document.form.bandwPrice.value = "";
	}
}

function portVal()
{
	if (document.form.uplink.value=="100mbps")
	{
		document.form.speed.value = "100 MBPS Uplink";
		document.form.speedPrice.value = "";
	}
}

function opSystem()
{
	var osVal = document.form.os.value;
    if ((osVal=="Windows2003") ){
		document.form.oprSystem.value = "Windows 2003";
		document.form.oprSystemPrice.value = "29.95";
	}
	else{
		document.form.oprSystem.value = osVal;
		document.form.oprSystemPrice.value = "";
	}
	
}

function conSoft()
{
    if (document.form.control_panel.value=="none")
	{
		document.form.conpSoft.value = "No cpanel Software";
		document.form.conpSoftPrice.value = "";
	}else
	if (document.form.control_panel.value=="cPanel")
	{
		document.form.conpSoft.value = "cPanel/WHM (Linux Only)";
		document.form.conpSoftPrice.value = "39.95";
	}
	else
	if (document.form.control_panel.value=="plesk")
	{
		document.form.conpSoft.value = "Plesk with PowerPack(Unlimited Domains)";
		document.form.conpSoftPrice.value = "30.00";
	}
	else
	if (document.form.control_panel.value=="helm")
	{
		document.form.conpSoft.value = "Helm (Win Only)";
		document.form.conpSoftPrice.value = "39.95";
	}
	else
	if (document.form.control_panel.value=="hc")
	{
		document.form.conpSoft.value = "Hosting Controller (Win Only)";
		document.form.conpSoftPrice.value = "19.95";
	}

	else
	if (document.form.control_panel.value=="direct")
	{
		document.form.conpSoft.value = "Direct Admin (Linux Only)";
		document.form.conpSoftPrice.value = "19.95";
	}
}



function managedServices()
{
    if (document.form.managed_services.value=="none")
	{
		document.form.managedService.value = "No Managed Services";
		document.form.managedServicePrice.value = "";
	}else
	if (document.form.managed_services.value=="silver")
	{
		document.form.managedService.value = "Silver Managed Services";
		document.form.managedServicePrice.value = "";
	}else
	if (document.form.managed_services.value=="gold")
	{
		document.form.managedService.value = "Gold Managed Services";
		document.form.managedServicePrice.value = "50.00";
	}else
	if (document.form.managed_services.value=="platinum")
	{
		document.form.managedService.value = "Platinum Managed Services";
		document.form.managedServicePrice.value = "100.00";
	}else
	if (document.form.managed_services.value=="titanium")
	{
		document.form.managedService.value = "Titanium Managed Services";
		document.form.managedServicePrice.value = "200.00";
	}
	
}
function autoBack()
{
    if (document.form.floodguard.value=="none")
	{
		document.form.autBack.value = "No Automated Backup";
		document.form.autBackPrice.value = "";
	}else
	if (document.form.floodguard.value=="10GB")
	{
		document.form.autBack.value = "10GB Backup";
		document.form.autBackPrice.value = "30.00";
	}else
	if (document.form.floodguard.value=="20GB")
	{
		document.form.autBack.value = "20GB Backup";
		document.form.autBackPrice.value = "45.00";
	}else
	if (document.form.floodguard.value=="30GB")
	{
		document.form.autBack.value = "30GB Backup";
		document.form.autBackPrice.value = "60.00";
	}
}

function allVal()
{
	
	
    celeServer();
   // p4Server();
  //  xeonServer();
    //mbpsServer();
    //mbps100Server();
   // gamecServer();
    phdd();
    secphdd();
    ramVal();
    ipVal();
    bandVal();
    portVal();
    opSystem();
    conSoft();
    //microAdd();
    //databaseStore();
	managedServices();
    autoBack();
    if (document.form.fname.value=="")
	{
	   alert("Please Enter Name!");
		document.form.fname.focus();
		return false;
	}
	else
	if (document.form.from.value=="")
	{
	    alert("Please Enter Email Address!");
		document.form.from.focus();
		return false;
	}
	else
	if (document.form.phone.value=="")
	{
	    alert("Please Enter Phone No!");
		document.form.phone.focus();
		return false;
	}
	else
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.from.value))
	{
		return (true)
	}
	else
	{
		alert("Invalid E-mail Address! Please re-enter.")
		return (false)
	}
	
}

