var fn="java_nav.js"
function getcookie(Name) {
   var search = Name + "="
   if (document.cookie.length > 0) { // if there are any cookies
      offset = document.cookie.indexOf(search)
      if (offset != -1) { // if cookie exists
         offset += search.length
         // set index of beginning of value
         end = document.cookie.indexOf(";", offset)
         // set index of end of cookie value
         if (end == -1)
            end = document.cookie.length
         return unescape(document.cookie.substring(offset, end))
      }
   }
//   return ''
}
function show_all_cook() {
	if (document.cookie.length > 0) { // if there are any cookies
		alert(document.cookie)
	} else {
		alert("No cookies.")
	}
}
function setCookie(name, value, expire) {
	document.cookie = name + "=" + escape(value)
		+ ((expire == null) ? "" : ("; expires=" + expire.toGMTString()))
}

function zet_uit(naam){
	var vroeger = new Date()
	var today = new Date()
	vroeger.setTime(today.getTime() - 1000 * 60 )
	setCookie(naam, '', vroeger)
}

function doe_nav(naam, waarde){
	setCookie(naam, waarde.toString( ))
}
function doe_start(){
	setCookie('root', escape(root).toString())
	setCookie('soort', escape(soort).toString())
	setCookie('hoofdcluster', escape(clus).toString())
}
function doe_root(waarde){
	setCookie('root', waarde.toString( ))
}
function doe_soort(waarde){
	setCookie('soort', waarde.toString( ))
}
function doe_clus(waarde){
	setCookie('hoofdcluster', waarde.toString( ))
}
function doe_s_clus(waarde){
	setCookie('subcluster', waarde.toString( ))
}
function openwindow(ita) {
	opts = "width=600,height=400, resizable=yes,directory=0,titlebar=no,scrollbars";
	wpop = window.open(ita , 'itawindow', opts)
	wpop.focus();
}
function test_top(isbn){
	if (parent.name != "alles"){
		this.location = "http://www.iospress.nl/loadtop/load.php?isbn=" + isbn
	}
}

