function hideShow(div,icon,swaptext,title)
{ 
	if(document.getElementById(div).style.display == 'none')
	{ 
		document.getElementById(div).style.display = '';
		document.images[icon].src = '/_resources/images/xtree/hide.gif';
		document.getElementById(swaptext).innerText = 'Hide ' + title;	
	}
	else
	{
		document.getElementById(div).style.display = 'none';
		document.images[icon].src = '/_resources/images/xtree/show.gif';
		document.getElementById(swaptext).innerText = 'Show ' + title;	
	}
} 
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
var preloadFlag = false;
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
function cancel() {
	 history.go(-1);
}
function gohere(gotoURL) {
	 window.location = gotoURL;	
}
function hov(loc,cls){
   if(loc.className)
      loc.className=cls;
}
function NewWindow(mypage, myname, w, h) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',resizable,scrollbars,toolbar'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); 
	}
}
 

