//funciones para los campos del registro.
function Texto()
{
	if (document.Registro.username.value == "Usuario")
	{
	document.Registro.username.value = "";
	}
}
function Texto_out()
{
	if (document.Registro.username.value == "")
	{
	document.Registro.username.value = "Usuario";
	}
}
function Texto1()
{
	if (document.Registro.password.value == "Contraseña")
	{
	document.Registro.password.value = "";
	}
}
function Texto1_out()
{
	if (document.Registro.password.value == "")
	{
	document.Registro.password.value = "Contraseña";
	}
}



function favoritos(){
	var title='FORMACION EN IGUALDAD'
	var url='http://www.formacionenigualdad.com/'
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "")
}



function ini() {
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
    document.body.style.behavior='url(#default#homepage)';
    document.body.setHomePage('http://www.formacionenigualdad.com/');
  }else{
    if(navigator.appName == "Netscape") alert("Su navegador no acepta esta opción automática.");
  }
}
	
function sw(loc, titulo, ancho, alto)
{
	options="toolbar=0,Status=0,menubar=0,scrollbars=no,resizable=0,location=0,directories=0,width=" + ancho + ",height=" + alto;
	window.open(loc,titulo,options);
}
function sw2(loc, titulo, ancho, alto)
{
	options="toolbar=0,Status=0,menubar=0,scrollbars=yes,resizable=1,location=0,directories=0,width=" + ancho + ",height=" + alto;
	window.open(loc,titulo,options);
}
function imprimir()
{
	var bName = navigator.appName;
	var bVer = parseFloat(navigator.appVersion);
		
    	var contenido = document.getElementById("imprim").innerHTML;    	ventana=window.open("/imprimiendo.php?Ruta=%2Findex.php%3F","ventana","width=700,height=600,top=0,left=5000");
    	ventana.document.open();
    	ventana.document.write('<html><head><title>Formación en Igualdad<\/title><link rel="stylesheet" type="text/css" href="/teleformacion/css/style.css"><link rel="stylesheet" type="text/css" href="/teleformacion/css/styleDivsResto.css"><link rel="stylesheet" type="text/css" href="/teleformacion/css/styleDivsCabecera.css"><\/head><body onprint="self.close()" style=\"background-color: #FFFFFF\">');
    	ventana.document.write(contenido);
		ventana.document.write('</body></html>');
        ventana.document.close();
        ventana.print();
        ventana.focus();
        ventana.close();
}