// JavaScript Document
var isPost = false;
function validateForm(objForm) {
	if  ( isPost ) {
		alert("You have press the SUBMIT button already");
		return false;
	} else if ( IsEmpty(objForm.name.value)) {
		Warning(objForm.name , "Please specify your Name");
		return false;
	} else if ( IsEmpty(objForm.surname.value)) {
		Warning(objForm.surname , "Please specify your Last Name");
		return false;
	} else if ( IsEmpty(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address");
		return false;
	} else if ( ! IsEmail(objForm.email.value)) {
		Warning(objForm.email ,"Please specify your Email Address in the right format");
		return false;
	} else if ( IsEmpty(objForm.email2.value)) {
		Warning(objForm.email2 ,"Please specify your Email Address confirm");
		return false;
	} else if ( ! IsEmail(objForm.email2.value)) {
		Warning(objForm.email2 ,"Please specify your Email Address in the right format");
		return false;
	} else if (objForm.email.value!=objForm.email2.value){
			Warning(objForm.email2 ,"Confirm email is not match")
			return false;
	} else if ( IsEmpty(objForm.info.value)) {
		Warning(objForm.info , "Please specify your Additional Information");
		return false;
	} else if ( IsEmpty(objForm.password.value)) {
		Warning(objForm.password , "Please insert validation code");
		return false;
	} else {
		isPost = true;
		objForm.btnSubmit.disabled = true;
		return true;
	}
}	