	var ns4 = (document.layers) ? true : false;
	var ie4 = (document.all) ? true : false;
	var ie5 = (document.getElementById)? true:false
	var ns6 = (document.getElementById && !document.all)?true:false;

	function shopAddProdukt(id,antal){
		x = screen.width/2-350/2; 
		y = screen.height/2-150/2; 
		urlstring = 'shopAddBestilling.asp?id='+id+'&antal='+antal
		var nyt = window.open(urlstring,"","width=350,height=150,top="+ y +",left="+ x +",directories=no,status=no,menubar=no,scrollbars=no,resizable=no") 
	
		document.getElementById('kurv').innerHTML = "<a href=javascript:shopBestilling();><img src=billeder/indkoebskurvOn.gif width=90 height=17 border=0/></a>"
		<!--visTilKassen("kurv","visible");-->
	}
	
	function shopAddProdukt2011(id,antal){
		x = screen.width/2-350/2; 
		y = screen.height/2-150/2; 
		urlstring = 'shopAddBestilling.asp?id='+id+'&antal='+antal
		var nyt = window.open(urlstring,"","width=350,height=150,top="+ y +",left="+ x +",directories=no,status=no,menubar=no,scrollbars=no,resizable=no") 
	
		document.getElementById('kurv').innerHTML = "<a href=javascript:shopBestillingTrin1();><img src=billeder/indkoebskurvOn.gif width=90 height=17 border=0/></a>"
	}

	function shopBestilling(){
		x = screen.width/2-700/2; 
		y = screen.height/2-500/2; 
//		urlstring = 'shopBestilling.asp'
		urlstring = 'shopBestillingTrin1.asp'
		var nyt = window.open(urlstring,"","width=700,height=500,top="+ y +",left="+ x +",directories=no,status=no,menubar=no,scrollbars=yes,resizable=no") 
	}
	
	function shopBestillingTrin1(){
		x = screen.width/2-700/2; 
		y = screen.height/2-500/2; 
		urlstring = 'shopBestillingTrin1.asp'
		var nyt = window.open(urlstring,"","width=700,height=500,top="+ y +",left="+ x +",directories=no,status=no,menubar=no,scrollbars=yes,resizable=no") 
	}
	
	function visTilKassen(boks, tilstand){
		var obj = (ns4)? document.layers[boks] : ( (ie4)? document.all[boks] : document.getElementById(boks) );			
		var styleObj = (ns4)? obj : obj.style;			
		
		if (ie4) {
			styleObj.visibility = tilstand
		} else {
			styleObj.visibility = tilstand

		};
		ua=navigator.userAgent;	
		if(ua.indexOf("Safari/")>-1){
			styleObj.visibility = tilstand
		}
	}
