<!--

function greenhostselected () {
	document.form1.FirstName.focus();
}

// function to validate green hosting web form data
function checkinfo() {
	if (this.form1.FirstName.value=='') {
		alert('You must provide your First Name');
		document.form1.FirstName.focus();
		return false;
	}
	else if (this.form1.LastName.value=='') {
		alert('You must provide your Last Name');
		document.form1.LastName.focus();
		return false;
	}
	else if (this.form1.BusinessName.value=='') {
		alert('You must provide a Business Name');
		document.form1.BusinessName.focus();
		return false;
	}
	else if (this.form1.State.value=='') {
		alert('You must provide the State where your Company is located');
		document.form1.State.focus();
		return false;
	}
	else if (this.form1.Email.value=='') {
		alert('You must provide your email address for commincation purposes');
		document.form1.Email.focus();
		return false;
	} 
	else if (!(this.form1.Email.Value=='')) {
		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.form1.Email.value))) {
			alert("The email you entered is not a valid email address.");
			document.form1.Email.focus();
			return false;
		}
	}	
}

//function to check length of zip field and if = 5 move to next field
function ziplength() {
	var fieldval = this.form1.Zip.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==5) {
		this.form1.ZipArea.focus();
	}
}
function areacodelength() {
	var fieldval = this.form1.AreaCode.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==3) {
		this.form1.PhoneArea.focus();
	}
}
function phonearealength() {
	var fieldval = this.form1.PhoneArea.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==3) {
		this.form1.PhoneLast.focus();
	}
}
function phonelastlength() {
	var fieldval = this.form1.PhoneLast.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==4) {
		this.form1.FaxAreaCode.focus();
	}
}
function faxareacodelength() {
	var fieldval = this.form1.FaxAreaCode.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==3) {
		this.form1.FaxArea.focus();
	}
}
function faxarealength() {
	var fieldval = this.form1.FaxArea.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==3) {
		this.form1.FaxLast.focus();
	}
}
function faxlastlength() {
	var fieldval = this.form1.FaxLast.value;
	var fieldvallen = fieldval.length;
	if (fieldvallen==4) {
		this.form1.Email.focus();
	}
}
//-->
