document.domain = "drimensa.nl";
function getCookie(c_name)
{
	var i,x,y,ARRcookies=document.cookie.split(";");

	for (i=0;i<ARRcookies.length;i++)
	{
		x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
		y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
		x=x.replace(/^\s+|\s+$/g,"");
		if (x==c_name)
		{
			return unescape(y);
		}
	}
}



function closeOverlay() { document.getElementById("divShowColor").innerHTML=""; } 
function showColor(id) { var frame = document.getElementById("frameColorSelector").contentWindow.showColor(id);}
function doOrderMonster() { 

	var frame = document.getElementById("frameColorSelector").contentWindow.doOrderMonster();
	try{
		updateMonsterBasket();
	} catch (e){
		alert(e);
	}
}

function initOutOfFrame(resultsOutOfFrame)
{
    
    document.write('<DIV id=divShowColor style="position:absolute;left:0;top:0;"></DIV>');
    if(resultsOutOfFrame) document.write("<TABLE id=tblResults cellSpacing=0 cellPadding=0 class='clsResults'><TBODY ><TR><TD></TD></TR></TBODY></TABLE>");
    try
    {
        updateMonsterBasket();
    } catch(e) { } 
}
