
function PopIt(label, msg)
{
  // Set up Page Colors & Table
  var s1 ="<TITLE>'SV Eintrach Hohenwarthe e.V.' - Bildbetrachter</TITLE>" +
	        "<style type=text/css>" +
    			"body {scrollbar-arrow-color : white; scrollbar-base-color: darkred; }" +
          "</style>" +
          "<BODY BGCOLOR='red' onBlur='self.focus()'><TABLE BORDER=0><TR>" +
          "<TD WIDTH=90% HEIGHT=90 VALIGN=TOP ALIGN=LEFT>"+
          "<FONT SIZE=4>"
	var s2 ="<FONT COLOR='white'><B>"+label+"</B></FONT><P>"
  var s3 ="</TD><TD WIDTH=10%> </TD></TR><TR><TD> </TD>"+
          "<TD VALIGN=TOP ALIGN=RIGHT>"+
          "</TD></TR></TABLE></BODY>"

  popup = window.open("","popDialog","width=800,height=600,scrollbars=yes")
  popup.document.write(s1+s2+msg+s3)
  popup.document.close()
}


<!--++++++++++++++++++++++++START SMILIES DURCH ANKLICKEN IN TEXT EINFÜGEN++++++++++++++++++++++++++++++++-->
function emoticon(text) 
{
	
	text = '' + text + ' ';
	if (document.post.message.createTextRange && document.post.message.caretPos) 
	{
		var caretPos = document.post.message.caretPos;
		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ': text;
		document.post.message.focus();
	} 
	else 
	{
	document.post.message.value  += text;
	document.post.message.focus();
	}
}

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

}

<!--++++++++++++++++++++++++COOKIES++++++++++++++++++++++++++++++++-->
function getCookie(name){
 var cname = name + "=";
 var dc = document.cookie;
     if (dc.length > 0) {
     begin = dc.indexOf(cname);
         if (begin != -1) {
         begin += cname.length;
         end = dc.indexOf(";", begin);
             if (end == -1) end = dc.length;
             return unescape(dc.substring(begin, end));
         }
     }
 return null;
 }

 function setCookie(name, value) {
 var now = new Date();
 var then = new Date(now.getTime() + 31536000000);
 document.cookie = name + "=" + escape(value) + "; expires=" + then.toGMTString() + "; path=/";
 }


 function getValue(element) {
 var value = getCookie(element.name);
     if (value != null) element.value = value;
 }


 function setValue(element) {
 setCookie(element.name, element.value);
 }
