// user's functions

function isIE5() { return (navigator.userAgent.indexOf("MSIE 5") > -1); }
function isIE6() { return ((navigator.userAgent.indexOf("MSIE 6") > -1) && (navigator.userAgent.indexOf("Opera") == -1)); }
function isIE() { return (isIE5() || isIE6());}

function fixpng()
{
 for (var i = 0; i < document.images.length; i++)
 {
  var img = document.images[i];
  imgSrc = img.src;
  if (imgSrc.substr(imgSrc.length-3).toLowerCase() == "png")
  {
   var w, h;
   w = img.width, h = img.height;
   img.src = "_mod_files/ce_images/spacer.gif";
   img.width = w, img.height = h;
   img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'" + imgSrc + "\', sizingMethod='scale');";
  }
 }
}

var isIE = isIE();
if (isIE) window.attachEvent("onload", fixpng); 







function show(name)

{
open(name,'_blank','left=250,top=100,scrollbars=yes,toolbar=no,directories=no,menubar=no,status=no,resizable=no,width=800,height=600');
}








	function autoResize(id){
    var newheight;

    if (window.opera && !document.mimeType && document.all && document.getElementById) {
        newheight = document.getElementById(id).contentWindow.document.body.offsetHeight;
    } else if (document.getElementById) {
        newheight = document.getElementById(id).contentWindow.document.body.scrollHeight;
    }

    document.getElementById(id).height = (newheight + 16) + "px";
	}
