/* * Art Jury Software * * Copyright (c) 2003-4 The Working Group Inc. * * Developed by The Working Group Inc.  * http://theworkinggroup.ca * * @version $Id: general.js,v 1.1.1.1 2005/01/13 21:53:31 cameron Exp $ * */ //**********************************************************************/* * * Function:  showMessage() * * 		wrapper for overlib - not being used right now * * @access public * @return TBD *                 */function showMessage(koId) {	//overlib(msg, STICKY);	var helpWindow = 'help'+koId;		if (olNs4) {		over = o3_frame.document.layers['overDiv'];	} else if (document.all) {		over = o3_frame.document.all['overDiv'];	} else if (document.getElementById) {		over = o3_frame.document.getElementById("overDiv");	}			if (olNs4) {		var lyr = o3_frame.document[helpWindow].document		lyr.write(txt)		lyr.close()	} else if (typeof over.innerHTML != 'undefined') {		if (olIe5 && isMac) over.innerHTML = '';		over.innerHTML = txt;	} else {		range = o3_frame.document.createRange();		range.setStartAfter(over);		domfrag = range.createContextualFragment(txt);				while (over.hasChildNodes()) {			over.removeChild(over.lastChild);		}				over.appendChild(domfrag);	}		return;}/* * * Function:  showHelp() * * 		opens a window for the help * * @access public * @return TBD *                 */function showHelp(url) {	if(!helpWindow || helpWindow && helpWindow.closed) {		helpWindow = window.open(url, "HelpViewer", "width=640,height=480,top=20,right=20,toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes");	} else {		//helpWindow.location.reload();		helpWindow.focus();	}}// defines variable outside of function to make it globalvar helpWindow = null;/* * * Function:  getObjectById() * * 		gets object by Id (wrapper for dom variations in browsers) * * @access public * @return TBD *                 */function getObjectById(id){	var obj = false;	if(document.getElementById){		obj = document.getElementById(id);}	else if(document.all){		obj = document.all[id];}	else if(document.layers){		obj = document.layers[id];}			return obj;}/* * * Function:  showHide() * * 		toggles the bort's information drawer * * @access public * @return TBD *                 */function showHide(id,cleanUrlBase){	//alert("function successfully called");		obj = getObjectById(id);		if(!obj) { return false; }	if(obj.style.display == 'none'){		obj.style.display = '';		document.getElementById("OpenButton"+id).src = cleanUrlBase+"images/close.gif";	}	else{		obj.style.display = 'none';		document.getElementById("OpenButton"+id).src = cleanUrlBase+"images/open.gif";				// redraw content to avoid bug - turned off because it's too flashy - dwc		//redrawParentElement('content');	}	}/* * * Function:  redrawParentElement() * * 		redraws the parent node, to force changes in the dom * * @access public * @return TBD *                 */function redrawParentElement(thisId) {	thisContent = document.getElementById(thisId);	thisContent.parentNode.replaceChild(thisContent, thisContent);}