// -------------------------------------------------------------------------------
// JavaScript Functions
// Copyright Property Designers Inc.
// -------------------------------------------------------------------------------

function comma(num) {
  return num.toString().replace( /([0-9]+?)(?=(?:[0-9]{3})+$)/g , '$1,' );
}

function ViewArea(obj,Area){
  if(obj.checked){
    document.getElementById(Area).style.display = 'block';
  } else {
    document.getElementById(Area).style.display = 'none';
  }
}


function imageSwap (path,name,ext){
  document.images[name].src = path + "/" + name + ext ;
}


function imageSwapID (path,name,ext,id){
  document.images[id].src = path + "/" + name + ext ;
}


function popup(file,name,width,height){
  var control = 'width=' + width + ',height=' + height + ',scrollbars=yes,resizable=yes,toolbar=yes' ;
  sub = window.open(file,name,control) ;
  sub.focus();

}


function popup_nobar(file,name,width,height){
  var control = 'width=' + width + ',height=' + height + ',scrollbars=no,resizable=no,toolbar=no' ;
  sub = window.open(file,name,control) ;
  sub.focus();

}


function SubClose(){
  window.top.close();
}

// ------------------------------------------------------------ End Script File --

