XSAg = window.navigator.userAgent; XSBVers = parseInt(XSAg.charAt(XSAg.indexOf("/")+1),10);XSAppName = window.navigator.appName;function XSIsIE() { return XSAg.indexOf("MSIE") > 0;}function XSIEStyl(s) { if (document.all.tags("div")[s] != null) return document.all.tags("div")[s].style; else return null;}function XSNSStyl(s) { return XSFindElement(s,0); }function XSFindElement(n,ly) { if (XSBVers < 4) return document[n];    var curDoc = ly ? ly.document : document; var elem = curDoc[n];    if (!elem) { for (var i=0;i<curDoc.layers.length;i++) {        elem = XSFindElement(n,curDoc.layers[i]); if (elem) return elem; }}    return elem;}XSIm = new Object();function XSClickReturn () {	var bAgent = window.navigator.userAgent; 	var bAppName = window.navigator.appName;	if ((bAppName.indexOf("Explorer") >= 0) && (bAgent.indexOf("Mozilla/3") >= 0) && (bAgent.indexOf("Mac") >= 0))		return true; 	else return false; }function XSPreloadImage(name, index, url) {    if (document.images) {        if (XSIm[name] == null)            XSIm[name] = new Object();        XSIm[name][index] = new Image();         XSIm[name][index].src = url;     }}function XSSwitchButton(name, index, status) {    if (document.images) {        if (XSIm[name]) {            var img = (!XSIsIE()) ? XSFindElement(name,0) : document[name];            if (img && typeof(XSIm[name][index].src) != "undefined")  {                img.src = XSIm[name][index].src;            }            self.status = status;            return true;        }    }    return false;}function XSGotoLink(frame, url) {    if (frame != "null") {        var hasFrame=false;		for(i=0;i<parent.frames.length;i++) {			if (parent.frames[i].name==frame) {     	  		hasFrame=true;      	  		break;        	}     	}     	if (hasFrame==true) {     		parent.frames[frame].location = url;     	}     	else {        	parent.location = url;		}    }    else     	location = url;}function XSOpenWindow(url, windowname, width, height, resizable, scrollbars, menubar, toolbar, directories, location, status) { 	var wf = "";		wf = wf + "width=" + width;	wf = wf + ",height=" + height;	wf = wf + ",resizable=" + (resizable ? "yes" : "no");	wf = wf + ",scrollbars=" + (scrollbars ? "yes" : "no");	wf = wf + ",menubar=" + (menubar ? "yes" : "no");	wf = wf + ",toolbar=" + (toolbar ? "yes" : "no");	wf = wf + ",directories=" + (directories ? "yes" : "no");	wf = wf + ",location=" + (location ? "yes" : "no");	wf = wf + ",status=" + (status ? "yes" : "no");			window.open(url,windowname,wf);}function XSCloseWindow() { if (self.parent.frames.length != 0) {	self.parent.close()		} else {	window.close()	}}function XSURLPopupLocationChange(popup, target) {	window.open(popup.options[popup.selectedIndex].value, target);}