function sf(){document.myform.NAAM.focus();}
function checkvelden()
{
var themessage = "You are required to complete the following fields: ";
var errorcount=0;
   if (document.myform.NAAM.value == "")
      {
      document.myform.NAAM.style.backgroundColor="#F0F0F0";
	  document.myform.NAAM.style.border="1px solid #7F9DB9";
	  themessage = themessage + "\nName";
      errorcount++;
      }
   if (document.myform.COMPANY.value == "")
      {
	  document.myform.COMPANY.style.backgroundColor="#F0F0F0";
	  document.myform.COMPANY.style.border="1px solid #7F9DB9";
      themessage = themessage + "\nCompany";
      errorcount++;
      }
   if (document.myform.ADRES.value == "")
      {
	  document.myform.ADRES.style.backgroundColor="#F0F0F0";
  	  document.myform.ADRES.style.border="1px solid #7F9DB9";
      themessage = themessage + "\nAddress";
      errorcount++;
      }
   if (document.myform.TELEFOON.value == "")
      {
	  document.myform.TELEFOON.style.backgroundColor="#F0F0F0";
	  document.myform.TELEFOON.style.border="1px solid #7F9DB9";
      themessage = themessage + "\nPhone";
      errorcount++;
      }
   if (document.myform.EMAIL.value == "")
      {
	  document.myform.EMAIL.style.backgroundColor="#F0F0F0";
	  document.myform.EMAIL.style.border="1px solid #7F9DB9";
      themessage = themessage + "\nE-mail";
      errorcount++;
      }
   if (errorcount == 0)
      {
      document.myform.SOORT.value = "OK";
      return true;
      }
   popupWin(themessage);
   return false;
}
function popupWin(themessage) {
text =  "<html>\n<body bgcolor=\"#FFFFF0\">\n";
text += "<center>\n<pre>";
text += themessage;
text += "\n</pre></center>\n</body>\n</html>\n";
setTimeout('windowProp(text)', 100); 		// delay .1 seconds before opening
}
function windowProp(text) {
newWindow = window.open('','newWin','width=450,height=120');
newWindow.document.write(text);
setTimeout('closeWin(newWindow)', 10000);	// delay 10 seconds before closing
}
function closeWin(newWindow) {
newWindow.close();				// close small window and depart
}
function setStyle(x)
{
document.getElementById(x).style.background="#FFFFB9";
document.getElementById(x).style.border="1px solid #7F9DB9";
}
function setBlurStyle(x)
{
document.getElementById(x).style.background="#FFFFFF";
document.getElementById(x).style.border="1px solid #7F9DB9";
}