var currentid;
function comment_show(tag_id,dept_id,pf_id,pix_id,message_id,timestamp){
if(pf_id!=currentid){
coords = Position.cumulativeOffset($('comment_tag_'+ tag_id));
$('comment_overlay').style.left=coords[0]+'px';
$('comment_overlay').style.top=coords[1]+'px';
$('comment_overlay').innerHTML='
Loading...';
Element.show('comment_overlay');
var thisAjax = new Ajax.Updater('comment_overlay',"/comment_form.asp?dept_id=" + dept_id + "&pf_id=" + pf_id + "&pix_id=" + pix_id + "&message_id=" + message_id + "&dt=" + timestamp,{method: 'get', parameters: "&dt2=" + timestamp});
currentid=pf_id;
} else {
Element.hide('comment_overlay');
currentid='';
}
}
function comment_show_adv(tag_id,item_id,item_type,message_id,target,timestamp){
if(item_id!=currentid){
coords = Position.cumulativeOffset($('comment_tag_'+ tag_id));
$('comment_overlay').style.left=coords[0]+'px';
$('comment_overlay').style.top=coords[1]+'px';
$('comment_overlay').innerHTML='
Loading...';
Element.show('comment_overlay');
var thisAjax = new Ajax.Updater('comment_overlay',"/comment_form.asp?item_id=" + item_id + "&item_type=" + item_type + "&target=" + escape(target) + "&message_id=" + message_id + "&dt=" + timestamp,{method: 'get', parameters: "&dt2=" + timestamp});
currentid=item_id;
} else {
Element.hide('comment_overlay');
currentid='';
}
}
function comment_hide(){
Element.hide('comment_overlay');
currentid='';
}