function PopUp(url, name, h, w, s){
leftPos = 0

  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=1");
    popup.focus()
  }
}

function PopUpNoResize(url, name, h, w, s){
leftPos = 0

  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=0");
    popup.focus()
  }
}

function PopUpElevation(url, name, h, w, s){
leftPos = 0
  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=1");
    popup.focus()
  }
}

function PopUpFloorPlan(url, name, h, w, s){
leftPos = 0
  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=1");
    popup.focus()
  }
}

function PopUpLotMap(url, name, h, w, s){
leftPos = 0
  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=1");
    popup.focus()
  }
}


function PopUpLarger(url, name, h, w, s){
leftPos = 0
if (screen){
//needed to add a little more to offset the window a little from the edge
leftPos = screen.width-407
}
  if (name.document) {
    name.document.location.href = url;
  }
  else {
    popup = window.open(url,name,"height="+h+",width="+w+",scrollbars="+s+",screenX=0,screenY=0,left="+leftPos+",top=0,resizable=0");
    popup.focus()
  }
}
