



/**************************
* background color change script
***************************/

	function newWindow(myURL,h,w){
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = 'height=' + h + ',width=' + w +',top=' + wint + ',left= ' + winl + ', scrollbars=yes';
		testWindow = window.open(myURL,"title",winprops);
		testWindow.focus();
	}

	function navBar( tableCellRef, hoverFlag, navStyle ) {
		if ( hoverFlag ) {
			switch ( navStyle ) {
				case 1:
					tableCellRef.style.backgroundColor = '#5279E6';
					break;
				case 2:
					tableCellRef.style.backgroundColor = '#FFFFFF';
					break;
				default:
					if ( document.getElementsByTagName ) {
						tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
					}
			}
		} else {
			switch ( navStyle ) {
				case 1:
					tableCellRef.style.backgroundColor = '#1A4FE6'; //093E02 FAFFDA
					break;
				case 2:
					tableCellRef.style.backgroundColor = '#D6B7B7';
					break;
				default:
					if ( document.getElementsByTagName ) {
						tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
					}
			}
		}
	}

	function goTo( url ) {
		window.location.href = url;
	}
	
/**********************************
* valid search string check
**********************************/

function validSearchForm(){
	if(document.getElementById("search_string").value==""){
		alert("Please enter a search string!");
		return false;
	}

	return true;
}