<!--//

var nametext = "Please Input Your Name"
var firstnametext = "Please Input Your First Name"
var lastnametext = "Please Input Your Last Name"
var cnametext = "Please Input Your Company Name"
var emailtext = "Please Input Your Email Address"
var missing1 = "Invalid Email Address, @ Is Not Found"
var missing2 = "Invalid Email Address, . Is Not Found"
var officeteltext = "Please Input Your Office Tel. No."
var hptext = "Please Input Your Mobile No."
var addresstext = "Please Input Your Address"
var enquirytext = "Please Input Your Enquiry"
var referby = "Please Let Us Know How You get to know us"

function contactus()
{
	if (document.contactForm.name.value=="")
	{
		window.alert(nametext)
		document.contactForm.name.focus();
		return false;
	}
	if (document.contactForm.cname.value=="")
	{
		window.alert(cnametext)
		document.contactForm.cname.focus();
		return false;
	}
	if (document.contactForm.email.value=="")
	{
		window.alert(emailtext)
		document.contactForm.email.focus();
		document.contactForm.email.select();
		return false;
	}
	if (document.contactForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.contactForm.email.focus();
		document.contactForm.email.select();
		return false;
	}
	if (document.contactForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.contactForm.email.focus();
		document.contactForm.email.select();
		return false;
	}
	if (document.contactForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.contactForm.officetel.focus();
		return false;
	}
	if (document.contactForm.hp.value=="")
	{
		window.alert(hptext)
		document.contactForm.hp.focus();
		return false;
	}
	if (document.contactForm.enquiry.value=="")
	{
		window.alert(enquirytext)
		document.contactForm.enquiry.focus();
		return false;
	}
	if (document.contactForm.referby.value=="")
	{
		window.alert(referby)
		document.contactForm.referby.focus();
		return false;
	}
	return true;
}

function dedi()
{
	if (document.dediForm.name.value=="")
	{
		window.alert(nametext)
		document.dediForm.name.focus();
		return false;
	}
	if (document.dediForm.cname.value=="")
	{
		window.alert(cnametext)
		document.dediForm.cname.focus();
		return false;
	}
	if (document.dediForm.email.value=="")
	{
		window.alert(emailtext)
		document.dediForm.email.focus();
		return false;
	}
	if (document.dediForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.dediForm.email.focus();
		document.dediForm.email.select();
		return false;
	}
	if (document.dediForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.dediForm.email.focus();
		document.dediForm.email.select();
		return false;
	}
	if (document.dediForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.dediForm.officetel.focus();
		return false;
	}
	if (document.dediForm.hp.value=="")
	{
		window.alert(hptext)
		document.dediForm.hp.focus();
		return false;
	}
	if (document.dediForm.address.value=="")
	{
		window.alert(addresstext)
		document.dediForm.address1.focus();
		return false;
	}
	return true;
}

function eCommerce()
{
	if (document.ecommerceForm.name.value=="")
	{
		window.alert(nametext)
		document.ecommerceForm.name.focus();
		return false;
	}
	if (document.ecommerceForm.cname.value=="")
	{
		window.alert(cnametext)
		document.ecommerceForm.cname.focus();
		return false;
	}
	if (document.ecommerceForm.email.value=="")
	{
		window.alert(emailtext)
		document.ecommerceForm.email.focus();
		return false;
	}
	if (document.ecommerceForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.ecommerceForm.email.focus();
		document.ecommerceForm.email.select();
		return false;
	}
	if (document.ecommerceForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.ecommerceForm.email.focus();
		document.ecommerceForm.email.select();
		return false;
	}
	if (document.ecommerceForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.ecommerceForm.officetel.focus();
		return false;
	}
	if (document.ecommerceForm.hp.value=="")
	{
		window.alert(hptext)
		document.ecommerceForm.hp.focus();
		return false;
	}
	if (document.ecommerceForm.enquiry.value=="")
	{
		window.alert(enquirytext)
		document.ecommerceForm.enquiry.focus();
		return false;
	}
	return true;
}

function maintain()
{
	if (document.maintenanceForm.name.value=="")
	{
		window.alert(nametext)
		document.maintenanceForm.name.focus();
		return false;
	}
	if (document.maintenanceForm.cname.value=="")
	{
		window.alert(cnametext)
		document.maintenanceForm.cname.focus();
		return false;
	}
	if (document.maintenanceForm.email.value=="")
	{
		window.alert(emailtext)
		document.maintenanceForm.email.focus();
		return false;
	}
	if (document.maintenanceForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.maintenanceForm.email.focus();
		document.maintenanceForm.email.select();
		return false;
	}
	if (document.maintenanceForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.maintenanceForm.email.focus();
		document.maintenanceForm.email.select();
		return false;
	}
	if (document.maintenanceForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.maintenanceForm.officetel.focus();
		return false;
	}
	if (document.maintenanceForm.hp.value=="")
	{
		window.alert(hptext)
		document.maintenanceForm.hp.focus();
		return false;
	}
	if (document.maintenanceForm.enquiry.value=="")
	{
		window.alert(enquirytext)
		document.maintenanceForm.enquiry.focus();
		return false;
	}
	return true;
}

