<!--

function checkForm(){

	//Email address
	stremail = document.newregistry.email.value	
	if (isEmpty(stremail)|| (isSpace(stremail)) ) {
		alert(msgError_emptyEmail);
		document.newregistry.email.focus();
		document.newregistry.email.value=""
		return false;
	}
	
	if (!isEmail(stremail)) {
		alert(msgError_validEmail);
		document.newregistry.email.focus();
		return false;
	}
	
	strPassword = document.newregistry.paswd.value
	if (isEmpty(strPassword)) {
		alert(msgError_emptyPassword);
		document.newregistry.paswd.value = "";
		document.newregistry.paswd.focus();
		return false;
	}
	
	if (strPassword.length < 6) {
		alert(msgError_lenthPassword);
		document.newregistry.paswd.focus();
		return false;
	}
	
strConfirmPassword = document.newregistry.repaswd.value
	if (isEmpty(strConfirmPassword)) {
		alert(msgError_empty_ConfirmPassword);
		document.newregistry.repaswd.focus();
		return false;
	}
	if (strPassword !== strConfirmPassword) {
		alert(msgError_missmatchPassword);
		document.newregistry.repaswd.value = "";
		document.newregistry.paswd.value = "";
		document.newregistry.paswd.focus();
		return false;
	}
	
	//First Name
	strFirstName = document.newregistry.fname.value	
	if (isEmpty(strFirstName)|| (isSpace(strFirstName)) ) {
		alert(msgError_FirstName);
		document.newregistry.fname.focus();
		document.newregistry.fname.value=""
		return false;
	}

	if (!isName(strFirstName)) {
		alert(msgError_validName);
		document.newregistry.fname.focus();
		return false;
	}
	
	//Last Name
	strLastName = document.newregistry.laname.value	
	if (isEmpty(strLastName)|| (isSpace(strLastName)) ) {
		alert(msgError_LastName);
		document.newregistry.laname.focus();
		document.newregistry.laname.value=""
		return false;
	}

	if (!isName(strLastName)) {
		alert(msgError_validName);
		document.newregistry.laname.focus();
		return false;
	}
	
	//Address
	strAddress = document.newregistry.address.value	
	if (isEmpty(strAddress)|| (isSpace(strAddress)) ) {
		alert(msgError_emptyAddress);
		document.newregistry.address.focus();
		document.newregistry.address.value=""
		return false;
	}
	
	//Home city
	strCity = document.newregistry.city.value	
	if (isEmpty(strCity)|| (isSpace(strCity)) ) {
		alert(msgError_emptyCity);
		document.newregistry.city.focus();
		document.newregistry.city.value=""
		return false;
	}
	
	//Home cusCountry
	strCountry = document.newregistry.cusCountry.value	
	if (isEmpty(strCountry)|| (isSpace(strCountry)) ) {
		alert(msgError_emptyCountry);
		document.newregistry.cusCountry.focus();
		document.newregistry.cusCountry.value=""
		return false;
	}
		
	//Home Telephone
	strHomeTe = document.newregistry.telephone.value	
	if (isEmpty(strHomeTe)|| (isSpace(strHomeTe)) ) {
		alert(msgError_emptyTelephoneRes);
		document.newregistry.telephone.focus();
		document.newregistry.telephone.value=""
		return false;
	}
	
	if (!isTelephone(strHomeTe)) {
		alert(msgError_validTelephoneRes);
		document.newregistry.telephone.focus();
		return false;
	}
	
}
-->