function abrir(url, largeur, hauteur, scroll, name) {
	if (!name) name= "popup";
	var parametres = 'TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,TOP=0, LEFT=0, STATUS=NO,MENUBAR=NO,SCROLLBARS=' +scroll+ ',RESIZABLE=NO,COPYHISTORY=YES,WIDTH=' +largeur+ ',HEIGHT=' +hauteur;
	window.open(url, name, parametres);
}

function abrirRes(url, largeur, hauteur, scroll, sres, name) {
	if (!name) name= "popup";
	var parametres = 'TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,TOP=0, LEFT=0, STATUS=NO,MENUBAR=NO,SCROLLBARS=' +scroll+ ',RESIZABLE=' + sres + ',COPYHISTORY=YES,WIDTH=' +largeur+ ',HEIGHT=' +hauteur;
	window.open(url, name, parametres);
}


function loadinparent(url,rootSection,subSection1,subSection2)
{
	if (self.opener.parent.frames["content"]?true:false) var padre = self.opener.parent
	else if (self.opener.parent.parent.frames["content"]?true:false) var padre = self.opener.parent.parent
		else return;

	if (isNaN(rootSection)) {
		rootSection = -1;	
	}else{if(rootSection > 0) rootSection = rootSection - 1;}
	if (isNaN(subSection1)) {
		subSection1 = -1;	
	}else{if(subSection1 > 0) subSection1 = subSection1 - 1;}
	if (isNaN(subSection2)) {
		subSection2 = -1;	
	}else{if(subSection2 > 0) subSection2 = subSection2 - 1;}

	var ppal = padre.frames["content"]; //Frame principal
	var nav = padre.frames["leftnav"];  //Frame izquierdo de navegación
	ppal.location = url;
	nav.cierramenus();
	if (rootSection != -1) nav.foldmenu(rootSection);
	if (subSection1 != -1) nav.cierrafoldmenu(rootSection,subSection1);
	if (subSection2 != -1) nav.subfoldmenu(rootSection, subSection1);
	self.close();
}

function openPopub(al,an,na,posal,posle){
	var oFec = new Date();
	var fFec = new Date(2002,11,31,0,0); 
	var vent;
	var parametres = 'TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,TOP='+posal+', LEFT='+posle+', STATUS=NO,MENUBAR=NO,SCROLLBARS=NO,RESIZABLE=NO,COPYHISTORY=YES,WIDTH=' +al+ ',HEIGHT=' +an;
	if (oFec < fFec) window.open('popub.html', na, parametres);
}

function openPopUp(url, w, h, t, l){
	var parametres = 'TOOLBAR=NO,LOCATION=NO,DIRECTORIES=NO,TOP=' + t + ', LEFT=' + l + ', WIDTH=' + w + ',HEIGHT=' + h + ', STATUS=NO,MENUBAR=NO,SCROLLBARS=NO,RESIZABLE=NO,COPYHISTORY=YES';
	pp = window.open(url, "pub", parametres);
}
