///////////////////////////////////////////////////////////////////////////
// @Sistema: Genotipo 										 			 //
// @Version: 1.0														 //
// @Autor: Juan J. Lopez Lira											 //
// @Fecha: 04 Marzo 2007												 //
///////////////////////////////////////////////////////////////////////////

///////////////////////////////////
// Funciones Generales del Sitio //
///////////////////////////////////

// Abrir Nueva Ventana
function OpenWindow(Url,NombreVentana,Utilidades) {
  window.open(Url,'Ventana','status=yes,scrollbars=yes,resizable=yes,width=640,height=480');
}

// Ajusta Ventana al Centro del Monitor
function FixWindow(){
	x =(screen.width - 640) / 2;
	y =(150) / 2;
	moveTo(x,y);
}

//Imprime Paginas 
function PrintPage(){
	window.print();
}
	
//Cierra la Pagina Pop Up y Refresca la Pagina Opener
function RefreshWindow(){
	window.opener.location.href = window.opener.location.href;
		if (window.opener.progressWindow);
		{
		window.opener.progressWindow.close();
		}
		window.close();
}

//Funcion para Envio de formularios
function Send(form){
	document.getElementById(form).submit();	
}

//Funcion para mostrar mas informacion
function Show(id){
	if(document.getElementById(id).style.display =='none'){
		document.getElementById(id).style.display ='block'
		} else {
			document.getElementById(id).style.display ='none'
			}
	}
	
function ResetFields(){
	document.getElementById('nombre').value='';
	document.getElementById('apellido').value='';
	document.getElementById('telefono').value='';
	document.getElementById('e_mail').value='';
	document.getElementById('mensaje').value='';
	}

