var trap_error=true;var DHTML=(document.getElementById||document.all||document.layers);function getObj(a){if(!DHTML){return}if(document.getElementById){this.obj=document.getElementById(a);this.style=document.getElementById(a).style}else{if(document.all){this.obj=document.all[a];this.style=document.all[a].style}else{if(document.layers){this.obj=document.layers[a];this.style=document.layers[a]}}}}function set_trap(){trap_error=true}function unset_trap(){trap_error=false}function local_submit(){document.OpenHistories.savebutton.value="local";document.OpenHistories.submit();return false}function checkfields(b){if(!trap_error){return true}if(!DHTML){return false}var e=b.search_name.value;var c=false;var h="";if(b.alert_status){c=b.alert_status.checked}if(b.email_address){var h=b.email_address.value}var d=new getObj("thepage");var f=d.style.top;var k=new getObj("errorbox1");var j=new getObj("errorbox2");var g=new getObj("errorbox3");k.style.visibility="visible";j.style.visibility="visible";g.style.visibility="visible";var a=false;if(e.match(/^\s+$/)){e=""}if((e.length==0)&&(c&&(IsValidEmail(h)==-1))){f=140;d.style.top=f;k.style.display=""}else{if(e.length==0){f=120;d.style.top=f;j.style.display=""}else{if(c&&(IsValidEmail(h)==-1)){f=120;d.style.top=f;g.style.display=""}}}if((e.length>0)&&(!c)||((e.length>0)&&c&&(IsValidEmail(h)!=-1))){a=true}return a}function IsValidEmail(a){var c=/^(.)+@(.)+(\..+)+$/;var b=new String(a);if(b.match(c)){return 1}return -1}function add_checkmark(a){var g=parent.frames[0].document;var f=g.product_dropdown.my_signin;f.src=a+"/wok_checkmark.gif";var e=g.product_dropdown.Menu;var b=e.length;for(i=0;i