
function openWin(myWin, breite, hoehe) {
   fenster = open(myWin, "UserVisitenkarte", "scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
   fenster.focus();
}


function delete_window(meldung,url) {
    if (confirm(meldung)) {
        window.location.href=url;
    }
}



function newFenst(myWin, titel, breite, hoehe) {
   fenster = open(myWin, titel, "scrollbars=yes,resizable=yes,status=no,toolbar=no,menubar=no,width="+breite+",height="+hoehe);
   fenster.focus();
}



function emoticon(text) {
	text = ' ' + text + ' ';
	if (opener.document.message.text.createTextRange && opener.document.message.text.caretPos) {
		var caretPos = opener.document.message.text.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		opener.document.message.text.focus();
	} else {
	opener.document.message.text.value  += text;
	opener.document.message.text.focus();
	}
}


function textinsert(text) {
	text = ' ' + text + ' ';
	if (document.message.text.createTextRange && document.message.text.caretPos) {
		var caretPos = document.message.text.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
		document.message.text.focus();
	} else {
	document.message.text.value  += text;
	document.message.text.focus();
	}
}


function sprungauswahl(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
