        function show_hide(id) {
          what = document.getElementById(id);
          if (what.style.display == 'none') {
            what.style.display = 'inline';
          } else {
            what.style.display = 'none';
          }
        }
  
        function blankwindow(path) {
        	LeftPosition = (screen.width) ? (screen.width-850)/2 : 0;
        	TopPosition = (screen.height) ? (screen.height-600)/2 : 0;  
        	open(path, '', 'height=600,width=850,scrollbars=yes,resizable,top='+TopPosition+',left='+LeftPosition);
        }
        
        function picture(path) {
        	LeftPosition = (screen.width) ? (screen.width-850)/2 : 0;
        	TopPosition = (screen.height) ? (screen.height-600)/2 : 0;  
          varpic = open('', '', 'height=600,width=850,scrollbars=yes,resizable,top='+TopPosition+',left='+LeftPosition);
          varpic.document.open();
          with(varpic.document) {
            write('<html><head><title>.:ASG - Bildergalerie</title></head>');
            write('<body><img src="'+path+'" /></body>');
            write('</html>');
	    close();        	        	
	  }
        }
        
        function emoticon(text) {
        	var txtarea = document.form.message;
        	text = ' ' + text + ' ';
        	if (txtarea.createTextRange && txtarea.caretPos) {
        		var caretPos = txtarea.caretPos;
        		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
        		txtarea.focus();
        	} else {
        		txtarea.value  += text;
        		txtarea.focus();
        	}
        }        
				
				function mailer(a, b, c) {
					window.open("mailto:" + a + "@" + b + "." + c); 
				}
