var scrx = screen.width / 2; var scry = screen.height / 2;function toggle(id){	el = document.getElementById(id);	if (el.style.display == 'none')		el.style.display = '';	else		el.style.display = 'none';		}function searchForm(){	w = document.body.clientWidth / 2;	h = screen.width / 2;	document.getElementById("search").style.left = w + 200;//	document.getElementById("search").style.top = h + 200 + "px";	el = document.getElementById("search");	if (el.style.display == 'none')		{el.style.display = '';		document.getElementById('FName').focus()	}	else		el.style.display = 'none';}function WebDBName() {return (path = (location.pathname).toLowerCase()).substring(0,(path.lastIndexOf('.nsf') + 4)) };function GetBrowserType() {return (navigator.appName.toLowerCase() == 'netscape' ? 'NN' : 'IE')};function SearchDb(path, tg){	var url='';		url ='';				var searchView = "";//		if( path.indexOf("bact") > 	-1)//				searchView ="&searchV=1";				var FName = document.getElementById('FName');						//		SName = SName.value;		var ur = new Array();		if( FName.value != "" ) {			ur[0]='field%20Subject%20contains%20*'+FName.value+'*%20and%20';		}//		for(var i=0; i < 7; i++){//			if( ur[i] != null)				url+=ur[0];//		}			url = url.substring(0,url.lastIndexOf('and'))+'&SearchOrder=4'+searchView+'&type=1&start=0&count=200'; 		if( FName.value == ""){			url='field%20Form%20contains%20*PBEntry&searchMax=5000&SearchOrder=4'+searchView+'&type=1&start=0&count=500';		}		if( tg){			var fr = 	document.getElementById('searchresult');			fr.src= path+url;		}else			document.location.href= path+url;}function ShowPrintFormDocument(Doc) {	var window_x = 5 * scrx /3; var window_y = (5* scry / 3) - 100;	var param = 'status=no,resizable=yes,menubar=yes,scrollbars=yes,width=' + window_x.toString() + ',height=' + window_y.toString() + ',left=' + (scrx - window_x/2).toString() + ',top=' + (scry - window_y/2).toString();	if (typeof(print_win) == 'object') print_win.close();	print_win = window.open(Doc,'print',param);	print_win.focus(); print_win.print()};