");
}
function alg_kop(str) {
div_menu();
}
function alg_search(){
if(!document.alg_searchform.terms.value){
alert("Error. Please enter something to search for");
return false;
} else {
var mypage = "/phpdig/search.php?option=start&query_string="+escape(document.alg_searchform.terms.value);
window.location.href=mypage;
return true;
}
}
function alg_groet() {
d = new Date();
dateText = "";
dayValue = d.getDay();
if (dayValue == 0)
dateText += "zondag";
else if (dayValue == 1)
dateText += "maandag";
else if (dayValue == 2)
dateText += "dinsdag";
else if (dayValue == 3)
dateText += "woensdag";
else if (dayValue == 4)
dateText += "donderdag";
else if (dayValue == 5)
dateText += "vrijdag";
else if (dayValue == 6)
dateText += "zaterdag";
dateText += " " + d.getDate();
dateText += " "
monthValue = d.getMonth();
if (monthValue == 0)
dateText += "januari";
if (monthValue == 1)
dateText += "februari";
if (monthValue == 2)
dateText += "maart";
if (monthValue == 3)
dateText += "april";
if (monthValue == 4)
dateText += "mei";
if (monthValue == 5)
dateText += "juni";
if (monthValue == 6)
dateText += "juli";
if (monthValue == 7)
dateText += "augustus";
if (monthValue == 8)
dateText += "september";
if (monthValue == 9)
dateText += "oktober";
if (monthValue == 10)
dateText += "november";
if (monthValue == 11)
dateText += "december";
minuteValue = d.getMinutes();
if (minuteValue < 10)
minuteValue = "0" + minuteValue
hourValue = d.getHours();
if (hourValue < 12)
{
greeting = "Goedemorgen, ";
timeText = " om " + hourValue + ":" + minuteValue;
}
else if (hourValue == 12)
{
greeting = "Goedemiddag, ";
timeText = " om " + hourValue + ":" + minuteValue;
}
else if (hourValue < 17)
{
greeting = "Goedemiddag, ";
timeText = " om " + (hourValue-12) + ":" + minuteValue;
}
else
{
greeting = "Goedenavond, ";
timeText = " om " + (hourValue-12) + ":" + minuteValue;
}
str = greeting + " het is " + dateText + timeText;
return str;
}
function alg_info() {
PreView = window.open("", "Info", "toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=500,height=300");
PreView.document.open();
PreView.document.write("");
PreView.document.write("
Extra informatie ");
PreView.document.write("
");
PreView.document.write("
");
PreView.document.write(alg_groet() + ".
Pagina | Deze pagina (\"" + window.location + "\") is het laatst aangepast op " + document.lastModified + ". U komt van pagina \"" + document.referrer + "\". This site is best viewed with |
Server | Selecteer voor extra informatie over de server. |
");
PreView.document.write("Browser | code name | " + navigator.appCodeName + " |
application name | " + navigator.appName + " |
app version | " + navigator.appersion + " |
user agent | " + navigator.userAgent + " |
language | " + navigator.language + " |
Client | platform | " + navigator.platform + " |
Width | "+alg_width+" |
Height | "+alg_height+" |
");
PreView.document.write("
");
PreView.document.write("");
PreView.document.close();
}
function alg_copyright() {
PreView = window.open("", "Copyright", "toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=500,height=300");
PreView.document.open();
PreView.document.write("");
PreView.document.write("
Copyright ");
PreView.document.write("
");
PreView.document.write("Niets van deze web-site mag gecopieerd worden zonder toestemming van de auteur Jan van Hemert.
Meestal is het wel goed dat je het materiaal gebruikt, maar je moet wel even om toestemming vragen door een mailtje te sturen naar " + alg_mail + " waarin je uitlegt wat je wilt hebben en waarvoor je het wilt gebruiken.");
PreView.document.write("
© Jan van Hemert 2001-"+alg_year+".");
PreView.document.write("
");
PreView.document.write("");
PreView.document.close();
}
function alg_cookieread(name) {
var cookie = document.cookie;
var ret = "";
if (cookie=="") { return ret; }
var start= cookie.indexOf(name+'=')
if (start== -1) { return ret; }
start += name.length+1;
var end=cookie.indexOf(';',start);
if (end == -1) end=cookie.length;
ret = cookie.substring(start,end);
return ret;
}
function alg_cookiewrite(nam, val) {
var cookie=nam+"="+val;
d = new Date();
d.setFullYear(d.getFullYear()+1);
cookie+='; expires=' + d.toGMTString();
cookie+='; path=/';
document.cookie=cookie;
}
function alg_password(userid, password) {
alg_protdir = "";
for(var y = 0; y
= "a" && letter <= "z") {
alg_protdir = alg_protdir + letter;
}
}
alg_protdir = alg_protdir + "_";
for(var y = 0; y= "a" && letter <= "z") {
alg_protdir = alg_protdir + letter;
}
}
top.window.location=alg_protdir + "/index.htm";
}
function alg_ajax_do (url) {
// Does URL begin with http?
if (url.substring(0, 4) != 'http') {
docurl = document.location.href;
xend = docurl.lastIndexOf("/") + 1;
base_url = docurl.substring(0, xend);
url = base_url + url;
}
// Create new JS element
var jsel = document.createElement('SCRIPT');
jsel.type = 'text/javascript';
jsel.src = url;
// Append JS element (therefore executing the 'AJAX' call)
document.body.appendChild (jsel);
}