function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function order_photo_validator(theForm)
{
	var alertsay = ""; // define for long lines
	// alertsay is not necessary for your code,
	// but I need to break my lines in multiple lines
	// so the code won't extend off the edge of the page

	// check to see if there fields are blank
	if (theForm.name.value == "")
	{
		alert("Vul een voor- en achternaam in.");
		theForm.name.focus();
		return (false);
	}
	
	if (theForm.street.value == "")
	{
		alert("Vul een straat en nummer in.");
		theForm.street.focus();
		return (false);
	}

	if (theForm.fromcode.value == "")
	{
		alert("Vul een postcode in.");
		theForm.fromcode.focus();
		return (false);
	}

	if (theForm.state.value == "")
	{
		alert("Vul een gemeente in.");
		theForm.state.focus();
		return (false);
	}

	if (theForm.email.value == "")
	{
		alert("Vul een email adres in.");
		theForm.email.focus();
		return (false);
	}

	// test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = theForm.email.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
	  		if (EmailAt && EmailPeriod)
				break;
	  		if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true
			break;
		}
	}
	
	if (!EmailValid)
	{
		alert("Vul een geldig \"emailadres\" in.");
		theForm.email.focus();
		return (false);
	}

	if (theForm.telnumber.value == "")
	{
		alert("Vul een telefoonnummer in.");
		theForm.telnumber.focus();
		return (false);
	}

	// require at least one radio button be selected
	var radioSelected = false;
	for (i = 0;  i < theForm.format.length;  i++)
	{
		if (theForm.format[i].checked)
			radioSelected = true;
	}
	
	if (!radioSelected)
	{
		alert("Selecteer één \"formaat\".");
		return (false);
	}

	// check if numbers field is blank
	if (theForm.amount.value == "")
	{
		alert("Vul een waarde in in het \"aantal\" veld.");
		theForm.amount.focus();
		return (false);
	}

	// only allow numbers to be entered
	var checkOK = "0123456789";
	var checkStr = theForm.amount.value;
	var allValid = true;
	var allNum = "";
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
				break;
		if (j == checkOK.length)
		{
			allValid = false;
			break;
		}
		if (ch != ",")
			allNum += ch;
	}
	
	if (!allValid)
	{
		alert("Alleen cijfers zijn toegelaten in het \"aantal\" veld.");
		theForm.amount.focus();
		return (false);
	}

	return(true);
}
function sign_guestbook_validator(theForm)
{
	var alertsay = ""; // define for long lines
	// alertsay is not necessary for your code,
	// but I need to break my lines in multiple lines
	// so the code won't extend off the edge of the page

	// check to see if there fields are blank
	if (theForm.signer_name.value == "")
	{
		alert("Vul een voor- en achternaam in.");
		theForm.signer_name.focus();
		return (false);
	}
	
	if (theForm.item_message.value == "")
	{
		alert("Vul een tekst in.");
		theForm.item_message.focus();
		return (false);
	}

    if (theForm.item_message.value.indexOf("href") != -1)
	{
		alert("Gebruik geen linken in je tekst.");
		theForm.item_message.focus();
		return (false);
	}

    if (theForm.item_message.value.indexOf("URL") != -1)
	{
		alert("Gebruik geen linken in je tekst.");
		theForm.item_message.focus();
		return (false);
	}

    if (theForm.item_message.value.indexOf("url") != -1)
	{
		alert("Gebruik geen linken in je tekst.");
		theForm.item_message.focus();
		return (false);
	}

    if (theForm.item_message.value.indexOf("http") != -1)
	{
		alert("Gebruik geen linken in je tekst.");
		theForm.item_message.focus();
		return (false);
	}
	
	if (theForm.item_message.value.indexOf("www") != -1)
	{
		alert("Gebruik geen linken in je tekst.");
		theForm.item_message.focus();
		return (false);
	}

	if (theForm.signer_email.value == "")
	{
		alert("Vul een email adres in.");
		theForm.signer_email.focus();
		return (false);
	}

	if (theForm.homepage_url.value.indexOf("furmiture") != -1)
	{
		alert("Dit is een niet toegestaan web adres.");
		theForm.homepage_url.focus();
		return (false);
	}

	if (theForm.homepage_url.value.indexOf("sengine") != -1)
	{
		alert("Dit is een niet toegestaan web adres.");
		theForm.homepage_url.focus();
		return (false);
	}


	if (theForm.homepage_url.value.indexOf("furniture") != -1)
	{
		alert("Dit is een niet toegestaan web adres.");
		theForm.homepage_url.focus();
		return (false);
	}

	// test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = theForm.signer_email.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
	  		if (EmailAt && EmailPeriod)
				break;
	  		if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true
			break;
		}
	}
	
	if (!EmailValid)
	{
		alert("Vul een geldig \"emailadres\" in.");
		theForm.signer_email.focus();
		return (false);
	}

	return(true);
}

