function yspopen(url,winname,width,height,st)
{
	agt=navigator.userAgent.toLowerCase();
	ie=(document.all) ? true:false;
	if(ie){
		ie4=(agt.indexOf('msie 4.')!=-1) ? true:false;
		ie5=(agt.indexOf('msie 5.')!=-1) ? true:false;
		}
	else { ie4=0;ie5=0; }

	ns=(document.layers) ?  true:false;
	ns6=(document.getElementById && !document.all) ? true:false;
	win=( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) )? true:false;
	mac=(agt.indexOf("mac")!=-1)? true:false;
	var toolbar;
	var location;
	var directories;
	var status;
	var menubar;
	var resizable;
	var scrollbars;
	var dependent;

	st.charAt(0) == '1'	?  toolbar = 'yes' 		: toolbar = 'no';
	st.charAt(1) == '1'	?  location = 'yes' 	: location = 'no';
	st.charAt(2) == '1'	?  directories = 'yes' 	: directories = 'no';
	st.charAt(3) == '1'	?  status = 'yes' 		: status = 'no';
	st.charAt(4) == '1'	?  menubar = 'yes' 		: menubar = 'no';
	st.charAt(5) == '1'	?  resizable = 'yes' 	: resizable = 'no';
	st.charAt(6) == '1'	?  scrollbars = 'yes' 	: scrollbars = 'no';
	st.charAt(7) == '1'	?  dependent = 'yes' 	: dependent = 'no';
	var win_attr='toolbar=' + toolbar + ',location=' + location + ',directories=' + directories + ',status=' + status + ',menubar=' + menubar + ',resizable=' + resizable + ',scrollbars=' + scrollbars + ',dependent=' + dependent;

	if(scrollbars == 'yes'){
	var width_macIE=Number(width-16);
	var height_macIE=Number(height-16);
	}else{
	var width_macIE=Number(width);
	var height_macIE=Number(height);	
	}
	var status_macIE = 'width=' + width_macIE+ ',height=' +height_macIE;
	var status = 'width=' +width+ ',height=' + height;
if(mac && ie){
	wo=window.open(url,winname,status_macIE+','+win_attr);
	wo.focus();
}
else {
	wo=window.open(url,winname,status+','+win_attr);
	wo.focus();
	}
}
function gourl(goopen){
	if(goopen.options[goopen.selectedIndex].value){
		location.href = goopen.options[goopen.selectedIndex].value;
	}
}
