//Popup + Highlightfield Funktion

function popup(loc, width, height, scrollbars, w_name) {
		if (!w_name) {
			w_name = "newWin";
		}
        var properties = "width=" + width + ",height=" + height + ",scrollbars=" + scrollbars;
        newWin = window.open(loc, w_name, properties);
}
var time = new Date();
random1 = (time.getTime());

function highlightField(field, swtch) {
	if (!swtch) {
		document.all['' + field + ''].style.background = '#5776E8';
	} else if (swtch == 1) {
		document.all['' + field + ''].style.background = '#5776E8';
	} else if (swtch == 2) {
		document.all['' + field + ''].style.background = '#5776E8';
	}
}
function changeCellStyle(obj, state) {
	if (state == "on") {
		if (document.all) {
			document.all[obj].style.backgroundColor = "#5776E8";
	} else {
			document.getElementById(obj).style.backgroundColor = "#5776E8";
		}
	} else {
		if (document.all) {
			document.all[obj].style.backgroundColor = "#5776E8";
	} else {
			document.getElementById(obj).style.backgroundColor = "#5776E8";
		}
	}
}