<!--

function checkForm(){

	//Full Name
	strName = document.askdoctorfrm.name.value	
	if (isEmpty(strName)|| (isSpace(strName)) ) {
		alert(msgError_emptyName);
		document.askdoctorfrm.name.focus();
		document.askdoctorfrm.name.value=""
		return false;
	}

	if (!isName(strName)) {
		alert(msgError_validName);
		document.askdoctorfrm.name.focus();
		return false;
	}

	//Address
	strAddress = document.askdoctorfrm.address.value	
	if (isEmpty(strAddress)|| (isSpace(strAddress)) ) {
		alert(msgError_emptyAddress);
		document.askdoctorfrm.address.focus();
		document.askdoctorfrm.address.value=""
		return false;
	}
	
	//Email address
	stremail = document.askdoctorfrm.email.value	
	if (isEmpty(stremail)|| (isSpace(stremail)) ) {
		alert(msgError_emptyEmail);
		document.askdoctorfrm.email.focus();
		document.askdoctorfrm.email.value=""
		return false;
	}
	
	if (!isEmail(stremail)) {
		alert(msgError_validEmail);
		document.askdoctorfrm.email.focus();
		return false;
	}

	//Home Telephone
	strHomeTe = document.askdoctorfrm.telphone.value	
	if (isEmpty(strHomeTe)|| (isSpace(strHomeTe)) ) {
		alert(msgError_emptyTelephoneRes);
		document.askdoctorfrm.telphone.focus();
		document.askdoctorfrm.telphone.value=""
		return false;
	}
	
	if (!isTelephone(strHomeTe)) {
		alert(msgError_validTelephoneRes);
		document.askdoctorfrm.telphone.focus();
		return false;
	}
	
	strInTitle = document.askdoctorfrm.intitle.value	
	if (isEmpty(strInTitle)|| (isSpace(strInTitle)) ) {
		alert(msgError_emptyJobTitle);
		document.askdoctorfrm.intitle.focus();
		document.askdoctorfrm.intitle.value=""
		return false;
	}
	
	//Inquiry/message
	strMessage = document.askdoctorfrm.indescription.value	
	if (isEmpty(strMessage)|| (isSpace(strMessage)) ) {
		alert(msgError_emptyComment);
		document.askdoctorfrm.indescription.focus();
		document.askdoctorfrm.indescription.value=""
		return false;
	}

}
-->