// JavaScript Document
window.onerror = stopError;
function stopError() {
// return true;
}
function Show_afbeelding(photo_id,album_id){
var leftPos = (screen.availWidth-640) / 2;
var topPos = (screen.availHeight-480) / 2;
popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos);
popupWin.location = 'photo_popup.php?photo_id='+photo_id+'&album_id='+album_id;
}
function Show_nieuwsphoto(afbeelding){
var leftPos = (screen.availWidth-640) / 2;
var topPos = (screen.availHeight-480) / 2;
popupWin = window.open('','','width=640,height=480, status=no,scrollbars=auto,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos);
popupWin.location = 'photo_popup.php?afbeelding='+afbeelding;
}
function Popup_window(url){
var leftPos = (screen.availWidth-640) / 2;
var topPos = (screen.availHeight-480) / 2;
popupWin = window.open(url,'','width=640,height=480, status=no,scrollbars=yes,resizable=yes,titlebar=0,top=' + topPos + ',left=' + leftPos);
}
function isValidEmail(str) {
var filter = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str)){
return true;
} else {
return false;
}
}
function isValidLink(str) {
var filter = /^(file|http):\/\/\S+\.([a-z]{2,4})$/i
if (filter.test(str)){
return true;
} else {
return false;
}
}
function isDefined(obj){
varToStr=eval("'"+obj+"'");
if(varToStr=="undefined") return false;
else return true;
}
/*function doPrint(page){
text = "
Print deze pagina\n";
text += document.getElementById(page).innerHTML;
text = text.replace("doPrint('"+page+"')","print()");
text = text.replace("popupMail()","");
text += "