// JavaScript Document
function openwin(fl)
{
		if (screen.width > 800)
			win=window.open(fl,'nwin','width=640,height=320,screenX=80,left=80,screenY=60,top=60,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
		else
			win=window.open(fl,'nwin','width=640,height=320,screenX=20,left=20,screenY=10,top=10,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
		win.focus();
}

function opentest(fl)
{
		if (screen.width > 800)
			test=window.open(fl,'ntest','width=550,height=400,screenX=130,left=130,screenY=110,top=110,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1')
		else
			test=window.open(fl,'ntest','width=550,height=400,screenX=130,left=130,screenY=110,top=110,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1');
		test.focus();
}

function openmerk(fl)
{
		if (screen.width > 800)
			merk=window.open(fl,'nmerk','width=520,height=200,screenX=180,left=180,screenY=80,top=80,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0')
		else
			merk=window.open(fl,'nmerj','width=520,height=200,screenX=180,left=180,screenY=80,top=80,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
		merk.focus();
}

function openurl(url,icode,srt)
{     //-------------toevoegen
		  var myString = new String(url);
		  var url0 = myString.replace(/\?/g,"$");
		  var url_0 = myString.replace(/\&/g,">");
		 //------------- einde toevoegen


	   // oorspronkelijk: site="link.asp?url="+url+"&icode="+icode+"&srt="+srt
 		// vervangen door: site="link.asp?url="+url_0+"&icode="+icode+"&srt="+srt

	  site="link.asp?url="+url_0+"&icode="+icode+"&srt="+srt

		if (screen.width > 800)
			wu=window.open(site,'nurl','width=640,height=480,screenX=200,left=200,screenY=220,top=220,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1')
		else
			wu=window.open(site,'nurl','width=640,height=300,screenX=300,left=20,screenY=170,top=170,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
		wu.focus();
}

function inlink (opt)
{
		fl=opt+".htm";
		parent.sact=opt;
		parent.menu.location="sub.htm";
		window.location=fl;
}

function openext(url)
{   
		site=url;
		if (screen.width > 800)
			ext=window.open(site,'ext','width=640,height=480,screenX=200,left=200,screenY=220,top=220,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1')
		else
			ext=window.open(site,'ext','width=640,height=300,screenX=300,left=20,screenY=170,top=170,toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1');
		ext.focus();
}
