/////////////////////////////////////////////////////////////////////////////////////////////
// función de centrado de ventanas popup
/////////////////////////////////////////////////////////////////////////////////////////////

var win = null;

function NewWindow(mypage,myname,w,h,scroll){
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
	
	win = window.open(mypage,myname,settings)
	
	if(win.window.focus){
		win.window.focus();
	}
}

///////////////////////////////////////////////////////////////////////////////////////////////
// con este Script desactivamos el botón derecho del ratón
///////////////////////////////////////////////////////////////////////////////////////////////
//	var message=") ( parenteSys.cOm ) ( © 2002. Oscar Hernández Caballero ) ("; 
//	function click(e) {
//		if (document.all) {
//			if (event.button == 2) {
//				alert(message);
//				return false;
//			}
//		}
//		if (document.layers) {
//			if (e.which == 3) {
//				alert(message);
//				return false;
//			}
//		}
//	}
//	if (document.layers) {
//		document.captureEvents(Event.MOUSEDOWN);
//	}
//	document.onmousedown=click;

/////////////////////////////////////////////////////////////////////////////////////////////////
// función para poner un mensaje en la barra de estado
/////////////////////////////////////////////////////////////////////////////////////////////////
		var barrabajo = " )( parenteSys.cOm )( "; 
		function barra()
		{
			window.status = barrabajo;
			timerID= setTimeout("barra()",1);
		}

/////////////////////////////////////////////////////////////////////////////////////////////////
// función para abrir una ventana CHROMELESS
/////////////////////////////////////////////////////////////////////////////////////////////////

function ChromelessWin(url, width, height) {
	theURL=url
	wname ="CHROMELESSWIN"
	W=width;
	H=height;
	windowCERRARa 		= "images/chromeless/close_a.gif"
	windowCERRARd 		= "images/chromeless/close_d.gif"
	windowCERRARo 		= "images/chromeless/close_o.gif"
	windowNONEgrf 		= "images/chromeless/none.gif"
	windowCLOCK			= "imgages/chromeless/clock.gif"
	windowREALtit		= " ť )( parenteSys.cOm )("
	windowTIT 	    	= "<font face=verdana size=1>&nbsp;ť )( parenteSys.cOm )(</font>"
	windowBORDERCOLOR   	= "#999999"
	windowBORDERCOLORsel	= "#999999"
	windowTITBGCOLOR    	= "#d2b48c"
	windowTITBGCOLORsel 	= "#ffe4b5"
	openchromeless(theURL, wname, W, H, windowCERRARa, windowCERRARd, windowCERRARo, windowNONEgrf, windowCLOCK, windowTIT, windowREALtit , windowBORDERCOLOR, windowBORDERCOLORsel, windowTITBGCOLOR, windowTITBGCOLORsel)
}
