  	var iInter;
  	var iObj;
  	var iNr;

      window.onload = init;
      
      function init(){
      }	
      
      function prepareKennwortField(){
        document.getElementById('txt_kennwortplain').style.display = "none";
        document.getElementById('txt_kennwort').style.display = "inline";
        document.getElementById('txt_kennwort').focus();
      }
 
    function cellcol(target, bgc, borderc ){
 	    if (bgc != ""){
		    target.style.backgroundColor = bgc;
	    }
	    if (borderc != ""){
		    target.style.borderColor = borderc;
	    }
    }
    
    //function showthumb(userid,picid){
//    	window.open('getthumb.php?userid=' + userid + '&amp;bildid=' + picid);
    //};

  	function thumber(id,anz){
      iObj.src=encodeURI('getvthumb.php?videoid=' + id + "&" + 'nr=' + iNr);
      iNr++;
      if (iNr == anz) iNr = 1;
    };

  	function thumbover(obj,id,anz){
  	iObj = obj;
    	iNr = 2;
    	iInter = window.setInterval("thumber(" + id + "," + anz + ")",1000);
      thumber(id,anz);
    };

  	function thumbout(obj){
      window.clearInterval(iInter);
    };
