<!--
function emptyvalidation(entered, alertbox) {
	with (entered) {
		if (value==null || value=="") {
			alert(alertbox);
			return false;
		} else {
			return true;
		}
	}
}
function emailvalidation(entered, alertbox) {
	with (entered) {
		apos=value.indexOf("@"); 
		dotpos=value.lastIndexOf(".");
		lastpos=value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) {
			alert(alertbox);
			return false;
		} else {
			return true;
		}
	}
}
function digitvalidation(entered, min, max, alertbox, datatype) {
	with (entered) {
		checkvalue=parseFloat(value);
		if (datatype) {
			smalldatatype=datatype.toLowerCase();
			if (smalldatatype.charAt(0)=="i") {
				checkvalue=parseInt(value);
				if (value.indexOf(".")!=-1) {
					checkvalue=checkvalue+1
				}
			};
		}
		if ((parseFloat(min)==min && value.length<min) || (parseFloat(max)==max && value.length>max) || value!=checkvalue) {
			alert(alertbox);
			return false;
		} else {
			return true;
		}
	}
}
function formvalidation(thisform) {
	with (thisform)	{
		if (emptyvalidation(Name,"Please type your Name.")==false) {
			Name.focus();
			//submit_button.disabled = false;
			return false;
		}
		if (emptyvalidation(Phone,"Please type your Phone Number.")==false) {
			Phone.focus();
		//	submit_button.disabled = false;
			return false;
		}
		if (emptyvalidation(Email,"Please Correct Email.")==false) {
			Email.focus();
		//	submit_button.disabled = false;
			return false;
		}
	}
}
//-->