var oVentana = null;
var splashWin2 = null;
function openPop(url,name,ancho,alto) 
{
	try
	{
		if (splashWin2!=null)
		{
			splashWin2.close();
		}

	var wEstilo = '';
	xMove = parseInt(window.screen.width);
	xMove = ( parseInt(window.screen.width) - ancho) /2 ;
	yMove = parseInt(window.screen.height);
	yMove = ( parseInt(window.screen.height) - alto) /2 ;

	
	if (document.all) 
	{

		wEstilo +=" directories=0";
		//wEstilo +=",fullscreen=1";
		wEstilo +=",height=" + alto;
		wEstilo +=",location=0";
		wEstilo +=",menubar=0";
		wEstilo +=",resizable=0";
		wEstilo +=",scrollbars=0";
		wEstilo +=",status=0";
		wEstilo +=",toolbar=0";
		wEstilo +=",width=" + ancho ;
	} 
	else 
	{
		wEstilo += 'toolbar=0,';
		wEstilo += 'location=0,';
		wEstilo += 'directories=0,';
		wEstilo += 'status=0,';
		wEstilo += 'menubar=0,';
		wEstilo += 'scrollbars=0,';
		wEstilo += 'resizable=0,';
		wEstilo += 'copyhistory=0,';
		wEstilo += 'width=' + ancho + ',';
		wEstilo += 'height=' + alto;
	
	}
	splashWin2 = window.open(url,name, wEstilo);
	splashWin2.resizeTo( Math.ceil( ancho ) , Math.ceil( alto ) );
	//splashWin2.moveTo  ( Math.ceil( 320 )  , Math.ceil( 190 ) );
	splashWin2.moveTo( xMove, yMove );
	splashWin2.focus();
	return splashWin2;
		
	}
	catch (e)
	{
		//Nothing to do
		window.status=e.description;
	}

}
function redirectLocation(url) {
    try {
        window.location.href = url;

    }
    catch (e) {
        alert(e.description ? e.description : e)
    }
}


