 
function CheckEmptyFields() {
	
	if (document.LayoutRegion2FORM.firstname.value=="") {
		fixElement(document.LayoutRegion2FORM.firstname, "Fill in first name.");
		return false
	}
	else if (document.LayoutRegion2FORM.lastname.value=="") {
		fixElement(document.LayoutRegion2FORM.lastname, "Fill in last name.");
		return false
	}
	else if (document.LayoutRegion2FORM.company.value=="") {
		fixElement(document.LayoutRegion2FORM.company, "Fill in a company or enter 'none'.");
		return false
	}
	else if (document.LayoutRegion2FORM.position.value=="") {
		fixElement(document.LayoutRegion2FORM.position, "Fill in position or enter 'none'.");
		return false
	}
	else if (document.LayoutRegion2FORM.address.value=="") {
		fixElement(document.LayoutRegion2FORM.address, "Fill in address.");
		return false
	}
	else if (document.LayoutRegion2FORM.city.value=="") {
		fixElement(document.LayoutRegion2FORM.city, "Fill in city.");
		return false
	}	
	else if (document.LayoutRegion2FORM.zip.value=="") {
		fixElement(document.LayoutRegion2FORM.zip, "Fill in postal code.");
		return false
	}
	else if (document.LayoutRegion2FORM.country.options[document.LayoutRegion2FORM.country.selectedIndex].value==0) 				  {
		fixElement2(document.LayoutRegion2FORM.country, "Fill in country.");
		return false
	}
	else if (document.LayoutRegion2FORM.telephone.value=="") {
		fixElement(document.LayoutRegion2FORM.telephone, "Fill in phone number.");
		return false
	}
	else if (document.LayoutRegion2FORM.email.value.indexOf("@") == -1 ||
		document.LayoutRegion2FORM.email.value.indexOf(".") == -1) {
		fixElement(document.LayoutRegion2FORM.email, "Include a proper email address.");
		return false
	}		
	else if (document.LayoutRegion2FORM.source.options[document.LayoutRegion2FORM.source.selectedIndex].value==0) {
		fixElement2(document.LayoutRegion2FORM.source, "Fill in how you heard about us.");
		return false
	}
	
		
	/*
	else if (document.LayoutRegion2FORM.total_num.value=="") {
		fixElement(document.LayoutRegion2FORM.total_num, "Fill in total numbers of users in organization.");
		return false
	}	
	else if (document.LayoutRegion2FORM.platforms.value=="") {
		fixElement(document.LayoutRegion2FORM.platforms, "Fill in server platforms.");
		return false
	}
	
	*/
	
	//PROCEED WITH FORM SUBMISSION, IF FIELDS HAVE VALID DATA
	return
	
}
 
 
function FaxNum()
{
	var deffaxnum = "000-000-0000"
	var faxnum = window.document.LayoutRegion2FORM.fax.value
	if (faxnum == "")
	{
	window.document.LayoutRegion2FORM.fax.value=deffaxnum;
	faxnum = window.document.LayoutRegion2FORM.fax.value;
//	alert("Current faxnum is " + faxnum);
		}
}
 
function putFocus(formInst, elementInst) {
  if (document.forms.length > 0) {
   document.forms[formInst].elements[elementInst].focus();
  }
// The JavaScript Source!! http://javascript.internet.com
// The first number in the "onLoad" command in the body
// tag determines which form to use. Counting starts with '0'
// The second number in the "onLoad" command in the body
// tag determines the form's focus. Counting starts with '0'
//See also the onClick="putFocusOnload();" in the Reset button Input tag
}
 
function fixElement(element, message) {
	alert(message);
	status=message;
	element.focus();
	element.select();
	
}
 
function fixElement2(element, message) {
	alert(message);
	status=message;
	element.focus();
//	element.select();
}

