// JavaScript Document
function Abrir_Ventana(theURL,nombre,w,h) { 
	
	var windowprops ="top="+((screen.height-h)/2)+",left="+((screen.width-w)/2)+",toolbar=no,location=no,status=no, menubar=no,scrollbars=1, 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); 
} 

// JavaScript Document
function Abrir_Ventana2(theURL,nombre,w,h) { 
	
	var windowprops ="top="+((screen.height-h)/2)+",left="+((screen.width-w)/2)+",toolbar=no,location=no,status=no, menubar=no,scrollbars=0, 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);
	
	parent.window.open(theURL,nombreVent,windowprops); 
} 


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

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {
	  	if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
		}
  }
  else 
  	if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

function Abrir_Ventana3(theURL,nombre,w,h) { 
	
	var windowprops ="top="+((screen.height-h)/2)+",left="+((screen.width-w)/2)+",toolbar=no,location=no,status=no, menubar=no,scrollbars=1, 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);
	
	parent.window.open(theURL,nombreVent,windowprops); 
} 

