/* JavaScript Functions */
var helpDisplayed=false;
function toggleHelp() {
	if ( helpDisplayed ) 
		hideHelp();
	else
		showHelp();
}
function showHelp() {
	var helpObj=document.getElementById("helpArea");
	if ( helpObj != null ) {
		helpObj.className = "inlineHelpVisible";
	}
	
	helpDisplayed=true;
}
function hideHelp() {
	var helpObj=document.getElementById("helpArea");
	if ( helpObj != null ) {
		helpObj.className = "inlineHelpHidden";
	}
	
	helpDisplayed=false;
}

function openWindow(url,width,height) {
	urlstring=url;

	LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-height)/2 : 0;

	win1=window.open(urlstring,'win1','top=' + TopPosition + ',left=' + LeftPosition + 'directories=no,hotkeys=no,location=no,menubar=no,status=yes,toolbar=no,resizable=no,scrollbars=yes,height=' + height +',width='+ width)
	win1.focus();
			
	 if (win1 != null && win1.opener == null)
       		      win1.opener=window;
}
function openStaticWindow(url,width,height) {
	urlstring=url;

	LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-height)/2 : 0;

	win1=window.open(urlstring,'win1','top=' + TopPosition + ',left=' + LeftPosition + 'directories=no,hotkeys=no,location=no,menubar=no,status=yes,toolbar=no,resizable=no,scrollbars=no,height=' + height +',width='+ width)
	win1.focus();
			
	 if (win1 != null && win1.opener == null)
       		      win1.opener=window;
}
