function formvalidation(thisform) {
	with (thisform) {
		if (emptyvalidation(apellido1,"El Primer Apellido es obligatorio")==false) {apellido1.focus(); return false;};
		//if (emptyvalidation(apellido2,"El Segundo Apellido es obligatorio")==false) {apellido2.focus(); return false;};
		//if (emptyvalidation(nombre,"El Nombre es obligatorio")==false) {nombre.focus(); return false;};

		thisform.submit()
	}
}

function emptyvalidation(entered, alertbox) {
	with (entered) {
		if (value==null || value=="") {
			if (alertbox!="") {
				alert(alertbox);
			}
			return false;
		} else {
			return true;
		}
	}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
}
