function openDbRelativeURL( url, target ){	//Check we have a target window;	target = (target == null ) ? window : target;	//Work out the path of the database;	path = '/'+DBName+'/';	target.location.href = path + url;}function doSearch ( s, viewtitle ) {	var regExp1 = /\bfield\b/;	var regExp2 = /[(,),<,>,\[,\]]/;	var str = s.value; 	if ( str != "" ){ 		if ( typeof regExp1.source != 'undefined' ) //supports regular expression testing 			if ( regExp1.test( str ) || regExp2.test( str ) ){				return;			}		openDbRelativeURL(viewtitle+"?SearchView&Query=[category]%20CONTAINS%20" + escape( str ) + "%20or%20[body]%20CONTAINS%20" + escape( str ) + "&start=1&count=10");	}}function returnFalse(s){//guess the field if not supplieds = (s == null) ? document.forms[0].Query : s;//if you want to do the search, use this linedoSearch(s, ViewName);//if you want to alert the user, use this line//alert('Please use the \'Go!!\' button to do a search');//this line should always be here!!return false;}