function openPrintablePage( szPrintURL ) {

	var szURL = szPrintURL;
	
	szURL += ( szURL.indexOf( '?' ) > 0 ? '&' : '?');
	szURL += 'blnPrintable=1&rnum='
		+ Math.random();
		
	documentWin = window.open( szURL, 'PrintablePage', 'directories=no,height=500,width=600,location=no,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=yes' );
	documentWin.focus();
	// documentWin.print();
}

function openPopup( szURL,szWindowName ) {
	var szURL = szURL;
	szURL += ( szURL.indexOf( '?' ) > 0 ? '&' : '?');
	
	documentWin = window.open( szURL, szWindowName, 'directories=no,height=500,width=600,location=no,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=yes' );
	documentWin.focus();
}

function addToFavourites()
{
	if(typeof window.external != 'undefined' && typeof window.external.AddFavorite != 'undefined')
	{
		window.external.AddFavorite(location.href, document.title);
	}
	else
	{
		alert('To bookmark this page select \'Bookmark This Page\' in the Bookmarks menu located on your broswer window\n\n');
	}
}

function NB_searchFormValidate( objForm ) {

	if( !NB_formFieldIsNotEmpty( objForm.szSearchText ) || ( objForm.szSearchText.value == "Search" ) ) { 
		alert("Please Enter A Search Term");
		return false;
	}
	else
	{
		return true;
	}

}