window.onload = function()
{
	initOrderButton();
}

function pop(url, width, height)
{
	window.open(url,'','width='+width+', height='+height+', menubar=no, status=no, location=no, toolbar=no, scrollbars=no, resizable=no', false);
}


function poppage(url, width, height)
{
	window.open(url,'','width='+width+', height='+height+', menubar=no, status=no, location=no, toolbar=no, scrollbars=yes, resizable=yes', false);
}


function initOrderButton()
{
	var loBtn = document.getElementById("cmd_OrderNow");
	if(loBtn != null)
	{
		loBtn.onclick = function()
		{
			this.value= "Order wordt verwerkt...";
			this.onclick = function()
			{
				return false;
			}
		}
	}
}

function fArtTab(oCur)
{
	if(!oCur)
		return;

	var oTable = document.getElementById("tabcontainer");
	
	if(oTable == null)
		return;	

	var oTabs = oTable.getElementsByTagName("div");

	for(var i=0; i<oTabs.length; i++)
	{
		var oT = oTabs[i];
		var oC = document.getElementById(oT.getAttribute("rel"));
		if(oC != null)
		{
			oC.className = oT.id == oCur.id ? 'tabcontent_current' : 'tabcontent';
			oT.className = oT.id == oCur.id ? 'tab_current' : 'tab';
		}
	}

}
