// JavaScript Document
function Abrir_Ventana_Cliente(url,nombre,w,h,formulario,email,clave){
	var correo=eval("document."+formulario+"."+email+".value");
	var pass=eval("document."+formulario+"."+clave+".value");
	var laurl=url+"?email="+correo+"&clave="+pass;
	return Abrir_Ventana(laurl,nombre,w,h);
	}

function Abrir_Ventana(theURL,nombre,w,h) { 

	var windowprops ="top="+(Math.round((screen.height-h)/2)-20)+",left="+(Math.round((screen.width-w)/2)-5)+",toolbar=no,location=no,status=no, menubar=no,scrollbars=no, resizable=yes,width=" + w + ",height=" + h;

	// Si no hemos introducido ningún nombre de ventana, generamos uno aleatorio
	if (nombre != null) {nombreVent=nombre; }
	else {nombreVent="ventana_"+Math.floor((Math.random()*100));}

//	alert("URL: "+theURL+"\nNOMBREVENT: "+nombreVent+"\nNOMBRE: "+nombre+"\nCADENA: "+windowprops);
	
	window.open(theURL,nombreVent,windowprops); 
} 

function Abrir_Ventana_Scroll(theURL,nombre,w,h) { 

	var windowprops ="top="+(Math.round((screen.height-h)/2)-20)+",left="+(Math.round((screen.width-w)/2)-5)+",toolbar=no,location=no,status=no, menubar=no,scrollbars=yes, resizable=no,width=" + w + ",height=" + h;

	// Si no hemos introducido ningún nombre de ventana, generamos uno aleatorio
	if (nombre != null) {nombreVent=nombre; }
	else {nombreVent="ventana_"+Math.floor((Math.random()*100));}

//	alert("URL: "+theURL+"\nNOMBREVENT: "+nombreVent+"\nNOMBRE: "+nombre+"\nCADENA: "+windowprops);
	
	window.open(theURL,nombreVent,windowprops); 
} 


function framePrint(whichFrame){
parent[whichFrame].focus();
parent[whichFrame].print();
}
