//Pop window//PC: IE 6, Firefox 1.0.6, MAC: Firefox 1.0.4, Safar 1.3function popWindow(src, width, height, expanded) {	var w = 800, h = 600;	if (screen.width || screen.height) {		w = screen.width;		h = screen.height;	}	var leftPos = (w-width)/2;	var topPos = (h-height)/2;	if (expanded) {		//window w/ toolbar, status, scrollbar		window.open(''+src+'','','width='+width+',height='+height+',toolbar=yes,status=yes,menubar=no,scrollbars=yes,resizeable=yes,top=' + topPos + ',left=' + leftPos);	} else {		//window plain		window.open(''+src+'','','width='+width+',height='+height+',toolbar=no,status=no,menubar=no,scrollbars=no,resizeable=no,top=' + topPos + ',left=' + leftPos);	}	void(0);}//set detection varsvar detect = navigator.userAgent.toLowerCase();var OS, browser, total, thestring;//search for stringfunction isMSIE(string) {	place = detect.indexOf(string) + 1;	thestring = string;	return place;}//set WIN/IE varsif (isMSIE('msie')) browser = "IE";if (isMSIE('win')) OS = "WIN";//handle itemfunction showItem(targ, count) {	var item = document.getElementById(targ);	for (var i = 1; i <= count; i++) {		var ref = "item"+i;		ref = document.getElementById(ref);		if (ref == item) {			if (item.style.display == "none") {					if (OS == "Windows" && browser == "IE") {					ref.style.display = "inline"; //msie, inline				} else {					ref.style.display = "";				}			} else {				ref.style.display = "none";			}		} else {			if (ref.style.display != "none") {				ref.style.display = "none";				img = "expand"+i;				changeImage(img);			}		}	}}//handle imagefunction changeImage(targ) {	if (document[targ].src.indexOf('icon_up.gif') > 0) {		document[targ].src = "images/icon_down.gif";	} else {		document[targ].src = "images/icon_up.gif";	}}