
	function show(sectionObj){
		//alert(sectionObj);alert(sectionObj.className);alert(sectionObj.style);
		if (sectionObj.className=='doNotDisplay'|| sectionObj.style.display=='none') {
			sectionObj.className='display';
		}
	}
	function hide(sectionObj){
		sectionObj.className='doNotDisplay';
	}

	function changeText(target,source){
		target.innerHTML=source.innerHTML;//innerText;//document.getElementById("target")
	}
	function hilightBorder(imageObj){
		//clear all other image borders
		var allElementCount = document.images.length;
		for(var i=0;i<allElementCount;i++){
			var element = document.images[i];
			element.style.borderColor="black";
			element.className="";
		}
		imageObj.style.borderColor="red";
		imageObj.className = "thickBoxBorder";
	}

	function hilight(tableRowObject,color){

		if(tableRowObject.style.backgroundColor!='#ffff81'){
			if(color==null){
				tableRowObject.style.backgroundColor='#ffff80';
			}else{
				tableRowObject.style.backgroundColor=color
			}
		}

	}
	function clearHilight(tableRowObject){
		if(tableRowObject.style.backgroundColor!='#ffff81'){
			tableRowObject.style.backgroundColor='';
		}

	}
	function highlightWhenClicked(obj){
		if(obj.style.backgroundColor!='#ffff81'){
			obj.style.backgroundColor='#ffff81';
		}else{
			obj.style.backgroundColor='';
		}

	}
	
	function openModelessWindow(url,width,height,name){
		var theWindow;
		var x=0;
		var y=0;

		if(height<screen.height/2){
			y = screen.height/3
		}
		if(width<screen.width){
			x = screen.width/3;
		}
		if( name==null){
			name="";
		}

		theWindow=window.open(url,name,'width=' + width + ', height=' + height + ', resizable, top='+y+',left='+x+',toolbar=no,scrollbars=yes,menubar=no,status=yes');
		theWindow.focus();
		return theWindow;
	}
