// JavaScript Document

function clearText(thefield){
	if (thefield.defaultValue==thefield.value)
		thefield.value = ""
}

//validador de formulario/////////////////////////////////////////////////////////////////////////
<!--
function validamelo(){
	var theForm = document.form1;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var telefonoNN = /^([0-9]{9})+$/;
	var errMsg = "";
	var setfocus = "";
	
	if (theForm['$consulta'].value == ""){
		errMsg = "Insert your comments";
		setfocus = "['$consulta']";
	}
	if (!emailRE.test(theForm['$mail'].value)){
		errMsg = "Insert your E-Mail";
		setfocus = "['$mail']";
	}
	if (!telefonoNN.test(theForm['$telefono'].value)){
		errMsg = "Insert your contact phone number";
		setfocus = "['$telefono']";
	}
	if (theForm['$direccion'].value == ""){
		errMsg = "Insert your address";
		setfocus = "['$direccion']";
	}
	if (theForm['$nombre'].value == ""){
		errMsg = "Insert you name and last name";
		setfocus = "['$nombre']";
	}
	
	
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()");
	}
	//else theForm.action = "sendForm/sendForm.php";
	
	else theForm.submit();
	
	//alert("ppppppppppppppppppppfdsfpdsfpsfpsdfpdpsddpfkpsd"); 
	
	
}



