// JavaScript Documentvar agt = navigator.userAgent.toLowerCase();var is_op = (agt.indexOf("opera") != -1);var is_ie = (agt.indexOf("msie") != -1) && document.all && !is_op;var is_ie5 = (agt.indexOf("msie 5") != -1) && document.all && !is_op;var is_mac = (agt.indexOf("mac") != -1);var is_gk = (agt.indexOf("gecko") != -1);var is_sf = (agt.indexOf("safari") != -1);function imprimir(){	bV = parseInt(navigator.appVersion);	if (bV >= 4) window.print();}function formulariocompleto(Formulario){	var i=0;	while (i < document.forms[Formulario].elements.length)	{		if (document.forms[Formulario].elements[i].value=='')		{ 			alert('Por favor rellene todos los datos');			document.forms[Formulario].elements[i].focus();			return false;		}		i ++;	}	return true;}function IsEmpty(s){	var whitespace = " \t\n\r";	var i;	if(s.length == 0)	{		return true;	}		for (i = 0; i < s.length; i++)	{		var c = s.charAt(i);		if (whitespace.indexOf(c) == -1)		{			return false;		}	}	return true;}function IsEmail(_email){     var emailReg = /^[a-z][a-z-_0-9\.]+@[a-z-_=>0-9\.]+\.[a-z]{2,3}$/i     return emailReg.test(_email);}function AbreImagen(UrlImagen){	window.open("imagen_popup.php?img=" + UrlImagen, "imagen" + Math.floor(Math.random()*11),"width=1000,height=1000,scrollbars=no,titlebar=no,status=no,toolbar=no,menubar=no,location=no,resizable=yes");}function MostrarOcultar(item) {	var obj_layer = document.getElementById(item);	if (obj_layer.style.display == "none"){		obj_layer.style.display = "inline";	}else{		obj_layer.style.display = "none";	}}