function fixedpopupwindow( ID ){
        open( ID, "helpWindow", "scrollbars=yes,width=740,height=500,status=0,toolbar=0,menubar=0,resizable=1,top=0,left=0"); 
        }
function DisplayHelp( ID, w, h )
{
	open( ID, "helpWindow", "scrollbars=yes,width=" + w + ",height=" + h + ",status=0,toolbar=0,menubar=0,resizable=1"); 
}

// Function:	SearchFocus()
// Description:	Used to replace the default text in a search text box when the user clicks the mouse in it's region.
//				The text will only be cleared if it matches "Search here..." EXACTLY!!!
//

function SearchFocus( obj )
{
	if ( obj.value == "Search here..." )
		obj.value = "";
}

// Function:	SearchValidate()
// Description:	Used to make sure that the search form has a value other than NULL or "Search here..."
//

function SearchValidate( obj )
{
	if ( obj.CiRestriction.value == "" || obj.CiRestriction.value == "Search here..." )
	{
		alert( "Please enter one or more search words" );
		return false;
	}
	else
		return true;
}

// Copyright 2006-2007 javascript-array.com

var timeout	= 500;
var closetimer	= 0;
var ddmenuitem	= 0;

// open hidden layer
function mopen(id)
{	
	// cancel close timer
	mcancelclosetime();

	// close old layer
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';

	// get new layer and show it
	ddmenuitem = document.getElementById(id);
	ddmenuitem.style.visibility = 'visible';

}
// close showed layer
function mclose()
{
	if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';
}

// go close timer
function mclosetime()
{
	closetimer = window.setTimeout(mclose, timeout);
}

// cancel close timer
function mcancelclosetime()
{
	if(closetimer)
	{
		window.clearTimeout(closetimer);
		closetimer = null;
	}
}

// close layer when click-out
document.onclick = mclose; 


