
function definecommentsvalues(parentcommentsid,levelid,author)
{
alert(parentcommentsid);
document.getElementById('parentcommentsid').value=parentcommentsid;
document.getElementById('levelid').value=levelid;
document.getElementById('otvet').innerHTML='<p>Вы собираетесь ответить на комментарий пользователя '+author+' (<span style="cursor: pointer; cursor: hand;" class="blue" onClick="clearcommentsvalues();"><u>отменить</u></span>)</p>';
}

function clearcommentsvalues()
{
document.getElementById('otvet').innerHTML='';
document.getElementById('parentcommentsid').value=0;
document.getElementById('levelid').value=0;
}

function addBookmark(title,url)
{
if (navigator.appName == "Opera")
{
alert('Press CTRL-D to add this page to bookmarks');
}
else
{
if (window.sidebar)
{
window.sidebar.addPanel(title, url,""); 
}
else if( document.all )
{
window.external.AddFavorite( url, title);
}
else if( window.opera && window.print )
{
return true;
}
}
}


