function setcookievalue(name,value){ //alert("updating the cookie: Adding the value="+value); document.cookie=name+"="+value+";Path=/"; //alert("The cookies are:"+getcookievalue("BasketItem")); } function change(id) { var newClass = 'visiblediv'; var oldClass = 'hiddendiv'; allPageTags=document.getElementsByTagName("div"); for (i=0; i function CSWebsiteHeaderSearchResults(){ var fqt="(dDocType `DOCUMENTS` dDocType `WEBPAGES` dDocType `CSNews`)"; var qt=document.CSWEBSITEFORM.sitesearch2.value; if (qt !=null && qt != 'Search' && qt.length !=0){ fqt+= " ([50]dDocTitle `"+qt+"` [30]xKeywords `"+qt+"` [10]xDescription `"+qt+"` [10]xComments `"+qt+"`)"; } document.CSWEBSITEFORM.QueryText.value=fqt; document.CSWEBSITEFORM.submit(); } function MiniSearchRefineSubmit() { var fqt="(dDocType `DOCUMENTS` dDocType `WEBPAGES` dDocType `CSNews`)"; var qt=document.MINISEARCHFORMREFINE.sitesearch.value; var qt1=document.MINISEARCHFORMREFINE.regionselect.options[document.MINISEARCHFORMREFINE.regionselect.selectedIndex].text; var qt2=document.MINISEARCHFORMREFINE.categoryselect.options[document.MINISEARCHFORMREFINE.categoryselect.selectedIndex].text; var month=document.MINISEARCHFORMREFINE.Month.options[document.MINISEARCHFORMREFINE.Month.selectedIndex].value; var year=document.MINISEARCHFORMREFINE.Year.options[document.MINISEARCHFORMREFINE.Year.selectedIndex].value; if (qt !=null && qt.length !=0) { fqt+= " (xComments `"+qt+"` xKeywords `"+qt+"` xPubSite `"+qt+"` xPubZone `"+qt+"` xPubArea `"+qt+"` xPubSubArea `"+qt+"` xxPubSubSubArea `"+qt+"` xPubSubSubSubArea `"+qt+"` dDocTitle `"+qt+"` (`"+qt+"`))"; } if (qt1 !=null && qt1 != 'All Regions') { fqt+=" xLocalAuthority `"+qt1+"`"; } if (qt2 !=null && qt2 != 'All Topics') { fqt+=" xTopics `"+qt2+"`"; } if( month!=0 && year!=0) { fqt+= " dInDate > `"+giveStartDate(month,year)+"` dInDate < `"+giveEndDate(month,year)+"` "; } else if(month==0 && year!=0) { fqt+= " dInDate > `"+giveStartDate(1,year)+"` dInDate < `"+giveEndDate(12,year)+"` "; } document.MINISEARCHFORMREFINE.QueryText.value=fqt; //alert(document.MINISEARCHFORMREFINE.QueryText.value); document.MINISEARCHFORMREFINE.submit(); } function giveStartDate(Month,Year) { if(Month==1) result="31/12/"+(parseInt(Year)-1)+" 23:59"; if(Month==2) result="31/1/"+Year+" 23:59"; if(Month==3) result="28/2/"+Year+" 23:59"; if(Month==4) result="31/3/"+Year+" 23:59"; if(Month==5) result="30/4/"+Year+" 23:59"; if(Month==6) result="31/5/"+Year+" 23:59"; if(Month==7) result="30/6/"+Year+" 23:59"; if(Month==8) result="31/7/"+Year+" 23:59"; if(Month==9) result="31/8/"+Year+" 23:59"; if(Month==10) result="30/9/"+Year+" 23:59"; if(Month==11) result="31/10/"+Year+" 23:59"; if(Month==12) result="30/11/"+Year+" 23:59"; return result; } function giveEndDate(Month,Year) { if(Month==1) result="31/1/"+Year+" 0:00"; if(Month==2) result="28/2/"+Year+" 0:00"; if(Month==3) result="31/3/"+Year+" 0:00"; if(Month==4) result="30/4/"+Year+" 0:00"; if(Month==5) result="31/5/"+Year+" 0:00"; if(Month==6) result="30/6/"+Year+" 0:00"; if(Month==7) result="31/7/"+Year+" 0:00"; if(Month==8) result="31/8/"+Year+" 0:00"; if(Month==9) result="30/9/"+Year+" 0:00"; if(Month==10) result="31/10/"+Year+" 0:00"; if(Month==11) result="30/11/"+Year+" 0:00"; if(Month==12) result="1/1/"+(parseInt(Year)+1)+" 0:00"; return result; } function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) { if ((appName=="Netscape")&&(parseInt(appVersion)==7)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; } } else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true);