
function getbrowserwidth()
    {
    	if (navigator.userAgent.indexOf("MSIE") > 0)
        	{
        		return(document.body.clientWidth);
        	}
      else
            {
            		return window.outerWidth;
            	}
        }
		
 function getbrowserheight()
            {
            	if (navigator.userAgent.indexOf("MSIE") > 0)
                	{
                		return(document.body.clientHeight);
                	} 
                else
                    {
                    		return(window.outerHeight);
                    	}
                }
				

function ayuda(){
//top.location.href="../ayuda/indiceframe2.htm"
var popup = new Object();
popup = window.open('../ayuda/indiceframe2.htm', 'RP3AYUDA', 'status=no, resizable=yes, height=600, width=900, menubar=1' );
popup.focus();
}

function servicios(){
//blank.location.href="http://www.rp3.com.ec:2095/neomail/neomail.pl";
//window.open('http://financiero.rp3.com.ec')
window.open('http://localhost/rp3_reportes/')
}

function correo(){
//blank.location.href="http://www.rp3.com.ec:2095/neomail/neomail.pl";
window.open('http://75.126.45.163/horde/imp/login.php')
}

function CenterPopup(u, width, height){
// get center of browser window
switch (u){
   case 1:
     var popup = new Object();
	 //../ayuda/indiceframe2.htm
	 //http://10.10.0.20/rp3/ayuda/indiceframe2.htm
           URL = 'contacto.php';
			   var X = getbrowserwidth() / 2;
   var Y = getbrowserheight() / 2;
                    	
  popup = window.open(URL, 'RP3 RETAIL', 
                    		'scrollbars=yes ' +
                    		'width=' + width + ' ' +
                    		'height=' + height + ' ' +
                    		'top=' + (window.screenTop + (Y - (height/2))) + ' ' +
                    		'left=' + (window.screenLeft + (X - (width/2))) 
                    	);
						
   popup.focus();
      break;
default:
      
}

}

function contacto( ){
// get center of browser window
var popup = new Object();
//../ayuda/indiceframe2.htm
//http://10.10.0.20/rp3/ayuda/indiceframe2.htm
URL = 'contacto.php';
var X = getbrowserwidth() / 2;
var Y = getbrowserheight() / 2;
var height = 560;
var width = 345;
  popup = window.open(URL, 'TRAKI', 'scrollbars=no, ' + 'width=' + width + ', ' +  'height=' + height + ', ' + 'top=' +  (window.screenTop + (Y - (height/2))) + ', ' + 'left=' + (window.screenLeft + (X - (width/2))) );
  popup.focus();
}

/*
<script>//Valores inicialesvar AlturaVentana=100var AnchoVentana=100var x=5function abrirVentana(Direccion){temploc=Direccionif (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){	window.open(Direccion)	return}PopVentana=window.open("","","scrollbars")//Mover al vertice superior izquierdaPopVentana.moveTo(0,0)//Redimensionar a un tamaņo inicialPopVentana.resizeTo(AlturaVentana,AnchoVentana)Redimensionar()}function Redimensionar(){if (AlturaVentana>=screen.availHeight-3)x=0PopVentana.resizeBy(5,x)AlturaVentana+=5AnchoVentana+=5if (AnchoVentana>=screen.width-5){	PopVentana.location=temploc	AlturaVentana=AlturaVentana	AnchoVentana=AnchoVentana	x=5return}//Intervalo de ejecucion de la funcion//A menor intervalo mayor velocidad//de redimensionamientosetTimeout("Redimensionar()",10)}//--></script>

*/