// *** AGREGADO DE PAIS EN PRODUCCION

	function saberPosision(){

		direccionActual = location.href;

		buscarResultado = String(direccionActual).indexOf("STAGING");
		buscarResultado2 = String(direccionActual).indexOf("WORKAREA");

		if(buscarResultado == -1 && buscarResultado2 == -1){
			result = "";
			return result;
		}else{
			result = "";
			return result;
		}
	}
// *** /AGREGADO DE PAIS EN PRODUCCION



// *** launchPopup

	function launchPopup(url,title,params){
	
		win = window.open(url, title, params);
	}
// *** /launchPopup

// *** link to CBOL at root

	function cbol(e,l) {
		var h = BVE;
		if(h.indexOf('licist')!=-1) e.target='_blank'; // until sa2 rollout
		e.href=h+l;
	}
// *** /link to CBOL at root

// *** link to CBOL on path
	function BV(e,l,s) {
		var h = BVE+BVP;
		if(s) {
			h=h.replace('cgi-bin','signin'); // login goes on the signin path; everything else on cgi-bin
			h=h.replace('http:','https:'); // bug in portal requires https
		}
		launchPopup(h+l,'login','status,resizable,scrollbars,width=720,height=575');
	}
// *** /link to CBOL on path
