window.onload = function()
{
	initOrderButton();
	fDescweb();
}


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 fDescweb()
{
	var o = document.getElementById('descweb');
	if(!o)
		return;

	var h = o.clientHeight > 0 ? o.clientHeight : o.offsetHeight;

	if(h > 700)
	{
		var oMore = document.getElementById('artdescmore');
		if(!oMore)
			return;

		o.className = "artdesclimit";
		oMore.style.display = 'block';
	}
}

function fDescwebShowHide(tiMode)
{
	var o = document.getElementById('descweb');
	var oMore = document.getElementById('artdescmore');
	var oLess = document.getElementById('artdescless');
	if(!o || !oMore || !oLess)
		return;

	if(tiMode)
	{
		o.className = "artdesclimit";
		oMore.style.display =  'block';
		oLess.style.display = 'none';
	}
	else
	{
		o.className = "artdesc";
		oMore.style.display = 'none';
		oLess.style.display =  'block';
	}
}