function visualClick(vr, src, targetVars) {
  var popup = ((targetVars!=null) && (targetVars.length>0))? "_blank" : "_self";
  if (targetVars == '*') {
    targetVars = '';
  }
  var w = window.open('/ge/ge/bdm/bannerClick?src='+src+'&url='+window.document.location.pathname+'&target='+escape(vr), popup, targetVars);
  if (w) w.focus();
}

function popupPage(page,target,width,height,scrollbar,name) {
 if (!width) width=420;
 if (!height) height=400;
 if (!scrollbar) scrollbar=0;
 var w = window.open(page,target,'width='+width+',height='+height+',location=no,menubar=no,resizable=yes,scrollbars='+scrollbar+',status=no,titlebar=no,toolbar=no');
 if (w) w.focus();
 if (name) eval(name+'=w; setPopupParent('+name+',\''+name+'\');');
 return w;
}

function setPopupParent(w,name) {
  if (!w || w.closed) return;
  if (!w.setPopupParent)
    window.setTimeout('setPopupParent('+name+',\''+name+'\')',1000);
  else
    w.popupParent = this;
}

function changeImg(obj, name) {
	var src = obj.src;
	src = src.substring(0, src.lastIndexOf('/') + 1);
	obj.src = src + name + '.gif';
}