function openPopUp (Url, Width, Height) {
	var win = window.open(Url,'_blank','menubar=no,toolbar=no,width=' + Width + ',height=' + Height + ',resizable=no,scrollbars=no,status=no,dialog');
	win.moveTo(screen.availWidth/2-(Width/2),screen.availHeight/2-(Height/2));
	if ((Width == -1)&&(Height == -1)) {
		win.moveTo(0,0);
		win.resizeTo(screen.width,screen.height);
	}
}
function openPopUp2 (Url, Width, Height) {
	// Lo mismo que openPopUp pero con scrolls
	var win = window.open(Url,'_blank','menubar=no,toolbar=no,width=' + Width + ',height=' + Height + ',resizable=no,scrollbars=yes,status=no,dialog');
	win.moveTo(screen.availWidth/2-(Width/2),screen.availHeight/2-(Height/2));
	if ((Width == -1)&&(Height == -1)) {
		win.moveTo(0,0);
		win.resizeTo(screen.width,screen.height);
	}
}
function openPopUp3 (Url, Width, Height) {
	// Lo mismo que openPopUp pero con scrolls y reescalable
	var win = window.open(Url,'_blank','menubar=no,toolbar=no,width=' + Width + ',height=' + Height + ',resizable=yes,scrollbars=yes,status=no');
	win.moveTo(screen.availWidth/2-(Width/2),screen.availHeight/2-(Height/2));
	if ((Width == -1)&&(Height == -1)) {
		win.moveTo(0,0);
		win.resizeTo(screen.width,screen.height);
	}
}

function popup(nom,url) {
  window.name=nom;
  var win = window.open(url,'_blank','menubar=no,toolbar=no,width=750,height=600,resizable=yes,scrollbars=yes,status=yes');
	win.moveTo(screen.availWidth/2-(750/2),screen.availHeight/2-(600/2));

  opener=self;  
}

function hidediv() { 
	if (document.getElementById) { // DOM3 = IE5, NS6 
		document.getElementById('hideShow').style.visibility = 'hidden'; 
	} 
	else { 
		if (document.layers) { // Netscape 4 
			document.hideShow.visibility = 'hidden'; 
		} 
		else { // IE 4 
			document.all.hideShow.style.visibility = 'hidden'; 
		} 
	} 
} 

function showdiv() { 
	if (document.getElementById) 
	{ // DOM3 = IE5, NS6 
		document.getElementById('hideShow').style.visibility = 'visible'; 
	} 
	else 
	{ 
		if (document.layers) 
		{ // Netscape 4 
			document.hideShow.visibility = 'visible'; 
		} 
		else 
		{ // IE 4 
			document.all.hideShow.style.visibility = 'visible'; 
		} 
	} 
} 

function isIntro(ObjectName)
{
	objName = window.document.all[ObjectName];
	var editEvent = objName.contentWindow ? objName.contentWindow.event : event;
	
	if (editEvent.keyCode == 13)
		return true;
	else
		return false;
}

