Sets the background color of a non-current item's form
var itm = document.thisItem;
var inn = itm.getInnovator();
// if is_current property exists in the cache, use it
var isCurr = itm.getProperty("is_current","");
// else, retrieve is_current from the database
if(isCurr === ""){
itm = inn.getItemById(itm.getID());
isCurr = itm.getProperty("is_current", "");
}
// set form background color if the item is not current
var formBody = document.getElementsByTagName("body")[0];
if (isCurr == "0") {
formBody.style.backgroundColor = "#EFEFEF";
}