');}catch(e){/*nojqery*/ return true;}
if (typeof updateurl === 'undefined') { updateurl = './ajax/checkncacheNewMessage.php';}
$('#messagetext').val('');
$('.autosaveinfo,#autosaveinfo,#autosave_info,.autosave_info').remove();
data = {"clear":1,"thread":t,"forum":f};
$.ajax({url : updateurl ,processData: true,contentType: "application/x-www-form-urlencoded; charset:utf-8",data: data,dataType:'json',type : "POST",
success: function(res){if(res.cleared){/*done*/}}
});
$('#messagetext').focus();
}
function clearPNAutosave(){
try{$('
');}catch(e){/*nojqery*/ return true;}
if (typeof updateurl === 'undefined') { updateurl = './ajax/checkncacheNewMessage.php';}
$('#messagetext').val('');
$('.autosaveinfo,#autosaveinfo,#autosave_info,.autosave_info').remove();
var recs = [];
var temprecs =$(document.forms.sendmail).find('input[name="name[]"]');
$.each(temprecs,function(){
var curval = $(this).val();
if(curval && curval.length){recs.push(curval)}
});
if(!recs.length){recs=0;}
data = {"clear":1,"thread":recs,"forum":"pn"};
$.ajax({url : updateurl ,processData: true,contentType: "application/x-www-form-urlencoded; charset:utf-8",data: data,dataType:'json',type : "POST",
success: function(res){if(res.cleared){/*done*/}}
});
$('#messagetext').focus();
}
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function(obj, start) {
for (var i = (start || 0), j = this.length; i < j; i++) {
if (this[i] === obj) { return i; }
}
return -1;
}
}