var extern	=	new Array();

function doArt(num, fc)
{
        fc      =       parseInt(fc);
        if (isNaN(fc))  {       fc = 0; }
	var sUrl	=	"/index.php?art="+num;
	if (fc > 0) { sUrl = sUrl+"&fc="+fc; }
	window.location	=	sUrl
}
function isExtern(appNum)
{
	for (var e=0; e < extern.length; e++)
	{
		if (extern[e] == appNum) { return true; }
	}
	return false;
}
function doApp(num, fc)
{

        fc      =       parseInt(fc);
        if (isNaN(fc))  {       fc = 0; }
	if (isExtern(num))		{	window.open("/cmsclient/application.php?a="+num, "", "fullscreen=no,toolbar=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=700,height=500,left=20,top=20");	}
	else
	{
		var sUrl	=	"/index.php?app="+num;
		if (fc > 0) { sUrl = sUrl+"&fc="+fc; }
		window.location	=	sUrl;
	}
}

function doSetFrameHeight(iHeight, sInit)
{
	document.getElementById("frameApplication").style.height	=	""+iHeight+"px";
	if (sInit == "y")	{	self.scrollTo(0,0);	}
}

function doSetFormHeight(iHeight, sInit)
{
        if (iHeight > 0)
        {
                //window.top.doSetFrameHeight(iHeight, sInit);
        }
}


function GsTrack(parms)
{
        parms+= '&w='+window.screen.width+'&h='+window.screen.height+'&dmn='+location.hostname;
        if (document.referrer) { parms += '&ref='+escape(document.referrer); }
        if (window.screen)
        {
                document.write("<script language='javascript' src='http://track.geldshop.nl/html/modules/tracking/trckr.js.php"+parms+"'><\/script>");
        }
}

function doExternal(sUrl)
{
	window.open(sUrl, '_blank');
}
