function  zm_styl(obj,st){
    obj.className=st;
}
function pause(numberMillis) { 
  var now = new Date(); 
  var exitTime = now.getTime() + numberMillis; 
  while (true) { 
    now = new Date(); 
    if (now.getTime() > exitTime) 
   return; 
  } 
}
function resize(w,h){
	window.resizeTo(w,h);
}
function selectAll(objname,cval){
	var a=document.getElementsByName(objname);
    for (x=0;x<a.length;x++)
		a[x].checked=cval;
}

function addPlaylist(id){
	var wPlayer = window.open(location.href.substring(0,location.href.lastIndexOf('szukaj'))+'index.php?mod=playlist_add&id='+id, 'Odtwarzacz', 'menubar=no, top=1, toolbar=no, location=no, scrollbars=yes, resizable=no, status=no, width=335, height=420');	
	wPlayer.focus() 
}

function clearField(fld,defval){
	if (fld.value == defval)
		fld.value = '';
}

function hidePanel(pname){
	document.getElementById(pname).style.display="none";
	document.getElementById(pname).style.visibility="hidden"; 
}
