// Open the photo upload in a pop-up window.
function openPhotoUploadWindow(id,type) {
  popupWin = window.open("/imageadmin/index.cfm?id=" + id + "&type=" + type + '', "photoupload", "resizable=yes,scrollbars=yes,width=510,height=450")
  popupWin.focus()
}

// Open the photo thumbnail upload in a pop-up window.
function openPhotoThumbUploadWindow(id,type) {
  popupWin = window.open("/thumbadmin/index.cfm?id=" + id + "&type=" + type + '', "photothumbupload", "resizable=yes,scrollbars=no,width=510,height=450")
  popupWin.focus()
}

// Open the photo view in a pop-up window.
function openPhotoWindow(id,type) {
  popupWin = window.open("more_photos.cfm?id=" + id + "&type=" + type + '', "photo", "resizable=yes,scrollbars=yes,width=300,height=400")
  popupWin.focus()
}

// Open the photo edit form in a pop-up window.
function openPPhotoListWindow(id) {
  popupWin = window.open("adminpropphotolist.cfm?id=" + id , "photolist" + id, "resizable=yes,scrollbars=yes,width=340,height=500")
  popupWin.focus()
}

// Open the photo edit commercial form in a pop-up window.
function openCPhotoListWindow(id) {
  popupWin = window.open("admincommphotolist.cfm?id=" + id , "commphotolist" + id, "resizable=yes,scrollbars=yes,width=340,height=500")
  popupWin.focus()
}

// Confirm deletion of record
function confirmDelete() {
CheckVar = prompt('TO DELETE A RECORD YOU MUST\nENTER A PASSWORD!!',"");
if(CheckVar=="Monkey66")
    {return confirm("ARE YOU SURE...\n DELETE THIS RECORD?");}
else
    {return false;}
}

// Confirm deletion of record
function confirmRecordDelete() {
  return confirm("Are you sure you want to delete?");
}
