function sbdelete(id) {
		$.post("/boxen/shoutbox/sbdelete.php", { sendid: id} );
		
	}
	
	
function load_js(){
	load_sb();
	move_chat();	
}
	
function fnDoInit()
 {
 if(document.readyState != "complete")
 {
 window.setTimeout(load_sb, 100);
 return false;
 }
 window.setTimeout(load_sb, 100);
 }
 
	function shout(){
    			// Textfeld auslesen :
    			var msg = document.getElementById('sbtext').value;
    			// Text checken :
    			if(!check(msg)){ 
					return false; 
				}
    			// An die PHP-Datei uebermitteln :
    			$.post("/boxen/shoutbox/shoutbox_query.php", { text: msg} );
    			document.getElementById('sbtext').value = "";
			}
			
			function check(text){
    			if(text == ""){
        			alert("Bitte etwas eingeben!");
        			return false;
    			}
    			return true;
			}
			
			function load_sb(){
					$('#shoutbox').load('/boxen/shoutbox/shoutbox.php');
				}
				
				

			
			window.onload = load_sb();
