
		
	// ********************************************************************************************************
	// This script was written by Merrick - www.merrick.nl - info@merrick.nl
	// Unauthorized copying or distribution is not allowed
	// Author: J.E. Hoppenbrouwers
	// Version: 1.4
	// Date: 28-Nov-2004
	// ********************************************************************************************************


	//window.defaultStatus = 'Cisco Systems - Prettige Feestdagen en een Goed 2005!';

	function getPassword(field, length) {
		var strChars = 'abcdefghjklmnopqrstuvw'
		var pos = 0
		var strTemp = ''
		for (var i = 0; i < length; i++) {
			Pos = Math.abs((strChars.length) * Math.random() + 1)
			strTemp = strTemp + strChars.charAt(Pos)
		}
		field.value = strTemp
		return;
	}

	function OpenWindow(url, h, w) {
		var r = Math.round(Math.random() * 100).toString();
		popup = window.open(url, "pagina" + r, "height="+h+", width="+w+", scrollbars=yes, status=1")  
	}	
	
	function AutoMove(v1, RequiredLength, v2, noValue) {
		//alert(event.keyCode);
		if (event.keyCode != 9 && event.keyCode != 16) {		
			if ((v1.value.length == RequiredLength) && (v1.value != noValue)) {
				v2.focus();
			}
		}
	}
	
	// Browser Detection 
	function BrowserCheck() {
		var b = navigator.appName;	
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		//if (this.version.indexOf('Win')>0) this.os = "PC";
		//else if (this.version.indexOf('Mac')>0) this.os = "Mac";	
		this.WinOs = (this.version.indexOf('Win')>0);
		this.v = parseInt(this.version);
		this.ns = (this.b=="ns" && this.v>=4);
		this.ns4 = (this.b=="ns" && this.v==4);
		this.ns5 = (this.b=="ns" && this.v==5);
		this.ie = (this.b=="ie" && this.v>=4);
		this.ie4 = (this.version.indexOf('MSIE 4')>0);
		this.ie5 = (this.version.indexOf('MSIE 5')>0);
		this.ie6 = (this.version.indexOf('MSIE 6')>0);
		this.min = (this.ns||this.ie);
	}
	var browser = new BrowserCheck();

	if ((!browser.WinOs) && (browser.ie)){
		window.onresize = new Function("window.location.href=document.location");
	}
	
	function confirmAction(msg, action) {
		if (window.confirm(msg)) {
			eval(action);
		} else {
			return;
		}
	}	
