 
function MR_infobox(l_name,l_action)
{
 

	l_mouseX = g_mouseX + g_offsetX;
	l_mouseY = g_mouseY + g_offsetY;

	if (document.layers)
	{
		document.layers[l_name].left = l_mouseX ;
		document.layers[l_name].top = l_mouseY ;
		document.layers[l_name].visibility = l_action ;
	}
	else if (document.all)
	{
		l_action = (l_action == 'show')?'visible':l_action;
		l_action = (l_action == 'hide')?'hidden':l_action;
		document.all[l_name].style.left = l_mouseX + document.body.scrollLeft ;
		document.all[l_name].style.top = l_mouseY + document.body.scrollTop ;
		document.all[l_name].style.visibility = l_action ;
	}
	else if (document.getElementById)
	{
		l_action = (l_action == 'show')?'visible':l_action;
		l_action = (l_action == 'hide')?'hidden':l_action;
		document.getElementById(l_name).style.left = l_mouseX ;
		document.getElementById(l_name).style.top = l_mouseY ;
		document.getElementById(l_name).style.visibility = l_action ;
	}
}

var g_mouseX;
var g_mouseY;
var g_offsetX = 5;
var g_offsetY = 5;

if (document.layers)
{
	document.captureEvents(Event.MOUSEMOVE);
	document.onmousemove = MR_mouse_coords;
}
else if (document.all)
{
	document.onmousemove = MR_mouse_coords;
}
else if (document.getElementById)
{
	document.addEventListener('mousemove', MR_mouse_coords, true);
}

function MR_mouse_coords(e)
{
	if (document.layers)
	{
		g_mouseX = e.pageX;
		g_mouseY = e.pageY;
	}
	else if (document.all)
	{
		g_mouseX = event.clientX ;
		g_mouseY = event.clientY ;
	}
	else if (document.getElementById)
	{
		g_mouseX = e.pageX ;
		g_mouseY = e.pageY ;
	}

	/*  modified by chechenblaikner */
	// g_mouseX = 800;
	g_mouseX  =g_mouseX-100;
	// alert ( g_mouseX);
}


var NS = (navigator.appName.indexOf("Netscape")!=-1);
var MS = (navigator.appName.indexOf("Microsoft")!=-1);
var VER=parseInt(navigator.appVersion);
var CSS=((MS&&VER>=4)||(NS&&VER>=5));
var NS4=(NS&&VER==4);
var NS6=(NS&&VER==5);
var IE4=(MS&&VER==4);
var IE5=(MS&&VER==5);
var ver4= (VER>=4&&(MS||NS));
var ver5=((MS&&VER>=5)||(NS&&VER>=5));

function Show(el) {
	if ( !CSS ) return;
	if ( IE4 ) {
		whichEl = eval("c" + el);
	} else {
		whichEl = document.getElementById("c" + el);
	}

// 	CloseAll(el);

	if (whichEl ) {
 	if ( whichEl.style.display != "block") {
			whichEl.style.display = "block";
	 	}  else {
	 	whichEl.style.display = "none";
	 	}
	}
}


function OpenAll() {
	var i;

	for (i=0;i<document.all.length;i++)
	if (document.all[i].id.search('/^c\d+$/')!=-1)
	alert(document.all[i].id);
}

function CloseAll(currrentEl) {

	for (i=0;i<ElementsInArray.length;i++) {
				el =  ElementsInArray[i] ;
		if ( currrentEl != ElementsInArray[i] ) {
		

		if ( !CSS ) return;
		if ( IE4 ) {
			whichEl = eval("c" + el);
		} else {
			whichEl = document.getElementById("c" + el);
		}

		if (whichEl ) {
		 	if ( whichEl.style.display != "block") {
		 	whichEl.style.display = "block";
		 }  else {
				whichEl.style.display = "none";
		 	}
		}
		}
	}

}

 

function OpenMyWin(url,width,height) {
	Fenster = window.open(url, "Zweitfenster", "width="+width+",height="+height);
	// Fenster.moveTo(screen.width - 250, screen.height - 350);
	Fenster.focus();
}



function OpenMyWinScrolling(url,width,height,theName) {
	Fenster = window.open(url, theName, "scrollbars=yes,width="+width+",height="+height);
	// Fenster.moveTo(screen.width - 250, screen.height - 350);
	Fenster.focus();
}




function textCounter(field,cntfield,maxlimit) {
	if (field.value.length > maxlimit) {
		field.value = field.value.substring(0, maxlimit);
	} 	else {
		cntfield.value = maxlimit - field.value.length;
	}
}

 
 
function is_numeric( value){
   var data1 = value;
   if ((isNaN(data1)) || (data1.length == 0))
    return false;
   else
  return true;
}