var oActiveTabEl = null;
var oActiveTabLabel = null;
var strActiveTabLabel = null;
function setProductDetailTab(strTab, strTabLabel){
	var oTabEl = document.getElementById(strTab);
	var oTabLabel = document.getElementById(strTabLabel);
	//alert(strTabLabel + " " +oTabLabel);
	if(oTabEl != undefined){
		if(oActiveTabEl != null){
			oActiveTabEl.style.display= "none";
			oActiveTabLabel.setAttribute("id", strActiveTabLabel);

			oTabEl.style.display= "block";
			oTabLabel.setAttribute("id", "active");// = "active";
			
			oActiveTabEl = oTabEl;
			oActiveTabLabel = oTabLabel;
			strActiveTabLabel = strTabLabel;
		}
		else if(oActiveTabEl == null){
			oTabEl.style.display = "block";
			oTabLabel.setAttribute("id", "active");
			
			oActiveTabEl = oTabEl; 
			oActiveTabLabel = oTabLabel;
			strActiveTabLabel = strTabLabel;
		}
	}
	return false;
}

var linkBestellenAangeklikt = false;
function checkBestellenAangeklikt() {
	if (linkBestellenAangeklikt) {
		return false;
	} else {
		linkBestellenAangeklikt = true;
		return true;
	}
}

function bestelProductMetMeebestellen(intProductID, intProductIdVoorMeebestellen) {
	window.open("/popup-meebestel.asp?intProductID=" + intProductID + "&intProductIdVoorMeebestellen=" + intProductIdVoorMeebestellen, "meebestellen", "width=615, height=330, top=280, resizable=1, scrollbars=1, status=1");
	window.location = "/winkelwagen/" + intProductID + "/voegtoe/";
}

/*
* Quirksmode.Org
* http://www.quirksmode.org/js/popup.html
*/
function openPopup(strUrl, intWidth, intHeight, blnCentreren) {
	strProperties = "width="+intWidth+",height="+intHeight;

	if(blnCentreren == true){
		intLeft=(screen.width)?(screen.width-intWidth)/2:100;
		intTop=(screen.height)?(screen.height-intHeight)/2:100;
		strProperties += ", top="+intTop+",left="+intLeft;
	}

	newwindow=window.open(strUrl,'popup',strProperties);
	if (window.focus) {newwindow.focus()}
	return false;
}
/*
* // Quirksmode.Org
*/
