function imageSwap(theImage, theSrc){
  var objStr,obj;
 
  if(document.images){
        if (typeof(theImage) == 'string') {
      objStr = 'document.' + theImage;
      obj = eval(objStr);
      obj.src = theSrc;
    } else if ((typeof(theImage) == 'object') && theImage && theImage.src) {
      theImage.src = theSrc;
    }
  }
}

function popitup(url, width, height)
{
        newwindow=window.open(url,'name', 'width='+width +',height='+height + ', scrollbars=yes');
        if (window.focus) {newwindow.focus()}
        return false;
}
