function height(element,target){if(parent.document.getElementById(target)){parent.document.getElementById(target).style.height=parent.document.getElementById(element).offsetHeight;}}
function szukaj(){if($("keyword").value){if($("glitery").checked==true){window.location.replace('szukaj,'+$("keyword").value);}
else if($("profile").checked==true){window.location.replace('szukaj,'+$("keyword").value);}}}
function comments(id,type){var req=mint.Request();req.Set("method","post");req.AddParam("id",id);req.AddParam("type",type);req.Send("comments.php","comments");}
function changeColorComments(s){var color=s.options[s.selectedIndex].value;s.style.backgroundColor=color;$("colored").style.color=color;$("colorval").value=color;}
function addComment(){var req=mint.Request();req.Set("resetForm",true);req.OnSuccess=function(){$("comments").innerHTML=this.responseText+$("comments").innerHTML;}
req.SendForm("commentForm");}
function selecturl(s){var gourl=s.options[s.selectedIndex].value;window.location.replace('kategoria,'+gourl);}
function highlight(id,out){if(out==false){for(i=1;i<=id;i++){if($("g"+i).name!='on'){$("g"+i).name='on';$("g"+i).className='rankingstarON';}}}
else{for(i=1;i<=id;i++){if($("g"+i).name!='off'){$("g"+i).name='off';$("g"+i).className='rankingstarOFF';}}}}
function vote(vote,owner_id,id){$("vote").innerHTML='proszę czekać...';$("vote2").innerHTML='';var req=mint.Request();req.Set("method","post");req.AddParam("vote",vote);req.AddParam("owner_id",owner_id);req.AddParam('id',id);req.Send("voteImg.php");req.OnSuccess=function(){$("vote").innerHTML=this.responseText;}}
function extendAdd(){if($('addComment').style.display=='none'){$('addComment').style.display='';}
else{$('addComment').style.display='none';}}