// 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=1,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();
}

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 right(e) {
var msg = " Esta imagen tiene el copyright de la autora ";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg);  // Delete this line to disable but not alert user
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
//document.onmousedown = right;
