// JScript source code
		function getWindowBSFXSize() {
			var winW=0;
			var winH=0;

			if (parseInt(navigator.appVersion)>3) {
			if (navigator.appName=="Netscape") {
			winW = window.innerWidth;
			winH = window.innerHeight;
			}
			if (navigator.appName.indexOf("Microsoft")!=-1) {
			winW = document.body.offsetWidth;
			winH = document.body.offsetHeight;
			}
			}
			return winW
		}
		
		function doLogin() {
			
			var errores = '';
			
			if (document.frmLogin.txtEmail.value=='') {
				errores = errores + "+ Ingresa tu correo electr" + String.fromCharCode(243) + "nico.\n";
			}
			if (document.frmLogin.txtContrasena.value=='') {
				errores = errores + "+ Ingresa tu contrase" + String.fromCharCode(241) + "a.\n";
			}
			if (errores=='') {
				var yPosition = document.getElementById("boxNotSoFast").style.top;
				var is_px_ok = yPosition.indexOf('px');
				yPosition = yPosition.substring(0,is_px_ok);
				var xPosition = document.getElementById("boxNotSoFast").style.left;
				is_px_ok = xPosition.indexOf('px');
				xPosition = xPosition.substring(0,is_px_ok);
				document.frmLogin.action = urlO + "doLogin.aspx?xPosition=" + xPosition + "&yPosition=" +yPosition;
				document.frmLogin.submit();
			} else {
				alert(errores);
			}
		}
		
		function doLogin2() {
			
			var errores = '';
			var coment = '';
			if (document.frmLogin.selTemaContacto.value=='') {
				errores = errores + "+ Selecciona un tema de inter" + String.fromCharCode(233) + "s.\n";
			}
			coment = document.getElementById("txtComment").value.replace(/^\s*|\s*$/g,"");
			if (coment=='') {
				document.getElementById("txtComment").value=coment;
				errores = errores + "+ Ingresa un comentario.\n";
			}
			if (document.frmLogin.txtEmail.value=='') {
				errores = errores + "+ Ingresa tu correo electr" + String.fromCharCode(243) + "nico.\n";
			}
			if (document.frmLogin.txtContrasena.value=='') {
				errores = errores + "+ Ingresa tu contrase" + String.fromCharCode(241) + "a.\n";
			}
			if (errores=='') {
				yPosition=170;
				xPosition=500;
				document.frmLogin.action = urlO + "doLogin.aspx?xPosition=" + xPosition + "&yPosition=" +yPosition+"&insertaContacto=1";
				document.frmLogin.submit();
			} else {
				alert(errores);
			}
			
			
		}
		
		function doLogin3() {			
			var errores = '';			
			if (document.frmLogin.txtEmail.value=='') {
				errores = errores + "+ Ingresa tu correo electr" + String.fromCharCode(243) + "nico.\n";
			}
			if (document.frmLogin.txtContrasena.value=='') {
				errores = errores + "+ Ingresa tu contrase" + String.fromCharCode(241) + "a.\n";
			}			
			if (errores=='') {				
				document.frmLogin.action = urlO + "doLogin.aspx?url_referer=default.aspx&url_recommend=index_registro_acceso.aspx";
				document.frmLogin.submit();
			} else {
				alert(errores);
			}
		}
		
		function locateBoxNSF(yBoxPosition,ptgXBoxPosition) {
			var yPosition = yBoxPosition
			var xResol;
			var xPosition;
			var ptgXpos;

			ptgXpos = ptgXBoxPosition
			xResol = getWindowBSFXSize();
			if (xResol>=1200) xPosition = parseInt(xResol*ptgXpos);
			else if (xResol>=1000) xPosition = parseInt(xResol*ptgXpos);
			else if (xResol>900) xPosition = parseInt(xResol*ptgXpos);
			else xPosition = parseInt(xResol*ptgXpos);
			document.getElementById("boxNotSoFast").style.left = xPosition + 'px';
			document.getElementById("boxNotSoFast").style.top = yPosition + 'px';
			document.getElementById("boxNotSoFast").style.visibility = "visible";
	}
	
	function locateBoxNSF2(yBoxPosition,xBoxPosition) {
			var yPosition = yBoxPosition
			var xPosition = xBoxPosition;
			document.getElementById("boxNotSoFast").style.left = xPosition + 'px';
			document.getElementById("boxNotSoFast").style.top = yPosition + 'px';
			document.getElementById("boxNotSoFast").style.visibility = "visible";
	}
			
	//-->
	
	function ocultaBoxLogin() {
		document.getElementById("boxNotSoFast").style.visibility = "hidden";		
	}
	
	function limpiaTxtComment() {
		var coment;
		
		if(document.getElementById("txtComment")!=null)
		{coment = document.getElementById("txtComment").value.replace(/^\s*|\s*$/g,"");
		
		document.getElementById("txtComment").value=coment;}
	}	