function hostValidate()
{
	if (document.hostform.domain.value=="")
	{
		window.alert("Please Input Your Desired Domain Name")
		document.hostform.domain.focus();
		return false;
	}
	var radio_choice = false;
	for (counter = 0; counter < document.hostform.regtype.length; counter++)
	{
		if (document.hostform.regtype[counter].checked)
		radio_choice = true; 
	}
	if (!radio_choice)
	{
		window.alert("Please Choose Your Registration Type for Your Domain")
		return false;
	}
	var radio_choice2 = false;
	for (counter = 0; counter < document.hostform.hostplan.length; counter++)
	{
		if (document.hostform.hostplan[counter].checked)
		radio_choice2 = true; 
	}
	if (!radio_choice2)
	{
		window.alert("Please Choose Your Hosting Plan")
		return false;
	}
	
	var radio_choice3 = false;
	for (counter = 0; counter < document.hostform.platform.length; counter++)
	{
		if (document.hostform.platform[counter].checked)
		radio_choice3 = true; 
	}
	if (!radio_choice3)
	{
		window.alert("Please Choose Your Platform")
		return false;
	}
	if (document.hostform.firstname.value=="")
	{
		window.alert(firstnametext)
		document.hostform.firstname.focus();
		return false;
	}
	if (document.hostform.lastname.value=="")
	{
		window.alert(lastnametext)
		document.hostform.lastname.focus();
		return false;
	}
	if (document.hostform.cname .value=="")
	{
		window.alert(cnametext)
		document.hostform.cname .focus();
		return false;
	}
	if (document.hostform.email.value=="")
	{
		window.alert(emailtext)
		document.hostform.email.focus();
		return false;
	}
	if (document.hostform.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.hostform.email.focus();
		document.hostform.email.select();
		return false;
	}
	if (document.hostform.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.hostform.email.focus();
		document.hostform.email.select();
		return false;
	}
	if (document.hostform.officetel.value=="")
	{
		window.alert(officeteltext)
		document.hostform.officetel.focus();
		return false;
	}
	if (document.hostform.hp.value=="")
	{
		window.alert(hptext)
		document.hostform.hp.focus();
		return false;
	}
	if (document.hostform.address1.value=="")
	{
		window.alert(addresstext)
		document.hostform.address1.focus();
		return false;
	}
	if (document.hostform.city.value=="")
	{
		window.alert("Please Input Your City")
		document.hostform.city.focus();
		return false;
	}
	if (document.hostform.state.value=="")
	{
		window.alert("Please Input Your State")
		document.hostform.state.focus();
		return false;
	}
	if (document.hostform.country.value=="0")
	{
		window.alert("Please Select Your Country")
		document.hostform.country.focus();
		return false;
	}
	if (document.hostform.zip.value=="")
	{
		window.alert("Please Input Your Zip/Postal Code")
		document.hostform.zip.focus();
		return false;
	}

	return true;
}
	
function custom_dedi()
{
	if (document.dediForm.name.value=="")
	{
		window.alert(nametext)
		document.dediForm.name.focus();
		return false;
	}
	if (document.dediForm.email.value=="")
	{
		window.alert(emailtext)
		document.dediForm.email.focus();
		return false;
	}
	if (document.dediForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.dediForm.email.focus();
		document.dediForm.email.select();
		return false;
	}
	if (document.dediForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.dediForm.email.focus();
		document.dediForm.email.select();
		return false;
	}
	if (document.dediForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.dediForm.officetel.focus();
		return false;
	}
	if (document.dediForm.hp.value=="")
	{
		window.alert(hptext)
		document.dediForm.hp.focus();
		return false;
	}
	if (document.dediForm.cpu.value=="")
	{
		window.alert("Please Input Your CPU Type")
		document.dediForm.cpu.focus();
		return false;
	}
	if (document.dediForm.ram.value=="")
	{
		window.alert("Please Input Your Memory (RAM)")
		document.dediForm.ram.focus();
		return false;
	}
	if (document.dediForm.hd1.value=="")
	{
		window.alert("Please Input Your Harddisk 1 (Primary)")
		document.dediForm.hd1.focus();
		return false;
	}
	if (document.dediForm.hd2.value=="")
	{
		window.alert("Please Input Your Harddisk 2")
		document.dediForm.hd2.focus();
		return false;
	}		
	if (document.dediForm.ip.value=="")
	{
		window.alert("Please Input Number of IP")
		document.dediForm.ip.focus();
		return false;
	}
	if (document.dediForm.bandwidth.value=="")
	{
		window.alert("Please Input Your Bandwidth")
		document.dediForm.bandwidth.focus();
		return false;
	}
	return true;
}

