// JavaScript Document
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=no,width=" + w + ",height=" + h;

	// Si no hemos introducido ningún nombre de ventana, generamos uno aleatorio
	if (nombre != null) {nombreVent=nombre; }
	else {nombreVent="ventanaC3_"+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=auto, 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="ventanaC3_"+Math.floor((Math.random()*100));}

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


function Abrir_Ventana_Con_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="ventanaC3_"+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();
}