function openImage(imageName,imageWidth,imageHeight,posLeft,posTop,txtTitle) 
{  
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+txtTitle+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<div style="text-align:center"><img src=\"'+imageName+'\" onclick=\"javascript:window.close();\" alt=\"zum Schliesen ins Bild klicken...\" title=\"zum Schließen ins Bild klicken...\"></div>');
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}


function faerbeMouseOver(pId, pFarbe)
{
	document.getElementById(pId).bgColor = pFarbe;
}

function faerbeMouseOut(pId, pFarbe)
{
	document.getElementById(pId).bgColor = pFarbe;
}

function geheZuURL(pURL)
{
	document.getElementById("main").src = pURL;
}

function geheZuURL2(pURL)
{
        parent.parent.window.document.getElementById("main").src = pURL
}

function wechsleBild(BildPfad)
{
	var BigBild = (document.getElementById)?	document.getElementById('bigpic'):
							document.images['bigpic'];
	BigBild.src  = BildPfad;
}	

function AddText(text) {
	if (document.GEBForm.txtBeschreibung.createTextRange && document.GEBForm.txtBeschreibung.caretPos) {      
		var caretPos = document.GEBForm.txtBeschreibung.caretPos;      
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ?
		text + ' ' : text;
	}
	else document.GEBForm.txtBeschreibung.value += text;
	document.GEBForm.txtBeschreibung.focus(caretPos)
}

function underline() {
	AddTxt="[u][/u]";
	AddText(AddTxt);
}

function bold() {
	AddTxt="[b][/b]";
	AddText(AddTxt);
}

function italicize() {
	AddTxt="[i][/i]";
	AddText(AddTxt);
}
