//<![CDATA[
	<!--
	function LinkNew(url) {
		window.open(url);
		}
	function OpenPDF(url) {
		window.open(url);
		}
	function LinkTop(url) {
		window.location = url;
		}
	function LinkHeader() {
		window.location = 'http://www.deuronderdelen.nl/webshop/desktop/nl/home/';
		}
	function OverButton(color,id) {
		var color = color;
		var id = id;
		elem = document.getElementById(id);
		elem.style.color = 'rgb('+color+')';
		}
	function OutButton(color,id) {
		var color = color;
		var id = id;
		elem = document.getElementById(id);
		elem.style.color = 'rgb('+color+')';
		}
	function urlgo(formid,selectid) {
		getoption = document.getElementById(selectid).selectedIndex;
		var url = document.getElementById(selectid).options[getoption].value;
		window.location.href = url;
		}
	function PrintWindow(url) {
		var url = url;
		printwindow = window.open (url,'printwindow','location=1,status=1,scrollbars=1,width=760,height=700');
		printwindow.moveTo(0,0);
		}
	function BottOver(id) {
		var id = id;
		elem = document.getElementById(id);
		elem.style.height="150px";
		}
	function BottOut(id) {
		var id = id;
		elem = document.getElementById(id);
		elem.style.height="30px";
		}
	function AddCart(fid) {
		var fid = fid;
		var thisshopid = "select_shopid_"+fid+"";
		thisshopid = document.getElementById(thisshopid).value;
		if (thisshopid == "") {alert('maak een keus');}
		if (thisshopid != "") {
			url = "?add=true&shopid="+thisshopid+"";
			window.location.href = url;
			}
		}
	function ImgChgOver(imgsrc,imgid) {
		var imgsrc = imgsrc;
		var imgid = imgid;
		elem = document.getElementById(imgid);
		elem.src = imgsrc;
		}
	
	function ImgChgOut(imgsrc,imgid) {
		var imgsrc = imgsrc;
		var imgid = imgid;
		elem = document.getElementById(imgid);
		elem.src = imgsrc;
		}
	var xmlhttp
	function GetXmlHttpObject() {
		if (window.XMLHttpRequest) {
			return new XMLHttpRequest();
			}
		if (window.ActiveXObject) {
			return new ActiveXObject("Microsoft.XMLHTTP");
			}
		return null;
		}
	function writeHTML(req, xtarget) {
		var target;	
		document.getElementById(xtarget).innerHTML=req.responseText;
		}
	function ChangePrice(doFunc,xtarget,selectid,optionid,xdepth,xtemp) {
		var selectid;
		var optionid;
		getoption = document.getElementById(selectid).selectedIndex;
		var xshopid = document.getElementById(selectid).options[getoption].value;
		var xtarget;
		var xshopid;
		var xdepth;
		var xtemp;
		if (xshopid != '') {
			var jdepth = '../';
			getdepth = '';
			for (i = 0; i < xdepth; i++) {
				getdepth = getdepth+jdepth;
				//alert(i);
				}
			var url = ""+getdepth+"../../../template/02/ajax_group_price.php?xajax=true&xshopid="+xshopid+"&xdepth="+xdepth+"&xtemp="+xtemp+"";
			xmlhttp=GetXmlHttpObject();
			xmlhttp.onreadystatechange= function() { 
				if (xmlhttp.readyState==4)
				if (xmlhttp.status==200)
				doFunc(xmlhttp, xtarget);
				}
			xmlhttp.open("GET",url,true);
			xmlhttp.send(null);
			}
		}
	function ChangePagePrice(doFunc,xtarget,selectid,optionid,xdepth,xtemp) {
		var selectid;
		var optionid;
		getoption = document.getElementById(selectid).selectedIndex;
		var xshopid = document.getElementById(selectid).options[getoption].value;
		var xtarget;
		var xshopid;
		var xdepth;
		var xtemp;
		if (xshopid != '') {
			var jdepth = '../';
			getdepth = '';
			for (i = 0; i < xdepth; i++) {
				getdepth = getdepth+jdepth;
				//alert(i);
				}
			var url = ""+getdepth+"../../../template/02/ajax_page_price.php?xajax=true&xshopid="+xshopid+"&xdepth="+xdepth+"&xtemp="+xtemp+"";
			xmlhttp=GetXmlHttpObject();
			xmlhttp.onreadystatechange= function() { 
				if (xmlhttp.readyState==4)
				if (xmlhttp.status==200)
				doFunc(xmlhttp, xtarget);
				}
			xmlhttp.open("GET",url,true);
			xmlhttp.send(null);
			}
		}
	function externalLinks() {
		if (!document.getElementsByTagName) return;
			var anchors = document.getElementsByTagName("a");
			for (var i=0; i<anchors.length; i++) {
				var anchor = anchors[i];
				if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
					anchor.target = "_blank";
					}
				}
		window.onload = externalLinks;
	// -->
//]]>
