var ID = null;
var vorN = "NULL";
var myObject,preloadArray;
var imPrfx="~";

function onof(L,N,f) {
	if (N == 1 && f == 1){ L.className = "onM1";}
	else if (N == 2 && f == 1) {L.classname="onM" ;}
		else if (N == 1 && f == 0){L.className = "ofM1";}
			else if (N == 2 && f == 0) {L.classname="ofM" ;}
}

function f_tog(n,o){
var aN = document.getElementsByTagName("select");
var aL = aN.length;
	for(i=0; i < aL; i ++){
	       c = aN[i].id.charAt(n);
			if (n == c && o == 0) {aN[i].style.visibility = "hidden";}
			else if (n==c && o==1) {aN[i].style.visibility = "visible";}
	}
}

function mm_ct(name,o) {
	if (document.getElementById) {
		nL=name.length;
		nC = name.charAt(nL-1);
		var boxN = document.getElementById(name);


		var vorboxN = document.getElementById(vorN);

		if (o == 1) {
			if (vorboxN){
			var pnL=vorboxN.id.length;
			var pnC = vorboxN.id.charAt(pnL-1);
			vorboxN.style.visibility = "hidden";
			f_tog(pnC,1);
			}
		f_tog(nC,0);
		boxN.style.visibility = "visible";
		vorN = name;
		} else if (o == 0) {

			f_tog(nC,1);
			if (boxN) {
			boxN.style.visibility = "hidden";
			}
		}
	}
}

function go(urLL,target,w,h) {
	if (target == 1) {
		if (w>0 && h>0) {
			window.open(urLL,'AutoWeekpopup','toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width='+w+',height='+h+',left=0,top=0');
		} else {
			window.open(urLL,'AutoWeekpopup','toolbar=no,location=no,resizable=no,status=no,scrollbars=no,menubar=no,width=794,height=550,left=0,top=0');
		}
	} else {
		window.location = urLL;
	}
}
