var vscroll;
vscroll=0;

function schrijfsub() {
	document.writeln("<table width=\"100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#CCCCFF\"><tr>");
	document.writeln("<td height=24><div align=\"center\"><a href=\"/\">home</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"borduurpakketten.php\">borduurpakketten</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"quilt-abc.html\">quilt-abc</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"quiltvakanties-groepsreizen.php\">quiltvakanties</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"cursussen.html\">workshops/cursussen</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href='http://www.wilmakarels.nl/tijdschriften.php'>tijdschriften borduren en quilten</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"contact.php\">contact</a></div></td>");
	document.writeln("</tr></table>");
	}

function schrijfsub2() {
	document.writeln("<table width=\"100%\"  border=\"0\" cellpadding=\"2\" cellspacing=\"1\" bgcolor=\"#CCCCFF\"><tr>");
	document.writeln("<td><div align=\"center\"><a href=\"../\">home</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"../borduurpakketten.php\">borduurpakketten</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"../quilt-abc.html\">quilt-abc</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"../quiltvakanties-groepsreizen.php\">quiltvakanties</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"../cursussen.html\">workshops/cursussen</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href='http://www.wilmakarels.nl/tijdschriften.php'>tijdschriften borduren en quilten</a></div></td>");
	document.writeln("<td><div align=\"center\"><a href=\"../contact.php\">contact</a></div></td>");
	document.writeln("</tr></table>");
	}

function mailcheck()
        {
	var invoer, lengte, i, atcheck, dotcheck;
	invoer=document.nieuwsbrief.email.value;
	lengte=document.nieuwsbrief.email.value.length;
	atcheck=0;
	dotcheck=0;
	for (i=0; i < lengte; i=i+1)
	  {if (invoer.charAt(i)=="@")
	     {
	      atcheck = 1
	     }
	   if (invoer.charAt(i)==".")
	     {
	      dotcheck = 1
	     }
	  }
	if (atcheck!=1 || dotcheck!=1)
	  {alert("U heeft geen geldig emailadres ingevuld.");
	   document.nieuwsbrief.email.focus();
	   return false;
	  }
	}

function schrijfemail() {
	document.writeln("<form name=\"nieuwsbrief\" method=\"POST\" action=\"http://www.wilmakarels.nl/opgave_nieuwsbrief.php\" onSubmit=\"return mailcheck()\">");
	document.writeln("<table width=360 border=0  cellpadding=0 cellspacing=0 align=\"left\"><tr><td><i>Aanmelden Nieuwsbrief. <input onFocus=\"this.select()\" name=\"email\" size=\"20\" value=\"Geef je emailadres op\"><input type=\"submit\" value=\"OK\" name=\"OK\">");
	document.writeln("<br />Bij aanmelding gratis patroon van een <a href=\"naaldenboekje.html\">naaldenboekje</span></a>.</i></td></tr></table><br clear=\"all\"/>");
	document.writeln("</form>");
	}
function schrijfemailEN() {
	document.writeln("<form name=\"nieuwsbrief\" method=\"POST\" action=\"http://www.wilmakarels.nl/opgave_nieuwsbrief.php\" onSubmit=\"return mailcheck()\">");
	document.writeln("<table width=360 border=0  cellpadding=0 cellspacing=0 align=\"left\"><tr><td><i>Subscribe to our Newsletter. <input onFocus=\"this.select()\" name=\"email\" size=\"20\" value=\"Your mailadress\"><input type=\"submit\" value=\"OK\" name=\"OK\">");
	document.writeln("<br />Upon subscription, you will receive a free pattern for <a href=\"naaldenboekje.html\">a needle case</a>.</i></td></tr></table><br clear=\"all\"/>");
	document.writeln("</form>");
	}

function zetterug()
	{
	document.all['menu'].style.pixelTop=document.body.scrollTop;
	}
function init() 
	{
	 document.body.onScroll = zetterug();
	}
function zondag()
  {var vdatum, vdag;
   vdatum = new Date;
   vdag = vdatum.getDay();
   if (vdag == 0)
     {window.location="zondag.php";
	 }
  }
function zondag2()
  {var vdatum, vdag;
   vdatum = new Date;
   vdag = vdatum.getDay();
   if (vdag == 0)
     {window.location="/zondag/";
	 }
  }
function openvenster(nummer) {
	NewWin=window.open('','NewWin','scrollbars=no,menubar=no,directories=no,resizable=no,toolbar=no,status=no,width=700,height=550');
	NewWin.document.writeln("<html><head><title>Algemene quilt-tentoonstelling 2005 | Wilma Karels quiltpatronen</title>");
	NewWin.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"scripts/vergroting.css\" />");
	NewWin.document.writeln("</head><body>");
	NewWin.document.writeln("<table width=100%><tr><td valign=\"top\" align=\"center\">");
	NewWin.document.writeln("<img src=\"images/tentoonstelling/"+nummer+".JPG\"></td></tr><tr><td align=\"center\"><a href=\"javascript:close()\">Venster sluiten</a></table>");
	NewWin.document.writeln("</body></html>");
	NewWin.document.close();
	NewWin.focus();
	}
