// --- mouseover-functions for browsers with dom-support ---
function bg(obj, color) {
	obj.style.backgroundColor = color;
}

function mOver(obj){
	bg(obj, over);
	obj.style.cursor = "pointer";
}

function mOut(obj){
	bg(obj, out);
}
// --- end mouseover-functions ---


// --- function geturl ---
function getURL(){
	var args = getURL.arguments;
	if (args.length == 1){
		this.location = args[0];
	}else if (args.length > 1){
		for (i=0; i<(args.length-1); i+=2){
			if (args[i+1] == "_blank")
				window.open(args[i]);
	  		else if (typeof(eval(args[i+1])) == "object")
				eval(args[i+1]+".location='"+args[i]+"'");
			else
				alert("Frame ist ungültig oder existiert nicht.");
		}
	}else{
		alert("ungültige Anzahl an Argumenten beim Aufruf der Funktion \"getURL\"");
	}
}

// --- check if frames are valid  --- 
function checkFrames(){
	var host = "http://" + window.location.host;
	var url = document.URL.substring(host.length + 1, document.URL.length);
	url = escape(url);
	if (arguments.length > 0) url = (arguments[0] != '') ? arguments[0] : url;
	if (top.frames.length < 2) {
		location.replace(host + '/index.asp?mfID=' + url);
	}
}
