var FunctionWindowObject;

function Nothing () {}

function ChangeToSearchWindow() 
{
window.resizeTo(530,400);
window.moveTo(100,100);
}

function ShowHideItems(elementName,image){
		items = document.getElementsByName(elementName);
		for(i=0; i<items.length; i++) {
			if(image.src.indexOf('plus.gif') > 0) {
				items[i].style.display = "block";
				image.title="Click to Retract this category"
			}
			else {
				items[i].style.display = "none";
				image.title="Click to Expand this category"
			}
		}
		if(image.src.indexOf('plus.gif') > 0)
			image.src='/common/minus.gif'
		else
			image.src='/common/plus.gif'
}

function FunctionWindow(URLLink) 
{
if (!FunctionWindowObject || FunctionWindowObject.closed) {
	FunctionWindowObject=window.open(URLLink,"FunctionWindowObject","HEIGHT=100,WIDTH=100,left=50,top=50, alwaysLowered,resizable=0");
	window.focus();
}
else
	FunctionWindowObject.location.href=URLLink;
}

function SetWindowTitle(title) 
{
window.document.title=title;
}
function NewWindow(URLLink) 
{
window.open(URLLink,"","HEIGHT=500,WIDTH=750,left=50,top=50, scrollbars,menubar,alwaysraised,resizable=1");
}

function PrintWindow(URLLink) 
{
window.open(URLLink,"","HEIGHT=20,WIDTH=20,left=50,top=50, scrollbars,menubar,alwaysraised,resizable=0");
}

function disableEnterKey(e) {
//var pK = document.all? window.event.keyCode:e.which;
//return pK != 13;
if (window.event.keyCode == 13 && window.event.srcElement.type != 'textarea') {
	alert("Can't press enter");
	return false;
}
}