/* Ein Element nach ID anzeigen */

function showElement(id) {
	e = crossGetObject(id);
	if (e == null) return;
	crossShowObject(e);
}
/* Ein Element nach ID verbergen */
function hideElement(id) {
	e = crossGetObject(id);
	if (e == null) return;
	crossHideObject(e);
}

function switchDisplay(id,id2) {
	e = crossGetObject(id);
	e2= crossGetObject(id2);
	if (e == null) {
		return;
	}
	if (e.style.display=='none') {
		e.style.display='block';
		if (e2 == null) {
			return;
		}
		e2.value='1';	
	} else {
		e.style.display='none';	
		if (e2 == null) {
			return;
		}
		e2.value='';	
	}
}
function x_popup_image(a,b,h){
 	window.open(a,"x","width="+b+",height="+h)
}
function popup_image(a,b,h){
 	window.open(a,"x","width="+b+",height="+h)
}

function OpenWindow(seite,breite,hoehe,res,scroll,winname)
{
  //-- CloseWindow();
  var text = "width=" + breite + ",height=" + hoehe + ",status=no,resizable=" + res + ",scrollbars=" + scroll + ",menubar=no,toolbar=no";
  isrzw = window.open(seite, winname, text);
  isrzw.focus();
  return;
}

