function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight+100;
	winWidth=imgWidth+20;
	w = window.open('','test','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width='+imgWidth+',height='+winHeight);
	w.document.write( "<html><head><title>"+imgCaption+"</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
	w.document.write( "A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Hover { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "IMG {border-color : "+textColor+";}" );
	w.document.write( "BODY { font-family: verdana; font-size : 10px; font-weight: normal; color : "+textColor+"; background-color : "+bgColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true\n");
	w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "	if(IE5) self.resizeTo(document.images[0].width+25,document.images[0].height+100)\n");
	w.document.write( "	else if(NN6) self.sizeToContent()\n");
	w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+100)\n");
	w.document.write( "	self.focus()\n");
	w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=3 marginwidth=0 marginheight=0 bgcolor=#999999 onLoad=" );
	w.document.write( "'javascript:autoSize();'> " );
	w.document.write( "<center><table cellpadding=0 cellspacing=0 border=0><tr><td><a href='#' onClick='window.close();'><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></a></td></tr></table>" );
	w.document.write( "</center></body></html>" );
	w.document.close();
}

function changeRadio(or,self,val){
	if (self.checked){
		if (val>=0){
			or[val].checked = true;
		}
	} else {
		unCheckRadio(or);
	}
}

function changeCheckbox(or,self){
	if (self.checked){
		
		or.checked = true;
	}
}

function unCheckRadio(or) {
	for (var i = 0; i < or.length; i++) {
         or[i].checked = false;
     }
}



function nieuwsbrief ( form ){
	//nieuwsbrief fomulier
		
	if(form.email.value.indexOf("@") != "-1" && form.email.value.indexOf(".") != "-1") { 
	} else { 
		alert("U dient een geldig email adres op te geven."); 
		return false; 
	} 

	if(form.naam.value=='' || form.naam.value=='Vul uw naam in' || form.email.value==''){
		alert('Niet alle verplichten velden zijn juist ingevuld.');
		return false;
	}

	return true ;
}

function guestbook(form){
	//nieuwsbrief fomulier
	
	if(form.gburl.value!=""){
		if (form.gburl.value == "" || form.gburl.value.indexOf("http://",0) == -1) {
			alert("De url dient \"http://\" of \"https://\" te bevatten"); 
			return (false);
		} else{
			return (true);
		}
	}
		
	if(form.gbemailaddress.value!=""){
		if(form.gbemailaddress.value.indexOf("@") != "-1" && form.gbemailaddress.value.indexOf(".") != "-1") { 
		} else { 
			alert("Indien u een e-mail adres opgeeft dient deze wel juist te zijn."); 
			return false; 
		} 	
	}
		
	if(form.gbname.value==''){
		alert('U dient een naam op te geven.');
		return false;
	}
	
	if(form.gbpost.value==''){
		alert('U dient een bericht op te geven.');
		return false;
	}

	return true ;
}