﻿function openWindow(pg, w, h) {
   newWindow = window.open(pg,"newWindow", "width=" + w + ", height=" + h + ", resizable=yes, scrollbars=yes, toolbar=no, left=337, top=264");
   newWindow.focus();
   //newWindow=window.open(pg,'name','height=500,width=400,left=100, top=100,resizable=no,scrollbars=yes,toolbar=no,status=no');
   //newWindow.moveTo((screen.width - w) / 2, (screen.height - h) / 2);
}

function calendarPicker(strField) {
      window.open('DatePicker.aspx?field=' + strField, 'calendarPopup', 'width=250,height=210,resizable=no');
}
      
function confirmDelete() {
  if (confirm("WARNING! You are about to delete important data from your DebtFREE.com record. If you're unsure about performing this action, click on 'Cancel' below. If you are sure about this action, click on 'OK' below. Confirming the deletion of this data means you understand that you are solely responsible for the loss of data.")) {
    //document.location = delUrl;
    //alert('true');
    //return true;
  }
  else
  {
   //alert('false');
   return false;
  }
}

function confirmSplit(id) {
  if (confirm("WARNING! Your original Category and amount will be deleted. If you're unsure about performing this action, click on 'Cancel' below. If you are sure about this action, click on 'OK' below. Confirming the deletion of this data means you understand that you are solely responsible for the loss of data.")) {
    location.href = "splitexpenses.aspx?action=complete&id=" + id;
    return true;
  }
  else
  {
   return false;
  }
}        
   

