	
	function sendContactForm(){		
		var oForm = document.getElementById("frm_contact");	
		
		function validate(){
			if (oForm.fname.value.length < 2){ 
				oForm.fname.value = "required";
				oForm.fname.className = "err";
				oForm.fname.onclick = function() { this.value=''; this.className = ''; }
				return false;
			}
			if (oForm.lname.value.length < 2){ 
				oForm.lname.value = "required";
				oForm.lname.className = "err";
				oForm.lname.onclick = function() { this.value=''; this.className = ''; }
				return false;
			}
			if (oForm.email.value.length < 2){ 
				oForm.email.value = "required";
				oForm.email.className = "err";
				oForm.email.onclick = function() { this.value=''; this.className = ''; }
				return false;
			}
			if (oForm.phone.value.length < 2){ 
				oForm.phone.value = "required";
				oForm.phone.className = "err";
				oForm.phone.onclick = function() { this.value=''; this.className = ''; }
				return false;
			}
			return true;
		}
		if (! validate()) return;
		
		var btn_submit = document.getElementById("btn_contact_submit");
		btn_submit.value = "sending...";
		btn_submit.disabled = true;

		try {
			var responseSuccess = function(o){ 
				btn_submit.value = "message sent";
			}
			var responseFailure = function(o){}			
			var callback = {
				success:responseSuccess,
				failure:responseFailure
			};
			YAHOO.util.Connect.setForm(oForm);
			YAHOO.util.Connect.asyncRequest('POST',	'../resources/classes/jsapi.php', callback);
		} catch(e){}		
	}
	
