function printNumPages() {var f = this.document.forms[0];var hid = new Number(f.antall.value);var numpages = parseInt(hid/30);var leftover = hid % 30;var counter =1;var prodstart =1;var prodend=30;var URL = document.URL;var startinx = URL.lastIndexOf("start=")+6;var stopinx = URL.lastIndexOf("&count");var startpage = new Number(URL.substring(startinx, stopinx));var startURL = URL.substring(0, URL.indexOf('/docs/')+12);	if (leftover >0) numpages++ ;		document.write( hid.toString() + " varer (" + numpages.toString() + " sider)" );	if (stopinx==-1) {			document.write(' <img src="/supershop.nsf/arrowLN.gif" align=middle> ');	} 	else if (startpage==1) { 			document.write(' <img src="/supershop.nsf/arrowLN.gif" align=middle> '); 	}	else  if (numpages>1){ 			var prevprodstart = startpage - prodend;			var prestring = ' <a href="'+startURL +'?opendocument&start=' + prevprodstart.toString() + '&count=' + prodend.toString() + '&AutoFramed">';			prestring = prestring + '<img src="/supershop.nsf/arrowLB.gif" align=middle border=0></a> ';				document.write(prestring);	}	while (counter <= numpages) {		if(startpage==prodstart || (prodstart==1 && stopinx==-1)) {		 document.write(' ' + counter + ' ' );		}		else {			document.write(' <a href="'+startURL +'?opendocument&start=' + prodstart.toString() + '&count=' + prodend.toString() + '&AutoFramed">' + counter + '</a> ')		}		prodstart =prodstart+30;		counter++;	} 	if (numpages<1) {			document.write(' <img src="/supershop.nsf/arrowRN.gif" align=middle> ');	}	else { 			if(stopinx==-1) {				var nextprodstart = 1 + prodend;			}			else {					var nextprodstart = startpage + prodend;			}			if (nextprodstart > hid) {				document.write(' <img src="/supershop.nsf/arrowRN.gif" align=middle> ');						}			else {				var poststring = ' <a href="'+startURL +'?opendocument&start=' + nextprodstart.toString() + '&count=' + prodend.toString() + '&AutoFramed">';				poststring = poststring + '<img src="/supershop.nsf/arrowRB.gif" align=middle border=0></a> ';				document.write(poststring);			}	}	 } function browserCheck(browser, result){	var detect = navigator.userAgent.toLowerCase();	var place = detect.indexOf(browser) + 1;	if(place==false) return "";	else if (result==1) {		document.write("<div style='margin-top:-16'>");	}	else if (result==2) {		document.write("</div>");	}}function toggleBox(id) {	if(!document.getElementById) return;	var box= document.getElementById(id);	if(box.className=='box_hidden') {		box.className='box_visible';	}	else if(box.className=='box_visible') {		box.className = 'box_hidden';	}}function toggleBox2(id) {	if(!document.getElementById) return;	var box= document.getElementById(id);	if(box.className=='box2_hidden') {		box.className='box2_visible';	}	else if(box.className=='box2_visible') {		box.className = 'box2_hidden';	}}function toggleBox2On(id) {	if(!document.getElementById) return;	var box= document.getElementById(id);	box.className='box2_visible';}function toggleBox2Off(id) {	if(!document.getElementById) return;	var box= document.getElementById(id);	box.className = 'box2_hidden';}function toggleBoxStart2(id) {		if(!document.getElementById) return;	var box= document.getElementById(id);	alert(box);		box.className='contentsheadermainactive';	box= document.getElementById('hbox3');	alert(box);	box.className='contentsheaderbox';}function toggleBoxStart(id, id2,id3,id4,id5) {	if(!document.getElementById) return;		var box= document.getElementById(id);		box.className='contentsheaderbox';		box = document.getElementById('hbox' + id.substring(4,5));		box.className='contentsheadermainactive';		box= document.getElementById(id2);		box.className='contentsheaderbox_hidden';		box = document.getElementById('hbox' + id2.substring(4,5));		box.className='contentsheadermain'; 		box= document.getElementById(id3);		box.className='contentsheaderbox_hidden';		box = document.getElementById('hbox' + id3.substring(4,5));		box.className='contentsheadermain'; 		box= document.getElementById(id4);		box.className='contentsheaderbox_hidden';		box = document.getElementById('hbox' + id4.substring(4,5));		box.className='contentsheadermain';		box= document.getElementById(id5);		box.className='contentsheaderbox_hidden';				box = document.getElementById('hbox' + id5.substring(4,5));		box.className='contentsheadermain';}function submitform(query){	if (validate_required(query,"For \u00E5 s\u00F8ke m\u00E5 du f\u00F8rst fylle ut en s\u00F8keteks!")==false)	{		query.focus();		return false;	}	else {		window.location.href="http://" + location.hostname + "/weblogin.nsf/frmSearch?CreateDocument&query=" + query.value;	}}function validate_required(field,alerttxt) {	with (field) 	{  		if (value==null||value=="") {  			alert(alerttxt);			return false;  		}  		else  		{  		return true;  		}	}} function validateSearch(query){    if (submitform(query)) {       return true;	}	else {	    return false;	}}function HideFrame(id){		var fr = document.getElementById (id);		fr.style.display="none";	}function writeEmail(strRec) { 	  var dom="super-nature";        var em = strRec + "@" + dom + ".no";         document.write('<a href="mailto:' + em + '">' + em + '</a>'); }function fbs_click() {	u=location.href;	u = u.replace("%23","");	t=document.title;	window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');	return false;}