var newwin;
function si_popup(winurl,winname,winwidth,winheight,scrollbool,winfeat) {
// This launches a new window, with a workaround
// for Mac MSIE windowsize bug and then focuses it
// if window.focus() is supported.
// v1.1b with scrollbars
// (c) 2000 SOV interactive

	deltawidth = 0;
	deltaheight = 0;
	
	scrolldeltaw =16;
	scrolldeltah = 0;
	scrollfeat = "scrollbars=1, scrolling=1,";
		
	if ( -1 != navigator.appVersion.indexOf("Mac")) {
	// if navigator.appVersion contains string "Mac" then (it's a Mac)...
		scrolldeltaw =15;
		if (-1 != navigator.userAgent.indexOf("MSIE 4.5")) {
		// if navigator.userAgent contains string "MSIE 4.5" then (it's v4.5 of IE!)...
			deltawidth = -16;
			deltaheight = -13;
		}
		if (-1 != navigator.userAgent.indexOf("MSIE 5")) {
		// if navigator.userAgent contains string "MSIE 5" then (it's v5 of IE!)...
			deltawidth = -16;
			deltaheight = -16;
		}
	}
	
	if (scrollbool == 0) {
		scrollfeat = "scrollbars=0, scrolling=0,";
		scrolldeltaw = 0;
		scrolldeltah = 0;
	}
	
	winwidth = winwidth+deltawidth+scrolldeltaw;
	winheight = winheight+deltaheight+scrolldeltah;
	newwin = window.open(winurl,winname,"width="+winwidth+",height="+winheight+","+scrollfeat+winfeat);
	//if(javascript_version > 1.0) {
		//delay a bit here because IE4 encounters errors
		//when trying to focus a recently opened window
		setTimeout('newwin.focus();',250);
	//}
}
