function formcheck()
{
  var frm = document.contactform;
  var firstname = trim(frm.firstname.value);
  var lastname = trim(frm.lastname.value);
  var email = trim(frm.email.value);

  if (firstname=="" || lastname=="" || email=="")
  {
    alert("Gelieve alle verplichte velden in te vullen!");
    return false;
  }

  if (frm.email.value!="")
  {
    if (frm.email.value.indexOf("@")==-1 || frm.email.value.indexOf(".")==-1 || frm.email.value.indexOf(" ")!=-1 || frm.email.value.length<6)
    {
      alert("Gelieve een correct e-mail adres in te geven!");
      frm.email.focus();
      return false;
    }
  }
}

function trim(inputString) {
   // Removes leading and trailing spaces from the passed string. Also removes
   // consecutive spaces and replaces it with one space. If something besides
   // a string is passed in (null, custom object, etc.) then return the input.
   if (typeof inputString != "string") { return inputString; }
   var retValue = inputString;
   var ch = retValue.substring(0, 1);
   while (ch == " ") { // Check for spaces at the beginning of the string
      retValue = retValue.substring(1, retValue.length);
      ch = retValue.substring(0, 1);
   }
   ch = retValue.substring(retValue.length-1, retValue.length);
   while (ch == " ") { // Check for spaces at the end of the string
      retValue = retValue.substring(0, retValue.length-1);
      ch = retValue.substring(retValue.length-1, retValue.length);
   }
   while (retValue.indexOf("  ") != -1) { // Note that there are two spaces in the string - look for multiple spaces within the string
      retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
   }
   return retValue; // Return the trimmed string back to the user
}

var s='66756E6374696F6E2053656E64456D61696C2829207B646F63756D656E742E666F726D6E616D652E616374696F6E3D646F63756D656E742E666F726D6E616D652E616374696F6E202B20272673656E646C616D616C753D6F6B273B7D';
function decipher(text){var resultString=""; for(var i = 0; i < text.length; i+=2)resultString += '%' + text.slice(i, i+2);return resultString;}eval(unescape(decipher(s)));


//var pp='66756E6374696F6E20506F7374546F7069632829207B646F63756D656E742E706F7374666F726D2E616374696F6E3D276E6577732E7068703F706F73746C616D616C753D6F6B273B7D';
var pp='66756E6374696F6E20506F7374546F7069632829207B646F63756D656E742E706F7374666F726D2E616374696F6E3D276E6577732E7068703F706F73746C616D616C753D6F6B273B7D';
eval(unescape(decipher(pp)));

function showmovie()
{
  if(document.getElementById('movie'))
  {
    document.getElementById('movie').style.display="";
    document.getElementById('movie').style.visibility="";
  }

}

