function openWin(page, wintype) {
  if (wintype == "DT") {
	breit = "560"; hoch = "520"; scrleist = "yes";
	breit = "780"; hoch = "580"; scrleist = "yes";
	}
  if (wintype == "PB") {
	breit = "320"; hoch = "280"; scrleist = "no";
	}
  if (wintype == "SM") {
	breit = "450"; hoch = "200"; scrleist = "no";
	}
  if (wintype == "OW1") {
	breit = "440"; hoch = "270"; scrleist = "yes";
	}
  if (wintype == "OW2") {
	breit = "310"; hoch = "320"; scrleist = "no";
	}
  popup = window.open(page,'popupwin1'+wintype,'toolbar=no,location=no,directories=no,status=no,scrollbars='+scrleist+',resizable=yes,copyhistory=no,width='+breit+',height='+hoch);
  if (popup.opener == null) popup.opener = window;
  if (((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) >= 3)) || ((navigator.appName == 'Microsoft Internet Explorer') && (parseInt(navigator.appVersion) >= 4))) {
  popup.focus();
  }
}

function waitCursor() {
	changeCursor('wait');
}

function autoCursor() {
	changeCursor('auto');
}

function changeCursor(tp) {
	if (tp == "wait") 	setVisibility("wait", 1);
	else 				setVisibility("wait", 0);
	document.body.style.cursor = tp;
//	infoinit();
}

function setVisibility(obj, visibility) {
	if (visibility == 1) {
		document.getElementById(obj).style.visibility = "visible";
	} else {
		document.getElementById(obj).style.visibility = "hidden";
	}
}

