
<!--

//ANTI KOPIEER BEVEILIGING

var message="Sorry, that function is disabled.\nThis Page Copyrighted and\nImages and Text protected!\nALL RIGHTS RESERVED"; 

var message="";function clickIE(){if(document.all){(message);return false;}}function clickNS(e){if
(document.layers||(document.getElementById&&!document.all)){if(e.which==2||e.which==3){(message);return false;}}}if(document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}else
{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}document.oncontextmenu=new Function("return false")

if  (top.frames.length==0)
{
top.location="http://www.1java.org";
}

function openPlaatje(targetUrl) {
  window.open(targetUrl, "myWindow", "status = 1, height = 450, width = 550, resizable = 0" );
}

//INTERACTIEVE BUTTONS

function img_act(imgName)
{
  if (version == "n3")
  {
    imgOn = eval(imgName + "on.src");
    document [imgName].src = imgOn;
  }
}

function img_inact(imgName)
{
  if (version == "n3")
  {
    imgOff = eval(imgName + "off.src");
    document [imgName].src = imgOff;
  }
}




// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this header

var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail){
 good = true
} else {
 alert('Please enter a valid e-mail address.')
 field.focus()
 field.select()
 good = false
 }
}

u = window.location;
m = "I think you will like the site of 1.JaVA...";
function mailThisUrl(){
 good = false
 checkEmailAddress(document.eMailer.address)
 if (good){
 // the following expression must be all on one line...
 window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
 }
}

var bookmarkurl="http://www.xs4all.nl/~vdlogt/1java"

var bookmarktitle="WW2 Flightsim group 1e Jachtvliegtuig Afdeeling"



function addbookmark(){

if (document.all)

window.external.AddFavorite(bookmarkurl,bookmarktitle)

}

//COOKIE ROUTINES

pathname = location.pathname;
myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (30 * 24 * 3600 * 1000));



function SetCookie (name, value) {
        var argv = SetCookie.arguments;
        var argc = SetCookie.arguments.length;
        var expires = (argc > 2) ? argv[2] : null;
        var path = (argc > 3) ? argv[3] : null;
        var domain = (argc > 4) ? argv[4] : null;
        var secure = (argc > 5) ? argv[5] : false;
        document.cookie = name + "=" + escape (value) +
                ((expires == null) ? "" : ("; expires=" +
expires.toGMTString())) +
                ((path == null) ? "" : ("; path=" + path)) +
                ((domain == null) ? "" : ("; domain=" + domain)) +
                ((secure == true) ? "; secure" : "");
}

function getCookieVal (offset) {
   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1)
      endstr = document.cookie.length;
   return unescape(document.cookie.substring(offset, endstr));
}

function GetCookie (name) {
        var arg = name + "=";
        var alen = arg.length;
        var clen = document.cookie.length;
        var i = 0;
        while (i < clen) {
                var j = i + alen;
                if (document.cookie.substring(i, j) == arg)
                        return getCookieVal (j);
                i = document.cookie.indexOf(" ", i) + 1;
                        if (i == 0)
                                break;
                }
   return null;
}

function DeleteCookie (name) {  

	var exp = new Date();  

	exp.setTime (exp.getTime() - 1);  

	// This cookie is history  

	var cval = GetCookie (name);  

	document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();

}
// Image browse routines

function chgupScn(form) {
	form +=1;
	if (form > shot.length - 1) {
		form = 0;
	}
	document.shots.src = shot[form];
	theScn = form;
}

function chgdnScn(form) {
	form -=1;
	if (form < 0) {
		form = shot.length - 1;
	}
	document.shots.src = shot[form];
	theScn = form;
}


function SetImage(pagina) {
	var formstr = GetCookie(pagina);
        if (formstr == null) {form=0} else {form = parseInt(formstr)}; 
	document.shots.src = shot[form];
	theScn = form;
}

function SetNewValue(pagina) {
	DeleteCookie(pagina);
	SetCookie(pagina,theScn,largeExpDate,myDomain);
	
}

// Image browse routines MET TEKST

function chgupScnTkst(form) {
	form +=1;
	if (form > shot.length - 1) {
		form = 0;
	}
	document.shots.src = shot[form];
        document.FORM1.DESCRIPTION.value = Tekst[form];
	theScn = form;
}

function chgdnScnTkst(form) {
	form -=1;
	if (form < 0) {
		form = shot.length - 1;
	}
	document.shots.src = shot[form];
        document.FORM1.DESCRIPTION.value = Tekst[form];
	theScn = form;
}


function SetImageTkst(pagina) {
	var formstr = GetCookie(pagina);
        if (formstr == null) {form=0} else {form = parseInt(formstr)}; 
	document.shots.src = shot[form];
        document.FORM1.DESCRIPTION.value = Tekst[form];
	theScn = form;
}



// --> 
