
function CreateFlash(DivID,content)
{
  var d = document.getElementById(DivID);
  d.innerHTML = content;
}


// IMP-Functions for Rainbow DotNet 2

function changePic(name,newpic){
	if (document.images) //mouseover supported
	{
	  if (document.images[name])
		document.images[name].src = newpic;
	}
}

function showElement(elementid){
	if (document.getElementById(elementid))
	{
	 document.getElementById(elementid).style.visibility = "visible";
	}
}
function hideElement(elementid){
	if (document.getElementById(elementid))
	{
	 document.getElementById(elementid).style.visibility = "hidden";
	}
}



function popup(URL,popupname,b,h,scrollbars) {
	var PopUpName = popupname || 'PopUp';
	var breite = b || 410;
	var hoehe = h || 450;
	var ScrollBars = scrollbars || 'auto';
	var xPos = (screen.availWidth - breite) / 2
	var yPos = (screen.availHeight - hoehe ) / 2
//document.write( url, popupname, b, h,scrollbars)
	var theWindow = window.open(URL,PopUpName,'width='+breite+',height='+hoehe+',scrollbars='+ScrollBars+',toolbar=no,menubar=no,screenX='+xPos+',screenY='+yPos+',left='+xPos+',top='+yPos);
  theWindow.focus();

}

function newbrowser(URL,popupname) {
	var PopUpName = popupname || 'PopUp';
	var theWindow = window.open(URL,PopUpName);
  theWindow.focus();

}

// end IMP-Functions for Rainbow DotNet 2


