function stopRKey(evt) {
	var evt = (evt) ? evt : ((event) ? event : null);
	var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
	if ((evt.keyCode == 13) && (node.type=="text")) {
		alert(1);
		return false;
	}
}
document.onkeypress = stopRKey;


function funSendMessage(){
	var vvpNombre = document.frmContacto.txtname.value.replace(/^\s+|\s+$/g,"");
	if (vvpNombre == "") {
		alert("A blank name is not allowed");
		return;
	}
	var vvpEmail = document.frmContacto.txtemail.value.replace(/^\s+|\s+$/g,"");
	if (vvpEmail == "") {
		alert("A blank email is not allowed");
		return;
	}
	var vvpMensaje = document.frmContacto.txtmessage.value.replace(/^\s+|\s+$/g,"");
	if (vvpMensaje == "") {
		alert("A blank message is not allowed");
		return;
	}
	//vvpMensaje = encodeURIComponent(vvpMensaje);
	document.frmContacto.hidaction.value = "env";
	document.frmContacto.hidname.value = vvpNombre;
	document.frmContacto.hidemail.value = vvpEmail;
	document.frmContacto.hidmessage.value = vvpMensaje;
	document.frmContacto.submit();
}
