var CSS_EVENT_SELECTOR_RULE=new Array(
'FORM#frmAddBusiness:submit:checkBusinessForm'
);

function checkBusinessForm(){
	var regex = /^(([\-\w]+)\.?)+@(([\-\w]+)\.?)+\.[a-zA-Z]{2,4}$/;
	var name_web=/http\:\/\/(?:\w+\.)+\w+/;
	if(this.organization.value=="" || this.organization.value==null){
		return this.fail(T_NAME_REQUIRED,'organization');
	}
	if(this.phone.value=="" || this.phone.value==null){
		return this.fail(T_PHONE_REQUIRED,'phone');
	}
	if (isNaN(this.phone.value)==true){
		return this.fail(T_PHONE_TYPE,'phone');
	}
	if(this.email.value=="" || this.email.value==null){
		return this.fail(T_EMAIL_REQUIRED,'email');
	}
	if (!regex.test(this.email.value)){
		return this.fail(T_EMAIL_TYPE,'email');
	}
	if(this.address.value=="" || this.address.value==null){
		return this.fail(T_ADDRESS_REQUIRED,'address');
	}
	if(this.website.value=="" || this.website.value==null){
		return this.fail(T_WEBSITE_REQUIRED,'website');
	}
	if (!name_web.test(this.website.value)){
		return this.fail(T_WEBSITE_REQUIRED,'website');
	}
	this.elements['description'].getHTML();
	if(this.elements['description'].value =='' || this.elements['description'].value==null){
		window.alert(T_DESCRIPTION_REQUIRED);
		return false;
	}
	if(this.scode.value=="" || this.scode.value==null){
		return this.fail(T_CODE_REQUIRED,'scode');
	}

	return true;
}

/*
function checkBusinessForm(){
	this.elements['description'].getHTML();
	window.alert(this.elements['description'].value);
	return false;
}
*/