<!--
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes,resizable=yes,width=850,height=650,top=0,left=0'

win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

var OnLoadFunctions = new Array();

function OnLoadHandler()
{
    if ( OnLoadFunctions.length > 0 )
    {
        try
        {
            eval( OnLoadFunctions.join( ";" ) + ";" );
        }
        catch( e )
        {
            alert( "OnLoadHandler ERROR" ) ;
        }
    }   
}

function AttachToLoad( strCommand )
{
    OnLoadFunctions[OnLoadFunctions.length] = strCommand;
}

window.onload = OnLoadHandler;

function clearfield( objField, strClearString )
{
    if( objField.value == strClearString )
        objField.value = "";
}
function setemptyfield( objField, strString )
{
    if( objField.value == "" )
        objField.value = strString;
}

function doSearch()
{
	var objSearchForm = document.getElementById( "searchform" );
	if( objSearchForm )
		objSearchForm.submit();
}

function isEmpty( strID )
{
	var bRet = true;
	var objElement = document.getElementById( strID );
	if( objElement )
	{
		switch( objElement.tagName )
		{
			case "INPUT":
			case "TEXTAREA":
			{
				if( objElement.value != "" )
					bRet = false;
				break;
			}
		}
	}
	return bRet;
}

var objSCTimer = null;

function calSCLeft()
{
	var nResult = document.getElementById( "footer" ).clientWidth;
	nResult += ( document.body.clientWidth - document.getElementById( "footer" ).clientWidth ) / 2;
	nResult -= document.getElementById( "sitechooser" ).clientWidth;
	nResult -= 5;
	return nResult;
}
function calSCTop()
{
	var objFooter= document.getElementById( "footer" );
	var objSiteChooser = document.getElementById( "sitechooser" );
	var nResult = objFooter.offsetTop - objSiteChooser.getAttribute( "topdiff" );
	return nResult
}

function onSCOver()
{
	if( objSCTimer )
		clearTimeout( objSCTimer );	

	var objSiteChooser = document.getElementById( "sitechooser" );
	if( objSiteChooser )
	{
		objSiteChooser.style.display = "block";
		var nLeft = calSCLeft();
		var nTop = calSCTop();
		objSiteChooser.style.top = nTop + "px";
		objSiteChooser.style.left = nLeft + "px";
		objSiteChooser.style.display = "none";
		objSiteChooser.style.display = "block";
	}
}

function onSCOut()
{
	if( objSCTimer )
		clearTimeout( objSCTimer );	
	objSCTimer = setTimeout( "onSCClose()", 500 );
}

function onSCClose()
{
	var objSiteChooser = document.getElementById( "sitechooser" );
	if( objSiteChooser )
	{
		objSiteChooser.style.display = "none";
	}
}

///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")



