// 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.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.country.value)) {
		Warning(objForm.country , "Please specify your Country");
		return false;
	} else if ( IsEmpty(objForm.tel.value)) {
		Warning(objForm.tel , "Please specify your Telephone");
		return false;
	} else if ( IsEmpty(objForm.category.value)) {
		Warning(objForm.category , "Please specify your Category");
		return false;
	} else if ( IsEmpty(objForm.askprice.value)) {
		Warning(objForm.askprice , "Please specify your Asking Price");
		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;
	}
}	