// JavaScript Document
function abrir(){
	var capa=document.getElementById('divContendorLogIn');
	capa.style.display='block';
	var cuadroLogin=document.getElementById('divLogin');
	//alert(screen.height);
	/*var alto=getAltura();
	cuadroLogin.style.top=(alto-250-200)*(-1);
	var bg=document.getElementById('divContendorLogInBG');
	bg.style.height=alto+'px';*/
	//capa.style.filter = "alpha(opacity=40)"; // IE
	//capa.style.opacity = "0.4"; // FF & other CSS3 browsers
	//var form=document.getElementById('divLogin');
	//form.style.filter = "alpha(opacity=100)"; // IE
	//form.style.opacity = "1.0"; // FF & other CSS3 browsers
}
function cerrar(){
	var capa=document.getElementById('divContendorLogIn');
	capa.style.display='none';
}
function getAltura(){
	if( window.innerHeight && window.scrollMaxY ) // Firefox 
	{
		//pageWidth = window.innerWidth + window.scrollMaxX;
		pageHeight = window.innerHeight + window.scrollMaxY;
	}
	else if( document.body.scrollHeight > document.body.offsetHeight ) // all but Explorer Mac
	{
		//pageWidth = document.body.scrollWidth;
		pageHeight = document.body.scrollHeight;
	}
	else // works in Explorer 6 Strict, Mozilla (not FF) and Safari
	{ 
		//pageWidth = document.body.offsetWidth + document.body.offsetLeft; 
		pageHeight = document.body.offsetHeight + document.body.offsetTop; 
	}
	return pageHeight;
}
function olvideContrasena(){
	document.getElementById('divLoginFormAviso').style.display='none';
	document.getElementById('login_rec_user').style.display='block';
	document.getElementById('login_rec_boton').style.display='block';
}
function recuperarContrasena(){
	PFHTML.rellenarDato('formLogin','accion','recuperarContrasena');
	document.getElementById('formLogin').submit();
}
function checkEmail(){
	
	if($("input[name='email']").attr('value')==''){
		 objConfirmacion.showError('Debe completar el email!');
		 //alert($("input[name='email']").attr('value'));
		 return false;
	}
	else{
		return true;
	}
}