var agt=navigator.userAgent.toLowerCase(); 
//var ie	= (agt.indexOf("msie") != -1); 
//window.moveTo(0,0);
//if (ie) {
//	window.resizeTo(800,650);
//	} 
//else {
//	window.outerHeight = 650;
//	window.outerWidth = 800;
//	}
//window.focus()

// if there is a Text Placeholder on this page ...
 vText = document.getElementById("phText")
 if (vText != null) {
  // if the Text Placeholder is empty (or an empty paragraph)
  if (vText.innerHTML == "" || vText.innerHTML == "<P>&nbsp;</P>") {
   // on prod site go back to Summary, find and open attachment
   if (document.getElementById("cmsMainTable") == null) {
//? history.back ()
    vLegend = document.getElementById("phLegend")
    vAtt = vLegend.children[0]
    if (vAtt.tagName != "A") {vAtt=vAtt.children[0]}
    vHref = vAtt.href
//? vW = window.open (vHref,"_blank")
    location.href=vHref
//? vW.focus ()
   }
  }
 }

// if prod, and there is a redirect, that is not empty, that has a url, redirect
if (document.getElementById("cmsMainTable") == null) {
 vRedir = document.getElementById("redirect")
 if (vRedir != null) {
 vURL = vRedir.innerHTML
  if (vURL != "") {
   if (vURL.substr(0,4) == "http") {
    location.href = vURL
   } 
  } 
 }
}