function frame(enlace)
{
//win = window.open();
//win.
document.write('<html>' +
		'<head>' +
		'<title>Esta visitando un sitio que no pertenece a Izonia</title>' +
		'</head>' +
		'<frameset rows="120,*" border="0" framespacing="0" frameborder="no">' +
		//'<frame src="http://localhost:8080/IzoniaWeb/IzoniaWeb_v4/index.php?Pagina=Frame" name="frame" scrolling="no">' +
		'<frame src="http://'+ rutaIzonia +'/index.php?Pagina=Frame" name="frame" scrolling="no">' +
		'<frame src="'+enlace+'" name="contenido">' +
		'</html>')
}

function quitarFrame(rutita) 
{
 if (self.parent.frames.length != 0){
	// self.parent.location=document.location.href;
   //document.location=rutita+"/index.php";//document.location.href;
   top.location.replace(rutita);
 }
}
