<!--
function test() {alert("here"); return false;}

function validateform() {
	var sErrors = ""; 
		
	if (fieldMissing("first_name") == 1) {
		//concatinate the errors here to display to the user 
		sErrors += "First Name is Required\n"; 
	}
	
	if (fieldMissing ("last_name") == 1){
		sErrors += "Last Name is Required\n"; 
	}
		if (fieldMissing ("title") == 1){
		sErrors += "Title is Required\n"; 
	}
		if (fieldMissing ("company") == 1){
		sErrors += "Company is Required\n"; 
	}
		if (fieldMissing ("email") == 1){
		sErrors += "Email is Required\n"; 
	}
		if (fieldMissing ("phone") == 1){
		sErrors += "Phone is Required\n"; 
	}
	if (fieldMissing ("street") == 1){
		sErrors += "Address is Required\n"; 
	}
	if (fieldMissing ("city") == 1){
		sErrors += "City is Required\n"; 
	}
	if (fieldMissing ("state") == 1){
		sErrors += "State/Province is Required\n"; 
	}
	if (fieldMissing ("zip") == 1){
		sErrors += "Postal Code is Required\n"; 
	}
	if (selectMissing ("country") == 1){
		sErrors += "Country is Required\n"; 
	}
	if (selectMissing ("00N000000054pZM") == 1){
		sErrors += "Email System is Required\n"; 
	}
	if (fieldMissing ("00N00000004yWmU") == 1){
		sErrors += "Number of Email Users is Required\n"; 
	}

	//check to see if there were any errors 
	if (sErrors != "") {
		//display them 
		alert(sErrors);
		return false;
	}
	else {
		//alert("no errors");
		return true; 
	}
	
}
function fieldMissing(sVal) {
	var oElement = document.getElementById(sVal); 
	//alert(sVal + ": " + oElement.value); 
	
	if (Trim(oElement.value).length == 0)
 {
		return 1
	}
	else {
		return 0 
	}
}

function selectMissing(sFieldName) { 
	var sField = window.document.getElementById(sFieldName); 
	if (sField == null) { 
		alert(sFieldName + " field is not found"); 
		return false; 
	} 
	if (sField.selectedIndex == 0) 
		return 1; 
	else 
		return 0; 
}

function Trim(TRIM_VALUE){
if(TRIM_VALUE.length < 1){
return"";
}
TRIM_VALUE = RTrim(TRIM_VALUE);
TRIM_VALUE = LTrim(TRIM_VALUE);
if(TRIM_VALUE==""){
return "";
}
else{
return TRIM_VALUE;
}
} //End Function

function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;

while(iTemp > -1){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(0,iTemp +1);
break;
}
iTemp = iTemp-1;

} //End While
return strTemp;

} //End Function

function LTrim(VALUE){
var w_space = String.fromCharCode(32);
if(v_length < 1){
return"";
}
var v_length = VALUE.length;
var strTemp = "";

var iTemp = 0;

while(iTemp < v_length){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(iTemp,v_length);
break;
}
iTemp = iTemp + 1;
} //End While
return strTemp;
} //End Function


-->