function CI(who,what)
{
  whoE="m"+who
  obj=document.getElementById(whoE)

  path='img/'
  if (what)
  {
    obj.src=path+'mpoint-over.gif';
  }
  else
  {
    obj.src=path+'mpoint.gif';
  };
};

function CIM(who,what)
{
  whoE="m2"+who;
    
  obj=document.getElementById(whoE)
    
  path='img/menu/';
  if (what)
  {
    obj.src=path+who+'-over.gif';
  }
  else
  {
    obj.src=path+who+'.gif';
  };
  
};


function getObj(Who)
{
  obj=document.getElementById(Who);
  return obj;
};

function SameAddr(Who)
{
/*
 Who:
 1 - Billing Address
 2 - Address of Subject Building

*/

  if (Who==1)
  {
    checkName='bsame';
    cAddrName='baddr'
    cCityName='bcity'
    cStateName='bstate'
    cZipName='bzip'
  };
  if (Who==2)
  {
    checkName='ssame';
    cAddrName='saddr'
    cCityName='scity'
    cStateName='sstate'
    cZipName='szip'
  }


  check=getObj(checkName);
  
  cAddr=getObj(cAddrName);
  cCity=getObj(cCityName);
  cState=getObj(cStateName);
  cZip=getObj(cZipName);

  if (check.checked)
  {
    mAddr=getObj('addr');
    mCity=getObj('city');
    mState=getObj('state');
    mZip=getObj('Zip');

    cAddr.value=mAddr.value
    cCity.value=mCity.value
    cState.value=mState.value;
    cZip.value=mZip.value
  }
  else
  {
    cAddr.value="";
    cCity.value="";
    cState.value="";
    cZip.value="";
  }
  ;

};
