<!--
var imgRe = /^.+\.(jpg|jpeg|gif)$/i;
function previewImage(pathField)
{       
    var path = pathField.foto.value;
    if (path.search(imgRe) == -1 && path!="") {   
        alert("JPG, y GIFs Solamente!");
		pathField.guardar.disabled=true;
    } else {
		pathField.guardar.disabled=false;
	}
}

function verif(){ 
var pepez=0; 
for(i=0; ele=document.bov.elements[i]; i++){ 
if (ele.type=='checkbox') 
if (ele.checked){pepez=1;break;}} 
if (pepez==1){document.bov.submit();}else{ 
alert('Debe seleccionar alguno de los Items');return;} 
} 

function enviacont() {
	if (
		checkField(document.fcon.nombre,isNotWhitespace,false,"Debe ingresar su Nombre") &&
		checkField(document.fcon.empresa,isNotWhitespace,false,"Debe ingresar el Nombre de su Empresa") &&
		checkField(document.fcon.email,isEmail,false,"Debe ingresar una Dirección de E-Mail válida") &&
		checkField(document.fcon.mensaje,isNotWhitespace,false,"Debe escribir un Mensaje")
	) {
		document.fcon.enviamail.value=1;
		document.fcon.submit();
	}
}

function enviacont2() {
	if (
		checkField(document.fcon.nombre,isNotWhitespace,false,"You must enter your Name") &&
		checkField(document.fcon.empresa,isNotWhitespace,false,"You must enter your Enterprise's name") &&
		checkField(document.fcon.email,isEmail,false,"You must specify a valid e-mail address") &&
		checkField(document.fcon.mensaje,isNotWhitespace,false,"You must write a message")
	) { 
		document.fcon.enviamail.value=1;
		document.fcon.submit();
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function buscadm() {
	if (document.fadm.user.value=="") {
		alert("Debe ingresar su Nombre de Usuario / You must enter your Username");
		document.fadm.user.focus();
	} else if (document.fadm.password.value=="") {
		alert("Debe ingresar su Contraseña / You must enter your password");
		document.fadm.password.focus();
	} else {
		document.fadm.submit();
	}
}

function guardacontacto() {
	if (document.fcon.mailsp.value=="") {
		alert("Debe ingresar un E-Mail de Contacto / You must enter a Contact E-Mail");
		document.fcon.mailsp.focus();
	}else if (document.fcon.textosp.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Español / You must enter a Welcome Text in Spanish");
		document.fcon.textosp.focus();
	}else if (document.fcon.textoen.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Inglés / You must enter a Welcome Text in English");
		document.fcon.textoen.focus();
	}else{
		document.fcon.submit();
	}
}

function guardabien() {
	if (document.fbien.textosp.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Español / You must enter a Welcome Text in Spanish");
		document.fbien.textosp.focus();
	}else if (document.fbien.textoen.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Inglés / You must enter a Welcome Text in English");
		document.fbien.textoen.focus();
	}else{
		document.fbien.submit();
	}
}

function guardainicio() {
	if (document.fini.slogansp.value=="") {
		alert("Debe ingresar un Slogan en Español / You must enter a Spanish Slogan");
		document.fini.slogansp.focus();
	}else if (document.fini.sloganen.value=="") {
		alert("Debe ingresar un Slogan en Inglés / You must enter an English Slogan");
		document.fini.sloganen.focus();
	}else if (document.fini.textosp.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Español / You must enter a Welcome Text in Spanish");
		document.fini.textosp.focus();
	}else if (document.fini.textoen.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Inglés / You must enter a Welcome Text in English");
		document.fini.textoen.focus();
	}else{
		document.fini.submit();
	}
}

function guardamision() {
	if (document.fini.textosp.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Español / You must enter a Welcome Text in Spanish");
		document.fini.textosp.focus();
	}else if (document.fini.textoen.value=="") {
		alert("Debe ingresar un Texto de Bienvenida en Inglés / You must enter a Welcome Text in English");
		document.fini.textoen.focus();
	}else{
		document.fini.submit();
	}
}

function guardatag() {
	if (document.ftag.nombre.value=="") {
		alert("Debe ingresar un Nombre en Español / You must enter a Spanish Name");
		document.ftag.nombre.focus();
	}else if (document.ftag.name.value=="") {
		alert("Debe ingresar un Nombre en Inglés / You must enter an English Name");
		document.ftag.name.focus();
	}else{
		document.ftag.submit();
	}
}

function guardanuevoali() {
	var pepez=0; 
	for(i=0; ele=document.fali.elements[i]; i++){ 
	if (ele.type=='checkbox') 
	if (ele.checked){pepez=1;}} 
	if (document.fali.nombre.value=="") {
		alert("Debe ingresar un Nombre / You must enter a Name");
		document.fali.nombre.focus();
	}else if (document.fali.url.value=="") {
		alert("Debe ingresar una URL / You must enter an URL");
		document.fali.url.focus();
	}else if (pepez==0) {
		alert("Debe Seleccionar al menos 1 Rubro / You Must select at least 1 Area");
		document.fali.url.focus();
	}else{
		document.fali.submit();
	}
}

function guardanot() {
	var pepez=0; 
	for(i=0; ele=document.fnot.elements[i]; i++){ 
	if (ele.type=='checkbox') 
	if (ele.checked){pepez=1;}} 
	if (document.fnot.titulo.value=="") {
		alert("Debe ingresar un Titulo en Español / You must enter a Spanish Title");
		document.fnot.titulo.focus();
	}else if (document.fnot.title.value=="") {
		alert("Debe ingresar un Titulo en Inglés / You must enter an English Title");
		document.fnot.title.focus();
	}else if (document.fnot.texto.value=="") {
		alert("Debe ingresar un Texto en Español / You must enter a Spanish Text");
		document.fnot.texto.focus();
	}else if (document.fnot.text.value=="") {
		alert("Debe ingresar un Texto en Inglés / You must enter an English Text");
		document.fnot.text.focus();
	}else if (pepez==0) {
		alert("Debe Seleccionar al menos 1 Contenido / You must select at least 1 Content");
		document.fnot.foto.focus();
	}else{
		document.fnot.submit();
	}
}

function guardaprod() {
	var pepez=0; 
	for(i=0; ele=document.fprod.elements[i]; i++){ 
	if (ele.type=='checkbox') 
	if (ele.checked){pepez=1;}} 
	if (document.fprod.nombre.value=="") {
		alert("Debe ingresar un Titulo en Español / You must enter a Spanish Title");
		document.fprod.nombre.focus();
	}else if (document.fprod.name.value=="") {
		alert("Debe ingresar un Titulo en Inglés / You must enter an English Title");
		document.fprod.name.focus();
	}else if (document.fprod.descripcion.value=="") {
		alert("Debe ingresar un Texto en Español / You must enter a Spanish Text");
		document.fprod.descripcion.focus();
	}else if (document.fprod.description.value=="") {
		alert("Debe ingresar un Texto en Inglés / You must enter an English Text");
		document.fprod.description.focus();
	}else if (pepez==0) {
		alert("Debe Seleccionar al menos 1 Categoria / You must select at least 1 Category");
		document.fprod.foto.focus();
	}else{
		document.fprod.submit();
	}
}

function guardalider() {
	if (document.flid.nombre.value=="") {
		alert("Debe ingresar el Nombre / You must enter a Name");
		document.flid.nombre.focus();
	}else if (document.flid.descripcion.value=="") {
		alert("Debe ingresar una Descripción en Español / You must enter a Spanish Description");
		document.flid.descripcion.focus();
	}else if (document.flid.description.value=="") {
		alert("Debe ingresar una Descripción en Inglés / You must enter an English Description");
		document.flid.description.focus();
	}else{
		document.flid.submit();
	}
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}


-->
