


//auto link dropdown
function autolink()
{
	var number = document.categorie.categorie_volgnr.selectedIndex;
	location.href = document.categorie.categorie_volgnr.options[number].value;
}

//Funtie Layers
function showHide(src) {

  for (i=0;i<document.all.length;i++) {
   obj = document.all[i];
    if (obj.className == 'hideitem') {
      obj.className = 'showitem';
    }
    else {
      obj.className = 'hideitem';
    }
  }
}

function smileygastenboek(iconCode) {	
	gegevens.gastenboek_bericht.value += iconCode + " ";
}

//functie checkformulier - GASTENBOEK
function checkformgastenboek(gegevens)
{
	if(""==document.forms.gegevens.gastenboek_naam.value)
	{
		bericht1.innerHTML = "<font color='red'><b>Naam</b> :</font>";
		document.forms.gegevens.gastenboek_naam.focus();
		return false;
	}
	bericht1.innerHTML = "Naam :";
	if(""==document.forms.gegevens.gastenboek_bericht.value)
	{
		bericht2.innerHTML = "<font color='red'><b>Bericht</b> :</font>";
		document.forms.gegevens.gastenboek_bericht.focus();
		return false;
	}
	bericht2.innerHTML = "Bericht :";

	if(""==document.forms.gegevens.gastenboek_bericht.value)
	{
		atPos = document.forms.gegevens.gastenboek_email.value.indexOf("@",0);
		if (atPos == -1) 
		{	
			bericht3.innerHTML = "<font color='red'>E-mailadres (@):</font>";
			document.forms.gegevens.gastenboek_email.focus();
			return false;
		}
	}
	bericht3.innerHTML = "E-mailadres:";
	document.gegevens.submit()
}

//Funtie Layers
function showHide(src) {

for (i=0;i<document.all.length;i++) 
{
	obj = document.all[i];
	if (obj.className == 'hideitem') {
		obj.className = 'showitem';
    	} else {
      		obj.className = 'hideitem';
    		}
  	}
}

//smiles
function smileytoevoegen(iconCode) {	
	reactie.reactie_reactie.value += iconCode + " ";
}
//smiles
function smileytoevoegen(iconCode) {	
	gegevens.gastenboek_bericht.value += iconCode + " ";
}

/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
	Written by Bugimus 
	Copyright © 1998-2001 Bugimus, all rights reserved.
	You may use this code for non-commercial use provided you leave this comment block intact
	or credit me in your code.  
	A link back to Bugimus' page would be much appreciated but not required.  
	http://bugimus.com/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- */

function showPic( imgName, imgCaption, imgWidth, imgHeight, textColor, bgColor ) {
	if(imgWidth<=100)imgWidth=100
	if(imgHeight<=100)imgHeight=100
	winHeight=imgHeight+20;
	w = window.open('','Demo','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+10,document.images[0].height+31+20)\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+20)\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=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=0 border=0><tr><td colspan=3><img src='"+imgName+"' border=0 alt='"+imgCaption+"'></td></tr>" );
	w.document.write( "<tr><td align='left' bgcolor='#F68C03'>&nbsp;&nbsp;<a>&copy; <a href='http://www.marcooow.nl/' target='_blank'>www.marcooow.nl</a></td>" );
	w.document.write( "<td align='right'><a href='javascript:top.window.close();'>sluit scherm</a>&nbsp;&nbsp;</td></tr>" );
	w.document.write( "</table></body></html>" );
	w.document.close();
}

//functie checkformulier - reactie
function formulier(reactie)
{
	if(""==document.forms.reactie.reactie_naam.value)
	{
		bericht1.innerHTML = "vul een naam in...";
		document.forms.reactie.reactie_naam.focus();
		return false;
	}
	bericht1.innerHTML = "naam:";
	if(""==document.forms.reactie.reactie_reactie.value)
	{
		bericht2.innerHTML = "vul een reactie in...";
		document.forms.reactie.reactie_reactie.focus();
		return false;
	}
	bericht2.innerHTML = "";
	document.reactie.submit()
}

