// JavaScript Document
function ChangeRowBgcolor( row_id, menu )
{
	var this_row = document.getElementById( row_id );
	
	if( menu == "top" ) {
		this_row.style.background = "url( /images/nav2_bg.gif )";
	}
	else {
		this_row.style.background = "#EEEEEE";
	}
}

function ResetBgColor( row_id, menu )
{
	var this_row = document.getElementById( row_id );
	if( menu == "top" ) {
		this_row.style.background = "none";
	}
	else {
		this_row.style.background = "#FFFFFF";
	}
}

function SearchBoxCheck( curr_box )
{
	if( curr_box.value == "" || curr_box.value.search( /[a-zA-Z0-9]+/ ) == -1 )
	{
		alert( "Please type in something to search for." );
		curr_box.focus();
		return( false );
	}
	
	return( true );
}


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='+scroll+',resizable'
	
	window.opener = this.window;
	
	window.open(mypage, myname, winprops);  
}