function ScrollTo(id){

  /* Zu zufaelliger Position scrollen */

  a = 1 + 2469*(Math.random());
  a = Math.round(a);
  
  document.getElementById(id).scrollLeft=a

}

function SetSize(id){
	
	if (window.XMLHttpRequest) {
		// code for IE7+, Firefox, Chrome, Opera, Safari
  		xmlhttp=new XMLHttpRequest();
  	} else {
  		// code for IE6, IE5
  		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  	}
	xmlhttp.onreadystatechange=function() {
  		if (xmlhttp.readyState==4 && xmlhttp.status==200) {
    			document.getElementById(id).style.width = xmlhttp.responseText;
    		}
  	}
	xmlhttp.open("POST","fileadmin/scripts/helper.handleDiv.php",true);
	xmlhttp.send();	
}

