// check Browsertype IE or NS
function notepadIs() {
	var agent = navigator.userAgent.toLowerCase();
	this.ns  = ((agent.indexOf('mozilla') != -1) && ((agent.indexOf('spoofer') == -1) && (agent.indexOf('compatible') == -1)));
	this.ie  = (agent.indexOf("msie") != -1);
}
var is = new notepadIs();

//#################### 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 = "focuswindow";}
	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;
	}

