// JavaScript Document

/*
Resumen de funciones disponibles:
	- OpenBrWindow(): Abrir popups centrados
	- recomendar()  : Popup para recomendar el sitio
*/



/*
Script para abrir una ventana popup centrada -
© DHTMLShock (www.dhtmlshock.com)
To add more shock to your site, visit www.DHTMLShock.com
*/

function OpenBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

/* Recomendar a un amigo */
function recomendar(){
	OpenBrWindow('popupRecomendar.php','recomendar','scrollbars=no','400','290','true');
}


/* Generar nueva clave */
function generarClave(){
	OpenBrWindow('popupRecordarclave.php','generarclave','scrollbars=no','400','290','true');
}
