//<SCRIPT LANGUAGE="JavaScript">
//<!-- Begin
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

var initialsubj=" safari informatie gevonden voor jouw !"
var initialmsg="\n\n Jij was toch geinteresseerd in een prive safari op maat, misschien is dit iets voor jou: http://www.onskenia.nl"
var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('In onze beleving is het e-mail adres niet correct, controleer a.u.b. het emailadres');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {
window.location = "mailto:"+document.eMailer.email.value+"?subject="+document.eMailer.ename.value+initialsubj+"&body="+document.eMailer.ename.value+initialmsg;
   }
closeTop()   
}
//  End -->
//</script>
function closeTop() {
var top = window.open('','_top','');
top.focus();
top.opener = top;
top.close();
}

//
//<script language="javascript">
// Author: Eric King Url: http://redrival.com/eak/index.shtml
// This script is free to use as long as this info is left in
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
var myWindow;

function openCenteredWindow(url,w,h) {
    var width = parseInt(w);
    var height = parseInt(h);
    var left = parseInt((screen.availWidth/2) - (width/2));
    var top = parseInt((screen.availHeight/2) - (height/2));
    var windowFeatures = "width=" + width + ",height=" + height + ",status,resizable,left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top + ",scrollbars=yes,status=no,location=yes,toolbar=no,location=no";
    myWindow = window.open(url, "subWind", windowFeatures);
}




