﻿// Browser
var useragent = navigator.userAgent;
var bName = (useragent.indexOf('Opera') > -1) ? 'Opera' : navigator.appName;
var pos = useragent.indexOf('MSIE');
if (pos > -1)
{
	bVer = useragent.substring(pos + 5);
	var pos = bVer.indexOf(';');
	var bVer = bVer.substring(0,pos);
}
var pos = useragent.indexOf('Opera');
if (pos > -1)
{
	bVer = useragent.substring(pos + 6);
	var pos = bVer.indexOf(' ');
	var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape")
{
	var bVer = useragent.substring(8);
	var pos = bVer.indexOf(' ');
	var bVer = bVer.substring(0, pos);
}
if (bName == "Netscape" && parseInt(navigator.appVersion) >= 5) 
{
	var pos = useragent.lastIndexOf('/');
	var bVer = useragent.substring(pos + 1);
}
// if((bName == "Microsoft Internet Explorer" && bVer >= 5.0) || (bName == "Netscape" && bVer >= 4.5) || (bName == "Opera" && bVer >= 5.0))
if((bName == "Microsoft Internet Explorer" && bVer >= 5.0) || (bName == "Netscape") || (bName == "Opera" && bVer >= 5.0))
{
	var urlBr = 1
}
else
{
	var urlBr = 0
}
// Bildschirmaufloesung
var w = window.screen.width
var h = window.screen.height
var able = "<img src=\"_images/icon_ok.gif\" width=\"20\" height=\"20\">"
var inable = "<img src=\"_images/icon_notok.gif\" width=\"20\" height=\"20\">"
if(w > 799 && h > 599)
{
	var urlSrc = 1
}
else
{
	var urlSrc = 0
}
// Java
if (navigator.javaEnabled() == true)
{
	var urlJava = 1
}
else
{
	var urlJava = 0
}
// JavaScript
var urlJavaS = 1
// CSS
// var yes = 1;
// var no  = 0;
// checktype = document.layers ? document.checkcss : checkcss;
// var output = (checktype) ? yes : no;
// var urlCss = output

// if(urlBr == 1 && urlSrc == 1 && urlJava == 1 && urlJavaS == 1 && urlCss == 1)
if(urlBr == 1 && urlSrc == 1 && urlJavaS == 1)
{
	window.location="login.cfm?check=1"
	
}
else
{
	window.location="check.cfm?js=1";
}

