// 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 ); 
}