// JavaScript Document

//pops new browser window. Size and URL to go to are specified on the page.
function shortPopUp( url, name, width, height, scrollbars, resizable ) { 
	var top  = "50"; 
	var left = "50"; 
	if (url.indexOf('jsession') < 0)
	 		url = encodeUrl(url, false);
	 		
	if( scrollbars == null ) scrollbars = "0"; 
	if( resizable == null ) resizable = "0"; 
 
	str  = ""; 
	str += "resizable="+resizable+",titlebar=0,menubar=0,"; 
	str += "toolbar=0,location=0,directories=0,status=0,"; 
	str += "scrollbars=" + scrollbars + ","; 
	str += "width=" + width + ","; 
	str += "height=" + height + ","; 
	str += "top=" + top + ","; 
	str += "left=" + left; 
	window.open( url, name, str ); 
}
function shortPopUpNoEncode( url, name, width, height, scrollbars, resizable ) { 
	var top  = "50"; 
	var left = "50"; 
	
	 		
	if( scrollbars == null ) scrollbars = "0"; 
	if( resizable == null ) resizable = "0"; 
 
	str  = ""; 
	str += "resizable="+resizable+",titlebar=0,menubar=0,"; 
	str += "toolbar=0,location=0,directories=0,status=0,"; 
	str += "scrollbars=" + scrollbars + ","; 
	str += "width=" + width + ","; 
	str += "height=" + height + ","; 
	str += "top=" + top + ","; 
	str += "left=" + left; 
	window.open( url, name, str ); 
}
function shortPopUpExtern( url, name, width, height, scrollbars ) { 
	var top  = "50"; 
	var left = "50"; 
	 		
	if( scrollbars == null ) scrollbars = "0"; 
 
	str  = ""; 
	str += "resizable=1,titlebar=0,menubar=0,"; 
	str += "toolbar=1,location=0,directories=0,status=1,"; 
	str += "scrollbars=" + scrollbars + ","; 

 
	//window.open( url, name, str ); 
	window.open( url, name ); 
}
function querySt(ji) {
	hu = window.location.search.substring(1);
	gy = hu.substring(7);
	return gy;
}
function setRedirectURL() {
	var rd_url = querySt("rd_url");
	this.location.href = rd_url;
	return;
}
function openURL(pURL, sURL, w, h) {
	var wSize = 'width=' + w + ',height=' + h + ',location=1,status=1,scrollbars=yes,resizable=yes';
  var rdURL = pURL + '?rd_url=' + sURL; 
  window.open(rdURL, '', wSize);
} 
