function getCookie2(name)
{
var dc = document.cookie;
var prefix = name + "=";
var begin = dc.indexOf("; " + prefix);
if (begin == -1) {
begin = dc.indexOf(prefix);
if (begin != 0) return null;
} else {
begin += 2;
}
var end = document.cookie.indexOf(";", begin);
if (end == -1) {
end = dc.length;
}
return unescape(dc.substring(begin + prefix.length, end));
}
var smimid = getCookie2("smimid");
var PURGE = getCookie2("PURGE");
if(2==0)
{
var topic_owner = "52b4d7e9-c19d-4469-aeee-cfe87fc9d557";
}
if(PURGE==1 || PURGE==2)
{
var obj = document.getElementById("bt_edit_2");
obj.style.display = 'none';
var obj = document.getElementById("bt_delete_2");
obj.style.display = 'none';
$(document).ready(function() {
var obj = document.getElementById("x_class1_2");
obj.style.display = '';
var obj = document.getElementById("x_class2_2");
obj.style.display = '';
});
}
else if(smimid==topic_owner)
{
var obj = document.getElementById("bt_edit_2");
obj.style.display = '';
var obj = document.getElementById("bt_delete_2");
obj.style.display = '';
}
else if(smimid=="52b4d7e9-c19d-4469-aeee-cfe87fc9d557")
{
var obj = document.getElementById("bt_edit_2");
obj.style.display = '';
var obj = document.getElementById("bt_delete_2");
obj.style.display = '';
}
$(document).ready(function() {
var obj = document.getElementById("x_class3_2");
obj.style.display = '';
});