function doSearch( frm, sQuery, iCount, iStart){	var frm = ( frm? frm: document.forms[ 'Search']);	var sQuery = ( sQuery? sQuery: ( frm? frm.Query.value: ""))	if ( !sQuery){ alert( "Please enter a search criteria before proceeding"); return false}	var iCount = ( iCount? iCount: ( frm? frm.Count.value: g_iCountDefault))	var iStart = ( iStart? iStart: ( frm? frm.Start.value:1))	//window.location.href= ( g_sDbPath + "/sv?SearchView&Query=" + escape( frm.Query.value) + "&Count=" + iCount.toString() + "&Start=" + iStart.toString())	window.location.href= ( frm.action + "&Query=" + escape( frm.Query.value) + "&Count=" + iCount.toString() + "&Start=" + iStart.toString())	return ( false)}function mOverTab( oSrc, iSrc){	//Check objects and availability of [g_aTabs] - tab data	if ( !window.g_aTabs || !oSrc){ return false}	//Collect data associated with [oSrc]	var aData = g_aTabs[ iSrc-1].split( "|");			//Enable current tab [oSrc]	oSrc.src = aData[ 1] + "/$file/" + aData[ 4];			//Disable all other tabs	var i=1;	var oTab = document.getElementById( "imgTab_" + i.toString());	while ( oTab){		if ( i != ( iSrc)){			aData = g_aTabs[ i-1].split( "|");			oTab.src = aData[ 1] + "/$file/" + aData[ 3]		}		i++;		oTab = document.getElementById( "imgTab_" + i.toString());	}		}function mOutTab( oSrc, iSrc){	//Check objects and availability of [g_aTabs] - tab data	if ( !window.g_aTabs || !oSrc){ return false}	var aData;		//Disable all other tabs	var i=1;	var oTab = document.getElementById( "imgTab_" + i.toString());	while ( oTab){		aData = g_aTabs[ i-1].split( "|");		oTab.src = aData[ 1] + "/$file/" + aData[ 2]		i++;		oTab = document.getElementById( "imgTab_" + i.toString());	}	}function displayPrinterFriendly(){	openWindow( window.location.href + ( window.location.href.indexOf( "?") == -1? "?Open": "") + "&print=1", null, 500, 650);}function getPDF( url ) {	if ( url != "" ) {	//alert ( g_sDbPath +"/0/" + url  );	//openWindow(g_sDbPath +"/0/" + url , "test");	location.replace ( g_sDbPath +"/0/" + url );	}}function openWindow(url, urlDescription, height, width){	if ( height == null ) height = 400;	if ( width == null ) width = 600;	var windowOptions = "width="  + width  + ",height=" + height + ",menubar=no,resizable=yes,scrollbars=yes,status=yes,toolbar=no";  	window.open (url, urlDescription, windowOptions);}