 <!--
var cStr; 
cStr = ReadCookie('queryHistory');

function WriteCookieInfo() {
	if (cStr != null){
		// Begin writing out the table and headers row
		document.write("<table id=\"historyTable\" border=\"0\" cellpadding=\"4\" cellspacing=\"1\" width=\"100%\" >");
		document.write("<tr><th width='60' class='set'>set</th><th width='60' class='hits'>treffers</th><th></th><th class='querystr' align='left'>zoekopdracht</th></tr>");
		// Now we need to look for "||" which separates different queries and split them up
		var cArray = cStr.split("||");
		for (var y=0; y<= cArray.length-1; y++) {
			// set counter for list display purposes: count backwards, so begin with array length.
			var count = cArray.length - y;
			// check odd even row count for background color
			/*
			if (count % 2 == 0) {
				document.write("<tr class='rEven'>");
			} else {
				document.write("<tr class='rOdd'>");		
			}
			*/
			document.write("<tr>");		
			// write out the counter value
			document.write("<td class='hrow bld' align='left'>"+count+"</td>");	
			// Now that we've got an array of the queries from above, lets split them up also
			// by looking for "|" which separates the different query parts
			var qArray = cArray[y].split("|")
			document.write("<td class='hrow bld' align='left'>"+qArray[1]+"</td>");
			document.write("<td width='20'><img src='img/spacer.gif' width='20' height='1' border='0'\/><\/td>");
			document.write("<td class='hrow' align='left'>");
			document.write("<a class='bld' href=\"show.asp?startRecord=1&amp;maximumRecords=10&amp;frmQuery=" + escape(qArray[0]) + "&amp;stylesheet=shortTitlePresentation.xslt&amp;tab=list\">");
			document.write (unescape(ConvertPica(qArray[0]))+"</td>");				
			document.write("</tr>");
		}
		document.write("</table>");	
		document.write("<br /><a href='javascript:DeleteCookie(\"queryHistory\");document.location.reload()'>geschiedenis wissen</a>");
	}
	else{
		// a cookie with the requested name does not exist
		document.write ("<span style=\"font-style:italic\">zoek geschiedenis is leeg</span>");
	}	
}

function ConvertPica(strInput){
  strInput=strInput.replace(/\|/g," "); 
  strInput=strInput.replace(/%3d/g," ");
  strInput=strInput.replace(/%3D/g," "); 
  strInput=strInput.replace(/\+and\+/g," en ");
  strInput=strInput.replace(/\+or\+/g," of ");
  strInput=strInput.replace(/\+not\+/g," en niet ");
  strInput=strInput.replace(/pica.all/g,"alle woorden"); 
  strInput=strInput.replace(/pica.aut/g,"auteur");	
  strInput=strInput.replace(/pica.ttl/g,"woord\(en\) uit de titel");
  strInput=strInput.replace(/pica.trf/g,"trefwoord");
  strInput=strInput.replace(/pica.gtr/g,"trefwoord");
  strInput=strInput.replace(/pica.bcl/g,"basisclassificatie");	
  strInput=strInput.replace(/pica.peg/g,"periode");	
  strInput=strInput.replace(/pica.isb/g,"ISBN nummer");
  strInput=strInput.replace(/pica.isn/g,"ISSN nummer");	
  strInput=strInput.replace(/pica.taa/g,"taal van publicatie"); 
  strInput=strInput.replace(/pica.pao/g,"persoon als onderwerp"); 
  strInput=strInput.replace(/\"and\"/g," ");
  return(strInput);
}

//-->
