function back(){
	history.back();
}

function abrir(url){
	window.open(url,'ventanaAbrir','menubar=no,scrollbars=1');		
}

function notificacion(url){
	window.open(url,'ventanaNotificacion','height=250,width=500,menubar=no,left=400,top=500');		
}

function mensaje(url){
	window.open(url,'ventanaMensaje','menubar=no,scrollbars=1,width=500,height=400');
}

function mensajeElegibilidad(url){
	window.open(url,'ventanaMensajeEligibilidad','menubar=no,scrollbars=1,width=500,height=180');
}

function queja(url){
	window.open(url,'','menubar=no,scrollbars=1,width=750,height=400');
}

function cerrar(){
    //Las variables que se utilizan aqui se deben definir en la pagina que manda
    //invocar este metodo.
	window.close();
	/*if(codificar){
		window.opener.location.href = rutaCodificar;
	}*/
}

function abrirPopUpExito(url)
{
   window.open(url,'','menubar=no,scrollbars=1,width=350,height=400');
}

function abrirPopUpErr(url)
{
    window.open(url,'','menubar=no,scrollbars=1,width=350,height=400');
}

function OpenBrWindow1(theURL,winName,features, myScroll, 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;
features+=',scrollbars='+myScroll;
}
win2=window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
win2.creator=self
}


 function ScrollingDown()
 {
  window.scrollTo(0,document.body.scrollHeight);
 }


function OpenBrWindow2(theURL,winName,features, myScroll, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2+220;
var myTop = (screen.height-myHeight)/2-15;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
features+=',scrollbars='+myScroll;
}
win2=window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
win2.creator=self
}

function OpenBrWindow3(theURL,winName,features, myScroll, myWidth, myHeight, isCenter) { //v3.0
if(window.screen)if(isCenter)if(isCenter=="true"){
var myLeft = (screen.width-myWidth)/2+220;
var myTop = (screen.height-myHeight)/2-15;
features+=(features!='')?',':'';
features+=',left='+myLeft+',top='+myTop;
features+=',scrollbars='+myScroll;
}
win2=window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
win2.creator=self
}

 function acepta(opcion)
 {
 if(opcion == "1")
 {
 document.location.href= 'white_registro.aspx?acepta=1&suscripcion=Session["suscripcion"]';
 }
 if(opcion == "0")
 {
  window.open('index.asp');
 }
 }
 
 function scrolling()
 {
  window.scrollBy(0,525)
 }

function callback(result)
{
  /*alert("The remote method returned this: " + result);*/
  //OpenBrWindow1('http://localhost/popup.asp?opc=19&cod=15','ejemplo','','yes','542','400','true');
  //window.open('http://localhost/popup.asp?opc=19&cod=15','ventanaAbrir','menubar=no,scrollbars=1');
  //window.opener.location=url;	
  //window.document.location="index.asp";	
  //Response.redirect("index.asp");
}

function errorCallback(result)
{
  alert("An error occurred while invoking the remote method: " + result);
}

function iraUrl(url)
{
	window.parent.location.href =url;
}

function cierra()
{
	window.parent.location.href ="../reporte/login.aspx";
} 


function enviaEnter(idBoton)
{
  if(navigator.appName == "Microsoft Internet Explorer"){
	if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)){
		document.forms[0]["Contenedor1__ctl0_centro_" + idBoton].focus();
		return false;
	} 
	 else return true;
  }
}
