<!--
function ClearForm()
{
	var FieldType;
	for (var i = 0; i < document.EditForm.length; i++) 
	{
		FieldType = document.EditForm.elements[i].type;
		if (FieldType == "text" || FieldType == "textarea") 
		{
			document.EditForm.elements[i].value = "";
		}
		if (FieldType == "select-one") 
		{
			document.EditForm.elements[i].options.selectedIndex = 0;
		}
	}
}

function OpenNewWindow(url, width, height)
{
	var randomnumber=Math.floor(Math.random()*5001);
	window.open(url, randomnumber,"top=10,left=10,menubar=0,resizable=1,scrollbars=1,width=" + width + ",height=" + height);
}

function OpenWindowNoScroll(url, width, height) 
{ 
	window.open(url, 'popup_noscroll', "top=10,left=10,menubar=0,resizable=0,scrollbars=0,width=" + width + ",height=" + height);
} 

function protect_images2(e) 
{
	var msg = "Sorry, our images are copyrighted.";
	if (navigator.appName == 'Netscape' && e.which == 3) 
	{
		alert(msg);
		return false;
	}

	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) 
	{
		alert(msg);
		return false;
	}
	else 
	{
		return true;
	}
}

function protect_images1() 
{
	if(document.images) 
	{
		for(var i=0; i < document.images.length; i++ ) 
		{
			document.images[i].onmousedown = protect_images2;
			document.images[i].onmouseup = protect_images2;
		}
	}
}

function OpenSideWindow(url)
{
	var rightwidth=300;
	if (document.all) 
	{
		var windowheight = screen.availHeight;		
		var leftwidth=screen.availWidth-rightwidth-11;
		var SideWindow=window.open(url,'SideWindow','width='+rightwidth+',height='+(windowheight-60)+',screenX='+leftwidth+',screenY=0,top=0,left=' +leftwidth+',toolbar=0,location=0,status=1,menubar=0,resizable=1');

		SideWindow.focus();
	} 
	else 
	{
		SideWindow=window.open(url,'','width=280,height=480,toolbar=0,location=0,status=1,menubar=0,resizable=1');
	}
}

//-->