function get_obj(id_name) {
				 if (document.getElementById) {
				    return document.getElementById(id_name);
				 } else if (document.all) {
				    return document.all[id_name];
				 } else {
				    return null;  
				 }
}

function fixPNG(element)
{
  if (/MSIE (5\.5|6).+Win/.test(navigator.userAgent))
  {
    var src, w, h;
	
	src = element.src;
	w = element.width;
	h = element.height;
	//var imgClass = (element.className) ? "class='" + element.className + "' " : "";
	//var ic = element.className.match(/png\s(.+)/i);
    element.src = "i/trans.gif"; 
	element.width = w;
	element.height = h;

	if (src) {
		element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "',sizingMethod='crop')";
	}
	
  }
}

function popupWindow(url, wd, ht)
{
  if(!wd) wd = 500;
  if(!ht) ht = 500;
  w = window.open(url,'','width='+wd+',height='+ht+', status=no, menubar=no,left='+String((screen.width-wd)/2)+',top='+String((screen.height-ht)/2));
  //, resizable=no, scrollbars=no
  w.focus();
  return w;
}

