// general
function popOver(color) { //added for values, else it had to be another copy of the whole system...
document.getElementById('pop').src='images/0016/popje_'+color+'.gif'
}
function preload(arrImages) {
var arrPre = new Array();
for (i = 0 ; i < arrImages.length ; i++) {
arrPre[i] = new Image();
arrPre[i].src = "images/" + arrImages[i];
}
}
function butHighlight (elm) {
try {
elm.src = elm.filters[0].src.replace(/but/, "bhl");
}
catch (e) {
elm.src = elm.src.replace(/but/, "bhl");
}
}
function butUnhighlight (elm) {
try {
elm.src = elm.filters[0].src.replace(/bhl/, "but");
}
catch (e) {
elm.src = elm.src.replace(/bhl/, "but");
}
}
function itmHighlight (elm, bgcolor) {
elm.src = elm.style.backgroundColor = bgcolor;
ply = document.getElementById(elm.id.replace(/td/, "div"))
ply.className = ply.className.replace(/But/, "Bhl");
}
function itmUnhighlight (elm) {
elm.src = elm.style.backgroundColor = "transparent";
ply = document.getElementById(elm.id.replace(/td/, "div"))
ply.className = ply.className.replace(/Bhl/, "But");
}
function celHighlight (elm) {
elm.firstChild.src = elm.firstChild.src.replace(/ovl/, "ohl");
elm.lastChild.className = elm.lastChild.className.replace(/But/, "Bhl");
}
function celUnhighlight (elm) {
elm.firstChild.src = elm.firstChild.src.replace(/ohl/, "ovl");
elm.lastChild.className = elm.lastChild.className.replace(/Bhl/, "But");
}
function winOpen (adr, name, w, h, scr) {
par = "left=" + Math.floor((screen.width-w)/2) + ",width=" + w;
par += ",top=" + Math.floor((screen.height-h)/2) + ",height=" + h;
par += ",scrollbars=" + (scr?"yes":"no");
par += ",resizable=" + (scr?"yes":"no");
par += ",status=no";
return window.open (adr, name, par);
}
function dlgDisclaimer() {
winOpen ("include/0021/dlg_discl.php", "winDisclaimer", 517, 389, true).focus();
return false;
}
function vidPlay (cid) {
winOpen ("http://www.video4all.nl/src/ext/show_movie.php?bID=AOrv5mioaDwZiYxq2lUDJ&mID="+cid+"&ln=en", "", 433, 562, false);
}
function dspNews (nid) {
wh = winOpen ("nlet_letr.php?sn=8emon&ln=en&id="+nid, "winNewsLetter", 519, 500, true);
wh.focus();
}
var patEmail = /^[A-Za-z0-9_\.\-]+@[A-Za-z0-9_\.\-]+\.[A-Za-z]+$/;
function chkEmail (fld, msg) {
if (!patEmail.test(fld.value)) {
fld.focus();
if (msg != "") alert (msg);
fld.focus();
return false;
}
return true;
}
function chkField (fld, msg) {
if (fld.value == "") {
fld.focus();
alert (msg);
fld.focus();
return false;
}
return true;
}
// index.php
function goPage(page) {
document.location.href = page + ".php?sn=8emon&ln=en";
}
// impr.php
function shwImpr (id) {
document.location.href = "impr_pag.php?sn=8emon&ln=en&id=" + id.toString();
}
// home.php
function dspText() {
Player.controls.stop();
document.getElementById("divHomeVideo").style.display = "none";
document.getElementById("divHomeText").style.display = "block";
}
function dspVideo(tit, id) {
document.getElementById("tdVideoTitle").innerHTML = tit;
Player.URL = "http://www.video4all.nl/src/getVideo.php?cid=" + id + "&lvl=2";
document.getElementById("divHomeText").style.display = "none";
document.getElementById("divHomeVideo").style.display = "block";
}
function vidOff() {
stopPlayer();
document.getElementById("divImprVideo").style.display = "none";
document.getElementById("divImprPicture").style.display = "block";
document.getElementById("divButVideo").style.display = "none";
// obj = document.getElementById("Player");
// del = obj.parentNode.removeChild(obj);
}
var playing = false;
function vidToggle() {
if (playing) {
document.getElementById("aVideo").innerHTML = "turn video on";
Player.controls.pause();
}
else {
document.getElementById("aVideo").innerHTML = "turn video off";
Player.controls.play();
}
playing = !playing;
}
// impr_lst.php
function impPrev() {
curItem--;
if (curItem <= 0) {
document.getElementById("divPrev").style.display = "none";
}
document.getElementById("divNext").style.display = "block";
fraItem.document.location.href = "impr_itm.php?sn=8emon&ln=en&id=" + arrItems[curItem].toString();
}
function impNext() {
curItem++;
if (curItem >= arrItems.length-1) {
document.getElementById("divNext").style.display = "none";
}
document.getElementById("divPrev").style.display = "block";
fraItem.document.location.href = "impr_itm.php?sn=8emon&ln=en&id=" + arrItems[curItem].toString();
}
// team.php
function shwTeam (id) {
document.location.href = "team_mem.php?sn=8emon&ln=en&id=" + id.toString() +"&teamdef=0";
}
// cont.php
function chkFormInfo() {
var frm = document.frmInfo;
if (!chkField(frm.Naam, "You haven't entered a name yet.")) return false;
if (!chkEmail(frm.Email, "You have entered an invalid e-mail address.")) return false;
if (!chkField(frm.Opmerking, "You haven't entered a remark yet.")) return false;
return true;
}
// link_req.php
function chkFormLink() {
var frm = document.frmLink;
if (!chkEmail(frm.Email, "You have entered an invalid e-mail address.")) return false;
if (!chkField(frm.Titel, "You haven't entered a title yet.")) return false;
if (!chkField(frm.URL, "You haven't entered a web address yet.")) return false;
return true;
}
function mpObject (id, w, h, movie, arrParms, attr) {
var html = '';
document.write(html);
}
function flObject (id, w, h, movie, arrParms, attr) {
var html = '';
document.write(html);
}