thismenuitem=-1;oldmenuitem=-1;function changelayout(L) {layout=L;setCookie();if(sitemap==1) location.href=thisurl+"?sitemap=1";else if(accessibility==1) location.href=thisurl+"?accessibility=1";else location.href=thisurl+"?sec="+sec+"&tp="+tp+"&layout="+layout+"&ts="+ts;}function loadpage() {//location.href=thisurl;//alert(linkurl)location.href=linkurl;}function setmenuitem(s) {thismenuitem=s;if(oldmenuitem==thismenuitem) clearTimeout(the_timeout);if(oldmenuitem>-1 && thismenuitem!=oldmenuitem) hideitem();eval('document.getElementById("topmenu'+thismenuitem+'").style.backgroundColor="#E7EEFD"');eval('document.getElementById("sub'+thismenuitem+'").style.visibility="visible"');}function unsetmenuitem() {oldmenuitem=thismenuitem;thismenuitem=-1;the_timeout=setTimeout("closemenu()",800);}function closemenu() {if(thismenuitem==-1) hideitem();}function hideitem() {eval('document.getElementById("topmenu'+oldmenuitem+'").style.backgroundColor="#FFEBCC"');eval('document.getElementById("sub'+oldmenuitem+'").style.visibility="hidden"');}function page_link(thissec,thisp,thissh) {if(thissec==pend) {alert("That page is currently unavailable.");return;}sec=thissec;tp=thisp;ts=thissh;location.href=thisurl+"?sec="+sec+"&tp="+tp+"&layout="+layout+"&ts="+ts;}function change_page(thissec,thisp) {sec=thissec;tp=thisp;thissheet=1;location.href=thisurl+"?sec="+sec+"&tp="+tp+"&layout="+layout+"&ts=1";}function setCookie() {cookie_data=layout;today=new Date()expire=new Date()expire.setTime(today.getTime() + 1000*60*60*24*365)document.cookie="ITNetwork="+escape(cookie_data)+((expire==null)?"":(";expires="+expire.toGMTString()));}function loadsearch(){v=document.searchform.searchstring.value;if(v=="search for...") v="";v=v.replace(/\./g,"");document.searchform.searchstring.value=v;if(v.length<3) {alert("A query must have more than 2 characters.");return;}var iCount,iDataLen;var strCompare;var bFlag = true;strCompare = "ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz0123456789";iDataLen = v.length;if (iDataLen >0) {for (iCount=0; iCount<iDataLen; iCount++) {var cData = v.charAt(iCount);if (strCompare.indexOf(cData)<0) {alert("Only letters, numerals and spaces are allowed");return false;}}// OK}else {return false;}newpage='search2.php?search_term='+v;winwidth=440;winheight=420;s_window=window.open(newpage,"search","status=no,resizable=yes,toolbar=no,menubar=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0,width="+winwidth+",height="+winheight);}function mailform(e,a){email=e;author=a;newpage='mail_form.htm';winwidth=440;winheight=420;v_window=window.open(newpage,"enquiry","status=no,resizable=yes,toolbar=no,menubar=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0,width="+winwidth+",height="+winheight);}function feedbackform(){newpage='feedback_form.htm';winwidth=440;winheight=420;f_window=window.open(newpage,"feedback","status=no,resizable=yes,toolbar=no,menubar=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0,width="+winwidth+",height="+winheight);}function printpage() {u=fullurl.split(".");if(u[1]=="php") printfile=fullurl+'?print=1';else printfile=fullurl+'&print=1';winwidth=500;winheight=500;p_window=window.open(printfile,"print","status=no,resizable=yes,toolbar=no,menubar=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0,width="+winwidth+",height="+winheight);}nav_window=null;function loadnav(){newpage='navigation.php';winwidth=240;winheight=420;nav_window=window.open(newpage,"navpane","status=no,resizable=yes,toolbar=no,menubar=yes,scrollbars=yes,screenX=0,screenY=0,left=0,top=0,width="+winwidth+",height="+winheight);}function buttonhover(button) {button.style.color="#EDF2FD";button.style.background="#477CEC";}function buttonunhover(button) {button.style.color="#477CEC";button.style.background="#EDF2FD";}