<!--
	var isNav4, isIE4;
	if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
	isNav4 = (navigator.appName == "Netscape") ? 1 : 0;
	isIE4 = (navigator.appName.indexOf("Microsoft") != -1) ? 1 : 0;
	}
	
	function checkdelete(theURL) {
		final_url = theURL;
		if (confirm('Weet je zeker dat je dit wilt verwijderen?\nDit kan niet hersteld worden!'))
		{
			document.location.href=final_url;
		} else {
			alert('Ok, niet verwijdert!');
		}
	}
	
	function uitklappen(id) {
		var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all) {
			itm = document.all[id];
		} else if (document.layers) {
			itm = document.layers[id];
		}
		if (!itm) {
			// do nothing
		} else if (itm.style) {
			if (itm.style.display == "none") { 
				itm.style.display = ""; 
			} else {
				//itm.style.display = "none"; 
			}
		} else { itm.visibility = "show"; }
	}
	function inklappen(id) {
		var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all) {
			itm = document.all[id];
		} else if (document.layers) {
			itm = document.layers[id];
		}
		if (!itm) {
			// do nothing
		} else if (itm.style) {
			if (itm.style.display == "none") { 
				//itm.style.display = ""; 
			} else {
				itm.style.display = "none"; 
			}
		} else { 
			//itm.visibility = "show"; 
		}
	}
	function check_payment_method(check_value) {
		if (document.payment.payment_method.length) {
			for (var i=0; i<document.payment.payment_method.length; i++)  {
				if (document.payment.payment_method[i].value == check_value)  {
					document.payment.payment_method[i].checked = true;
				} else {
					document.payment.payment_method[i].checked = false;
				} 
			}
		} else {
			if (document.payment.payment_method.value == check_value)  {
				document.payment.payment_method.checked = true;
			} else {
				document.payment.payment_method.checked = false;
			} 
		}
	}
	function check_shipping_method(check_value) {
		for (var i=0; i<document.shipping.shipping_method_id.length; i++)  {
				if (document.shipping.shipping_method_id[i].value == check_value)  {
					document.shipping.shipping_method_id[i].checked = true;
			} else {
				document.shipping.shipping_method_id[i].checked = false;
				} 
		}
	}
	function check_address_id(check_value) {
		for (var i=0; i<document.address.address_id.length; i++)  {
				if (document.address.address_id[i].value == check_value)  {
					document.address.address_id[i].checked = true;
			} else {
				document.address.address_id[i].checked = false;
				} 
		}
	}
	function PopWindow(mypage,myname,w,h,scroll){
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
		settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
	
		window.open(mypage,myname,settings);
	}
	
	function PopImage(image_file) {
		PopWindow('/shop/image_window.asp?image_file=' + image_file,'Image',500,500,'no')
	}

	// THUMBNAIL VIEWER EXTRA IMAGES
	function returnimgcode(theimg){
		var imghtml=""
		if (theimg[1]!="")
			imghtml='<a href="'+theimg[1]+'">'
			imghtml+='<img src="'+theimg[0]+'" border="'+imgborderwidth+'">'
			if (theimg[1]!="")
				imghtml+='</a>'
		return imghtml
	}

	function modifyimage(loadarea, imgindex){
		if (document.getElementById){
			var imgobj=document.getElementById(loadarea)
	//		alert((imgobj.innerHTML != returnimgcode(dynimages[imgindex])));
			if (imgobj.innerHTML != returnimgcode(dynimages[imgindex])) {
				if (imgobj.filters && window.createPopup){
					imgobj.style.filter=filterstring
					imgobj.filters[0].Apply()
				}
				imgobj.innerHTML=returnimgcode(dynimages[imgindex])
				if (imgobj.filters && window.createPopup)
					imgobj.filters[0].Play()
				return false
			}
		}
	}

	function replace(string,text,by) {
	// Replaces text with by in string
			var strLength = string.length, txtLength = text.length;
			if ((strLength == 0) || (txtLength == 0)) return string;
	
			var i = string.indexOf(text);
			if ((!i) && (text != string.substring(0,txtLength))) return string;
			if (i == -1) return string;
	
			var newstr = string.substring(0,i) + by;
	
			if (i+txtLength < strLength)
					newstr += replace(string.substring(i+txtLength,strLength),text,by);
	
			return newstr;
	}

	function check_suggestion(product_id) {
	// zorgt ervoor dat de checkbox bij de suggestie aangeklikt kan worden
	// needs javascript function on the product page
			var is_checked = input_checked('variant_id_' + product_id);
			if (is_checked) { 
				is_checked = submit_check(product_id);
				document.getElementById('variant_id_' + product_id).checked = is_checked;
			}
			if (is_checked) { 
				document.getElementById('product_' + product_id + '_is_clicked').value='yes';
			} else {
				document.getElementById('product_' + product_id + '_is_clicked').value='no';
			}
	}


	var open_itm;
	function expMenu(id, parent_id) {
		if ((open_itm != parent_id) || (parent_id == id)) {
			inklappen(open_itm);
		}
		do_expMenu(id);
		open_itm = parent_id;
	}

	function do_expMenu(id) {
	
		var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(id);
		} else if (document.all) {
			itm = document.all[id];
		} else if (document.layers) {
			itm = document.layers[id];
		}
		if (!itm) {
			// do nothing
		} else if (itm.style) {
			if (itm.style.display == "none") { itm.style.display = ""; }
			else { itm.style.display = "none"; }
		} else { itm.visibility = "show"; }
	}

	function be(skin, idname, imgsrc, type) {
		imgsrc = replace(imgsrc, '.gif', '');
		var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(idname);
		} else if (document.all) {
			itm = document.all[idname];
		} else if (document.layers) {
			itm = document.layers[idname];
		}
		if (type == 'over') {
			itm.src='../skin/' + skin + '/img/' + language + '/' + imgsrc + '-h.gif';
		} else if (type == 'up') {
			itm.src='../skin/' + skin + '/img/' + language + '/' + imgsrc + '-h.gif';
		} else if (type == 'down') {
			itm.src='../skin/' + skin + '/img/' + language + '/' + imgsrc + '-down.gif';
		} else {
			itm.src='../skin/' + skin + '/img/' + language + '/' + imgsrc + '.gif';
		}
	}
	
	function input_checked(idname) {
		var itm = null;
		if (document.getElementById) {
			itm = document.getElementById(idname);
		} else if (document.all) {
			itm = document.all[idname];
		} else if (document.layers) {
			itm = document.layers[idname];
		}
		if (itm.checked == true) {
			itm.checked = false;
			return false;
		} else if (itm.checked == false) {
			itm.checked = true;
			return true
		}
	}
	
	function click(e){
			if (document.all) if (event.button == 2) return false;
			if (document.layers) if (e.which == 3) return false;
	}
	function click2(){
			event.returnValue=false;return false;
	}
	
	function disable_all(frm) {
		for (var i=0; i<frm.elements.length; i++) {
			frm.elements[i].disabled = true;
		}
	}

	var copytoclip=1;
	function HighlightAll(theField) {
		var tempval=eval('document.'+theField);
		tempval.focus();
		tempval.select();
		if (document.all&&copytoclip==1){
			therange=tempval.createTextRange();
			therange.execCommand('Copy');
			alert('Contents highlighted and copied to clipboard!');
			window.status='Contents highlighted and copied to clipboard!';
			setTimeout("window.status=''",1800)
		}
	}
//-->