function domainValidate()
{
	if (document.domainForm.name.value=="")
	{
		window.alert(nametext)
		document.domainForm.name.focus();
		return false;
	}
	if (document.domainForm.cname.value=="")
	{
		window.alert(cnametext)
		document.domainForm.cname.focus();
		return false;
	}
	if (document.domainForm.email.value=="")
	{
		window.alert(emailtext)
		document.domainForm.email.focus();
		return false;
	}
	if (document.domainForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.domainForm.email.focus();
		document.domainForm.email.select();
		return false;
	}
	if (document.domainForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.domainForm.email.focus();
		document.domainForm.email.select();
		return false;
	}
	if (document.domainForm.officetel.value=="")
	{
		window.alert(officeteltext)
		document.domainForm.officetel.focus();
		return false;
	}
	if (document.domainForm.hp.value=="")
	{
		window.alert(hptext)
		document.domainForm.hp.focus();
		return false;
	}
	if (document.domainForm.address.value=="")
	{
		window.alert(addresstext)
		document.domainForm.address.focus();
		return false;
	}
	return true;
}

function seValidate()
{
	if (document.seForm.siteTitle.value=="")
	{
		window.alert("Please Input Your Site Title")
		document.seForm.siteTitle.focus();
		return false;
	}
	if (document.seForm.url.value=="")
	{
		window.alert("Please Input Your Site URL")
		document.seForm.url.focus();
		return false;
	}
	if (document.seForm.url.value.indexOf("@")==-1)
	{
		window.alert("Invalid URL Address, @ Is Not Found");
		document.seForm.url.focus();
		document.seForm.url.select();
		return false;
	}
	if (document.seForm.url.value.indexOf(".")==-1)
	{
		window.alert("Invalid URL Address, . Is Not Found");
		document.seForm.url.focus();
		document.seForm.url.select();
		return false;
	}
	if (document.seForm.name.value=="")
	{
		window.alert(nametext)
		document.seForm.name.focus();
		return false;
	}
	if (document.seForm.email.value=="")
	{
		window.alert(emailtext)
		document.seForm.email.focus();
		return false;
	}
	if (document.seForm.email.value.indexOf("@")==-1)
	{
		window.alert(missing1);
		document.seForm.email.focus();
		document.seForm.email.select();
		return false;
	}
	if (document.seForm.email.value.indexOf(".")==-1)
	{
		window.alert(missing2);
		document.seForm.email.focus();
		document.seForm.email.select();
		return false;
	}
	if (document.seForm.siteDesc.value=="")
	{
		window.alert("Please Input Your Site Description")
		document.seForm.siteDesc.focus();
		return false;
	}
	if (document.seForm.keywords.value=="")
	{
		window.alert("Please Input Your Keywords")
		document.seForm.keywords.focus();
		return false;
	}
	if (document.seForm.category.value=="0")
	{
		window.alert("Please Select Your Category")
		document.seForm.category.focus();
		return false;
	}
	if (document.seForm.company.value=="")
	{
		window.alert(cnametext)
		document.seForm.company.focus();
		return false;
	}
	if (document.seForm.address.value=="")
	{
		window.alert(addresstext)
		document.seForm.address.focus();
		return false;
	}
	if (document.seForm.city.value=="")
	{
		window.alert("Please Input Your City")
		document.seForm.city.focus();
		return false;
	}
	if (document.seForm.state.value=="")
	{
		window.alert("Please Input Your State")
		document.seForm.state.focus();
		return false;
	}
	if (document.seForm.postcode.value=="")
	{
		window.alert("Please Input Your Postcode")
		document.seForm.postcode.focus();
		return false;
	}
	if (document.seForm.country.value=="0")
	{
		window.alert("Please Select Your Country")
		document.seForm.country.focus();
		return false;
	}
	if (document.seForm.tel.value=="")
	{
		window.alert("Please Input Your Telephone No.")
		document.seForm.tel.focus();
		return false;
	}
	if (document.seForm.fax.value=="")
	{
		window.alert("Please Input Your Fax No.")
		document.seForm.fax.focus();
		return false;
	}
	return true;
}
//-->