//Global variables cUrl = self.location.href; cUrl = cUrl.substring(cUrl.indexOf("://")+3,cUrl.length); cUrl = cUrl.substring(cUrl.indexOf("/"),cUrl.length); function validate(f) { f.submit(); } function openDbRelativeURL( url, target ){ //Check we have a target window; target = (target == null ) ? window : target; //Work out the path of the database; path = location.pathname.split('.nsf')[0] + '.nsf/'; target.location.href = path + url; } function createCookie (name,value,days) { if (days) { var date =new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = ";expires="+date.toGMTString(); } else expires = ""; document.cookie = name+"="+value+expires+";path=/"; } function readCookie (name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for (var i=0;1,\[,\]]/; var str = s.value; var linesperpage=20; if ( str == "" ){ alert("Please be sure to enter something to search for."); s.focus(); } else { if ( typeof regExp1.source != 'undefined' ) //supports regular expression testing if ( regExp1.test( str ) || regExp2.test( str ) ){ var alrt = "Please note that you can not include:"; alrt += "\n\nThe reserved word 'field'\nthe characters [, ], (, ), < or >"; alrt += "\n\nin your search query!\n\nIf you are confident that you know"; alrt += "\nwhat you are doing, then you can\nmanually produce the URL required." s.focus(); return alert( alrt ); } //str = replace(str.split(" "),","," and "); str = str.split(" "); //alert(str); openDbRelativeURL("Movies_all?SearchView&Query=" + escape( str ) + "&SearchWv=1&start=1&count="+linesperpage); } } 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); //if you want to alert the user, use this line //alert('Please use the \'Go!!\' button to do a search'); return false; } function browserCheck() { this.browser=navigator.userAgent.toLowerCase(); this.dom=document.getElementById; this.ns4=(!this.dom && document.layers); this.op=window.opera; this.moz=(this.browser.indexOf("gecko")>-1); this.ie=(this.browser.indexOf("msie")>-1 && !this.op); return this; } //end function browserCheck() var browse=new browserCheck(); function getLayer(layerId) { layer=null; this.browser=navigator.userAgent.toLowerCase(); this.dom=document.getElementById; this.ns4=(!this.dom && document.layers); this.op=window.opera; this.moz=(this.browser.indexOf("gecko")>-1); this.ie=(this.browser.indexOf("msie")>-1 && !this.op); //alert(layerId); if (this.ns4) { //alert("Netscape 4.x"); layer=eval("document.layers[\""+layerId+"\"]"); // for NN 4.7 } //else if (document.all[layerId]) { else if (this.ie) { //alert("Internet Explorer"); layer=eval("document.all[\""+layerId+"\"].style"); // for IE } //else if (document.getElementById) { else if (this.moz) { //layer=eval("document.getElementById[\""+layerId+"\"]"); // for Mozilla layer=document.getElementById(layerId); // for Mozilla } else { //alert("Unknown browser"); } return layer; } function hideshowLayer(layerIdHide,layerIdShow) { layerhide=getLayer(layerIdHide); layershow=getLayer(layerIdShow); //alert(layerhide); if (layerhide!=null) { if (browse.moz) { layerhide.style.display="none"; } else if (browse.ie) { layerhide.display="none"; } } if (layershow!=null) { if (browse.moz) { layershow.style.display="block"; } else if (browse.ie) { layershow.display="block"; } } }