		function validateEmail(str) {
			return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
		}
		function checkcontactForm(frm) {
			errors = '';
			if(!_CF_hasValue(frm.firstName, 'TEXT')){
				errors += "* You have to enter first name \n";
			}
			if(!_CF_hasValue(frm.lastName, 'TEXT')){
				errors += "* You have to enter last name \n";
			}
			if(!_CF_hasValue(frm.homePhone, 'TEXT')){
				errors += "* You have to enter evening phone \n";
			}
			if(!_CF_hasValue(frm.fld1_2804954, 'TEXT')){
				errors += "* You have to enter email \n";
			}else if(!validateEmail(frm.fld1_2804954.value)){
				errors += "* Invalid email format \n";
			}
			if(errors.length>0){
				alert("Please fix followng errors: \n" + errors);
				return false;
			}
			return true;
		}


