<!-- script voor foto rouleren
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '../images/fotos/image1.jpg'
theImages[1] = '../images/fotos/image2.jpg'
theImages[2] = '../images/fotos/image3.jpg'
theImages[3] = '../images/fotos/image4.jpg'
theImages[4] = '../images/fotos/image5.jpg'
theImages[5] = '../images/fotos/image6.jpg'
theImages[6] = '../images/fotos/image7.jpg'
theImages[7] = '../images/fotos/image8.jpg'
theImages[8] = '../images/fotos/image9.jpg'
theImages[9] = '../images/fotos/image10.jpg'
theImages[10] = '../images/fotos/image11.jpg'




// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img border="0" src="'+theImages[whichImage]+'">');
}

//  End -->


<!-- script voor webmail
function trimspace(str) 
{ 
  temp_str = ""; 
  for (i=0; i<str.length; i++) { 
    c = str.charAt(i); 
    if (c != " "){ 
      temp_str = str.substring(i, str.length); 
      break; 
    } 
  } 
 
  for (i=temp_str.length-1; i>=0; i--) { 
    c = temp_str.charAt(i); 
    if (c != " ") { 
      temp_str = temp_str.substring(0, i+1); 
      break; 
    } 
  } 
 
   return temp_str; 
} 
 
function validate_str(str) { 
  var ok = 1;
  if (str.indexOf("'") != -1)
    ok = 0;
  if (str.indexOf("#") != -1)
    ok = 0;
  if (str.indexOf("%") != -1)
    ok = 0;
  if (str.indexOf("?") != -1)
    ok = 0;
  if (str.indexOf('"') != -1)
    ok = 0;
  if (str.indexOf("$") != -1)
    ok = 0;
  if (str.indexOf("&") != -1)
    ok = 0;
   if (str.indexOf("<") != -1) 
    ok = 0;
  if (str.indexOf(">") != -1)
    ok = 0;
  if (str.indexOf(",") != -1)
    ok = 0;
  if (ok == 0) { 
    alert("Invalid input - cannot contain ' # % ? $ & < > ," + '"'); 
    return -1; 
 
  } else  
    return 1; 
} 
function update(theform) {
  var email = trimspace(document.forms[theform].emailaddress.value);
  if (email == "") {
    alert("Please enter a your e-mail address first");
    return;
  }
  if (email.indexOf("@") == -1) {
// Please enter your domain after the @ symbol
<!--  ********************************************************************************** //-->
<!--  ********************************************************************************** //-->
    email = email + "@casavrolik.nl"
<!--  ********************************************************************************** //-->
<!--  ********************************************************************************** //-->
    }   
  else if (email.indexOf(".") == -1) {
    alert("This is not a valid email address.");
    return;
    }   
  document.forms[theform].emailaddress.value = email;
  document.forms[theform].submit();
}
function lemmein(keypressed){
  var key;
  
  if (document.all) {
    key=window.event.keyCode;
  } else {
    key=keypressed.which;
  };
  if (key==13) {
    update("email");
  }
}
//-->


