// JavaScript Document
// the Palix Project proarp.js
// WARNING Filemode must be 0664 (-rw-r--r--) sonst mag es der ie nicht
// check Browsertype IE or NS

function Is () {        // Browser Sniffer
    var agt=navigator.userAgent.toLowerCase();           
    this.major = parseInt(navigator.appVersion);
    this.nav = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)));
    this.nav3 = (this.nav && (this.major == 3)); 
    this.nav4 = (this.nav && (this.major == 4));
    this.nav6 = (this.nav && (this.major >= 5)); 
    this.win95 =((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));  
    this.ie = ( agt.indexOf("aol")!=-1 && agt.indexOf("c-aol")==-1 )|| (agt.indexOf("msie")!=-1); 
    this.ie3 =(this.ie && (this.major == 2)); 
    this.ie4 = (this.ie && ((agt.indexOf('4')!=-1) && agt.indexOf('5.')==-1));
    this.ie5 = (this.ie && (agt.indexOf('5.')!=-1));
    this.win98 =((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1)); 
    this.winnt =((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1)); 
    this.win32 = this.win95 || this.winnt || this.win98 ||((this.major >= 4) && (navigator.platform == "Win32")) || (agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1);
    this.compatibleIE = ( this.win32 && (this.ie4 || this.ie3 || this.ie5)); 
    this.compatibleNS = ( this.win32 && (this.nav3||this.nav4));
    this.compatible = (this.compatibleIE || this.compatibleNS); 
}
var is = new Is();
if(is.compatible) Flag=true;

//#################### page navigation #################################
// popup - just modify by tt - dont copy it !!!!
// window_top=0 AND window_left=0 means: center window on screen

function openWindow(url,name,window_width,window_height,window_top,window_left,scroll,resize) 
	{
	var displayWindow = "";
	
	if (name == null)
	 	{name = "quokawindow";}
	if (window_width == null)
		{window_width = 150;}
	if (window_height == null)
		{window_height = 100;}
	if (window_top == null)
		{window_top = 0;}
	if (window_left == null)
		{window_left = 0;}
	if (scroll == null)
		{scroll = "no";}
	if (resize == null)
		{resize = "no";}
	
	if ((window_top==0) && (window_left==0))	//	center window
		{
		if (navigator.appVersion.substring(0,1)>'3')
			{
			window_top 		= ((screen.availHeight-window_height)/2);
			window_left 	= (screen.availWidth-window_width)/2;
			}
		else
			{
			window_width	+= 20; 
			window_height	+= 40;
			window_top 		= ((600-window_height)/2)-20;
			window_left 	= (800-window_width)/2;
			}
		}
	displayWindow = window.open(''+ url + '',''+ name +'','resizable=' + resize + ',menubar=no,scrollbars=' + scroll +
							',status=no,directories=no,width=' + window_width + ',height=' + window_height + ',top=' + window_top +
							 ',left=' + window_left);
	displayWindow.focus();
	return displayWindow;
	} 
	
	// Werden Cookies akzeptiert
function isCookie()
	{document.cookie = "true";
	 if (document.cookie == "")
		return false;
	 else
		return true;
	}
	
	function lnk(titel, nr) {
var mu = "http://sys.yellocheck.de/?nav=t6&sub=2&id=wako-mail:" + nr;
document.write("<a href=" + mu + ">Anfrage Senden sys\@yellocheck.de</a>");
}
	
	
	
	
	
	
