var newwindow;


function PopupPic(sPicURL) 
{ 
	window.open("../Bestanden/popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");
}



function getimagepopup(url)
{
	newwindow=window.open(url,'name','height=600,width=600,scrollbars=no,resizable=1');
	if (window.focus) {newwindow.focus()}
}


function getpopup(url)
{
	newwindow=window.open(url,'name','height=400,width=500,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}


function getlargepopup(url)
{
	newwindow=window.open(url,'name','height=650,width=770,scrollbars=yes');
	if (window.focus) {newwindow.focus()}
}



function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit) // if too long...trim it!
field.value = field.value.substring(0, maxlimit);
// otherwise, update 'characters left' counter
else 
countfield.value = maxlimit - field.value.length;
}


function log(naam)
{
var tag='http://www.soapservices.nl/cgi/Reqlog.dll?site=GUE';
var agt=navigator.userAgent.toLowerCase();
var win=((agt.indexOf('win')!=-1)||(agt.indexOf('16bit')!=-1));
if(win) {
  tag+=('&referrer='+escape(top.document.referrer));
}
document.write('<img src='+tag+'&pagina='+naam+' width=1 height=1 align=right>');
}


function logMetZoek(naam)
{
var tag='http://www.soapservices.nl/cgi/Reqlog.dll?site=GUE';
var agt=navigator.userAgent.toLowerCase();
var win=((agt.indexOf('win')!=-1)||(agt.indexOf('16bit')!=-1));
var SearchStr=top.document.zoekform2.GezochtOp.value;
if(win) {
  tag+=('&referrer='+escape(top.document.referrer));
}
document.write('<img src='+tag+'&pagina='+naam+'&Search='+SearchStr+' width=1 height=1 align=right>');
}
