/*
* Url jumper
*/
function urlJump(url)
{
	location.href = url;
}


/*
* browsercontrol to deny old browsers
* we care about ie, ns and moz only
*/
function browserCheck()
{
	var denyVersion = 4;	// deny browser from this and older
	var agent;
	var version;
	var status = true;

	agent = navigator.appName;
	version = navigator.appVersion;

	// if IE
	if (agent == "Microsoft Internet Explorer") {
		var verParts;
		var rawVer;
		var ieVerParts;
		var ver;

		verParts = version.split(";");
		rawVer = verParts[1];
			
			ieVerParts = rawVer.split(".");
			ver = ieVerParts[0].replace("MSIE ", "");
			
			// validate version
			if (!ver > denyVersion) {
				status = false;
			}
	}

	// if Netscape or Mozilla
	else if (agent == "Netscape") {
		var ver;
		ver = parseInt(version);
		
		// validate version
		if (!ver > denyVersion) {
			status = false;
		}
	}


	// redirect if invalid
	if (!status) {
		redirect("oldbrowser.html");
	}


}
window.onload = browserCheck;