function contest01_validator(theForm)
{
	var alertsay = ""; // define for long lines
	// alertsay is not necessary for your code,
	// but I need to break my lines in multiple lines
	// so the code won't extend off the edge of the page

	// check to see if there fields are blank
	if (theForm.realname.value == "")
	{
		alert("Vul een voor- en achternaam in.");
		theForm.realname.focus();
		return (false);
	}
	
	if (theForm.streetnr.value == "")
	{
		alert("Vul een straat en nummer in.");
		theForm.streetnr.focus();
		return (false);
	}

	if (theForm.fromcode.value == "")
	{
		alert("Vul een postcode in.");
		theForm.fromcode.focus();
		return (false);
	}

	if (theForm.state.value == "")
	{
		alert("Vul een gemeente in.");
		theForm.state.focus();
		return (false);
	}

	if (theForm.city.value == "")
	{
		alert("Vul een provincie in.");
		theForm.city.focus();
		return (false);
	}

	if (theForm.country.value == "")
	{
		alert("Vul een land in.");
		theForm.country.focus();
		return (false);
	}

	if (theForm.day.value == "")
	{
		alert("Vul een geboorte dag in.");
		theForm.day.focus();
		return (false);
	}

	if (theForm.mon.value == "")
	{
		alert("Vul een geboorte maand in.");
		theForm.mon.focus();
		return (false);
	}

	if (theForm.year.value == "")
	{
		alert("Vul een geboorte jaar in.");
		theForm.year.focus();
		return (false);
	}

	if (theForm.email.value == "")
	{
		alert("Vul een email adres in.");
		theForm.email.focus();
		return (false);
	}

	// test if valid email address, must have @ and .
	var checkEmail = "@.";
	var checkStr = theForm.email.value;
	var EmailValid = false;
	var EmailAt = false;
	var EmailPeriod = false;
	
	for (i = 0;  i < checkStr.length;  i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0;  j < checkEmail.length;  j++)
		{
			if (ch == checkEmail.charAt(j) && ch == "@")
				EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
				EmailPeriod = true;
	  		if (EmailAt && EmailPeriod)
				break;
	  		if (j == checkEmail.length)
				break;
		}
		// if both the @ and . were in the string
		if (EmailAt && EmailPeriod)
		{
			EmailValid = true
			break;
		}
	}
	
	if (!EmailValid)
	{
		alert("Vul een geldig \"emailadres\" in.");
		theForm.email.focus();
		return (false);
	}

	return(true);
}

*//
/******************************************
* Snow Effect Script- By Altan d.o.o. (http://www.altan.hr/snow/index.html)
* Visit Dynamic Drive DHTML code library (http://www.dynamicdrive.com/) for full source code
* Last updated Nov 9th, 05' by DD. This notice must stay intact for use
******************************************/
  
  //Configure below to change URL path to the snow image
  var snowsrc="snow.gif"
  // Configure below to change number of snow to render
  var no = 10;
  // Configure whether snow should disappear after x seconds (0=never):
  var hidesnowtime = 0;
  // Configure how much snow should drop down before fading ("windowheight" or "pageheight")
  var snowdistance = "windowheight";

///////////Stop Config//////////////////////////////////

  var ie4up = (document.all) ? 1 : 0;
  var ns6up = (document.getElementById&&!document.all) ? 1 : 0;

	function iecompattest(){
	return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}

  var dx, xp, yp;    // coordinate and position variables
  var am, stx, sty;  // amplitude and step variables
  var i, doc_width = 800, doc_height = 600; 
  
  if (ns6up) {
    doc_width = self.innerWidth;
    doc_height = self.innerHeight;
  } else if (ie4up) {
    doc_width = iecompattest().clientWidth;
    doc_height = iecompattest().clientHeight;
  }

  dx = new Array();
  xp = new Array();
  yp = new Array();
  am = new Array();
  stx = new Array();
  sty = new Array();
  snowsrc=(snowsrc.indexOf("dynamicdrive.com")!=-1)? "snow.gif" : snowsrc
  for (i = 0; i < no; ++ i) {  
    dx[i] = 0;                        // set coordinate variables
    xp[i] = Math.random()*(doc_width-50);  // set position variables
    yp[i] = Math.random()*doc_height;
    am[i] = Math.random()*20;         // set amplitude variables
    stx[i] = 0.02 + Math.random()/10; // set step variables
    sty[i] = 0.7 + Math.random();     // set step variables
		if (ie4up||ns6up) {
      if (i == 0) {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='"+snowsrc+"' border=\"0\"><\/a><\/div>");
      } else {
        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"; VISIBILITY: visible; TOP: 15px; LEFT: 15px;\"><img src='"+snowsrc+"' border=\"0\"><\/div>");
      }
    }
  }

  function snowIE_NS6() {  // IE and NS6 main animation function
    doc_width = ns6up?window.innerWidth-10 : iecompattest().clientWidth-10;
		doc_height=(window.innerHeight && snowdistance=="windowheight")? window.innerHeight : (ie4up && snowdistance=="windowheight")?  iecompattest().clientHeight : (ie4up && !window.opera && snowdistance=="pageheight")? iecompattest().scrollHeight : iecompattest().offsetHeight;
    for (i = 0; i < no; ++ i) {  // iterate for every dot
      yp[i] += sty[i];
      if (yp[i] > doc_height-50) {
        xp[i] = Math.random()*(doc_width-am[i]-30);
        yp[i] = 0;
        stx[i] = 0.02 + Math.random()/10;
        sty[i] = 0.7 + Math.random();
      }
      dx[i] += stx[i];
      document.getElementById("dot"+i).style.top=yp[i]+"px";
      document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i])+"px";  
    }
    snowtimer=setTimeout("snowIE_NS6()", 10);
  }

	function hidesnow(){
		if (window.snowtimer) clearTimeout(snowtimer)
		for (i=0; i<no; i++) document.getElementById("dot"+i).style.visibility="hidden"
	}
		

if (ie4up||ns6up){
    snowIE_NS6();
		if (hidesnowtime>0)
		setTimeout("hidesnow()", hidesnowtime*1000)
		}
//*