<!--
var dataOK
var msg

function CheckLength(formElement, strLabel, requiredLen) {
	if (formElement.value.length < requiredLen) 
		return false;
	else
		return true;
}

function CheckEmail(formObj, strLabel, requiredLen) {
	if (formObj.value.indexOf("@")<3){
		alert("This Email address appears to be wrong. Please check the prefix and '@' sign.");
		return false;
	}
	else
		return true;
 }

function CheckAll(theForm) {
dataOK = true
msg = ""
	if (CheckLength(theForm.SiteName,"Invalid Site Name",2) == false) {
		msg = msg + "SiteName" + "\n";
		dataOK = false;
	}	

	if (CheckLength(theForm.SiteURL,"Invalid Site URL",3) == false) {
		msg = msg + "Invalid Site URL" + "\n";
		dataOK = false;
	}
		
	if (CheckLength(theForm.ContactName,"Invalid Contact Information",2) == false) {
		msg = msg + "Invalid Contact Information" + "\n";
		dataOK = false;
	}
	
	if (CheckEmail(theForm.Email,"Invalid Email Address",3) == false) {
		msg = msg + "Invalid Email Address" + "\n";
		dataOK = false;
	}
	
	if (theForm.Captcha.value != "147221") {
		msg = msg + "Enter Code from image" + "\n";
		dataOK = false;
	}		
	
	if (dataOK == false)
		alert("Form errors:\n" + msg);
			
	return dataOK
}
//-->	
