<!--
	
// this is the stranded validation for an online application.
function checkForm(){


//Name
	strName = document.csr.name.value	
	if (isEmpty(strName)|| (isSpace(strName)) ) {
		alert(msgError_emptyName);
		document.csr.name.focus();
		document.csr.name.value=""
		return false;
	}
	
	if (!isName(strName)) {
		alert(msgError_validName);
		document.csr.name.focus();
		return false;
	}

//School
	strSchool = document.csr.school.value	
	if (isEmpty(strSchool)|| (isSpace(strSchool)) ) {
		alert(msgError_emptySchool);
		document.csr.school.focus();
		document.csr.school.value=""
		return false;
	}
	
	if (!isName(strSchool)) {
		alert(msgError_validSchool);
		document.csr.school.focus();
		return false;
	}
	
//Address
	strAddress = document.csr.address.value	
	if (isEmpty(strAddress)|| (isSpace(strAddress))) {
		alert(msgError_emptyAddress);
		document.csr.address.focus();
		document.csr.address.value=""
		return false;
		
	}
	
		if (strAddress.length > 200) {
			alert(msgError_lengthOfAddress);
			document.csr.address.focus();
		return false;
		}

//Telephone Home
strTel = document.csr.tel_home.value	
	if (isEmpty(strTel)|| (isSpace(strTel)) ) {
		alert(msgError_emptyResiTelephone);
		document.csr.tel_home.focus();
		document.csr.tel_home.value=""
		return false;
	}
	
	if (!isTelephone(strTel))  {
		alert(msgError_validResiTelephone);
		document.csr.tel_home.focus();
		return false;
	}
	
//Telephone Mobile
strMobile = document.csr.tel_mobile.value
	if (isMobile(strMobile))  {
		alert(msgError_validMobileNumber);
		document.csr.tel_mobile.focus();
		return false;
		}
	
//Email Address
	strEmail = document.csr.email.value	
	if (isEmpty(strEmail)||(isSpace(strEmail))) {
		alert(msgError_emptyEmail);
		document.csr.email.focus();
		document.csr.email.value=""
		return false;
	}
	
	if (!isEmail(strEmail)) {
		alert(msgError_validEmail);
		document.csr.email.focus();
		return false;
	}

//Workshop
	strWorkshop = document.csr.workshop.value	
	if (isEmpty(strWorkshop)|| (isSpace(strWorkshop)) ) {
		alert(msgError_emptyWorkshop);
		document.csr.workshop.focus();
		document.csr.workshop.value=""
		return false;
	}
	
	if (!isName(strWorkshop)) {
		alert(msgError_validWorkshop);
		document.csr.workshop.focus();
		return false;
	}
	
//Date
strDate = document.csr.date.value	
	if (isEmpty(strDate)|| (isSpace(strDate)) ) {
		alert(msgError_emptyDate);
		document.csr.date.focus();
		document.csr.date.value=""
		return false;
	}
    if(!isDate(strDate)){
		//alert(msgError_validDate);
		document.csr.date.focus();
		return false;
	}

//Time
strTime = document.csr.time.value	
	if (!isEmpty(strTime)) {
		if (!isTime(strTime)) {
		alert(msgError_validTime);
		document.csr.time.focus();
		return false;
		}
	}
	

	
//Venue
	strVenue = document.csr.venue.value	
	if (isEmpty(strVenue)|| (isSpace(strVenue)) ) {
		alert(msgError_emptyVenue);
		document.csr.venue.focus();
		document.csr.venue.value=""
		return false;
	}
	
	if (!isName(strVenue)) {
		alert(msgError_validVenue);
		document.csr.venue.focus();
		return false;
	}

//Audience
if (document.csr.audience.selectedIndex==0) {
		alert("Please select Type of Audience");
		document.csr.audience.focus();
		return false;
		}

//Other
strOther = document.csr.other.value
if (document.csr.audience.selectedIndex==4) {	
if(isEmpty(strOther)){
		alert(msgError_emptyOther);
		document.csr.other.focus();
		return false;
	}
}
	
}
-->
