var isIe;
function checkNav(){	isIe=(document.all) ? true : false;		}
checkNav();
function mouse_x(e){	return (isIe==true) ? window.event.clientX : e.pageX;	}
function mouse_y(e){	return (isIe==true) ? window.event.clientY : e.pageY;	}
function getElement(e){	return (isIe==true) ? window.event.srcElement : e.target;	}
function getParentElementId(e){	return (isIe==true) ? window.event.srcElement.parentElement.id : e.parentElement.id;	}
function getElementId(e){	return (isIe==true) ? window.event.srcElement.id : e.target.id;	}
function getElementName(e){
	name = (isIe==true) ? window.event.srcElement.name : e.target.name;	
	return (name=="undefined") ? "" : name;
}
function getE(id){
	var e=null;
	e=document.getElementById(id);
	return (!e) ? document.getElementsByName(id)[0] : e; 
}
function setText(id,text){
	var e=getE(id);
	if(e==null)return;
	if(e.getAttribute("value") != null)e.value=text;
	else e.innerHTML=text;	
}
function getText(id){
	e=getE(id);
	if(e==null)return;
	if(e.getAttribute("value") != null)return e.value;
	else return e.innerHTML;	
}

function getImgRahmen(s,c){
	t="<center><TABLE><TR><TD class=" + c + " >";
	t+="<IMG src='" + s +"'></TD></TR></TABLE>";
	return t;
}