// JavaScript Document
function confirmDelUsr(Url) {
  if (confirm("Are you sure you want to delete user?")) {
    document.location = Url;
  }
};
function confirmDelProperty(Url) {
  if (confirm("Are you sure you want to delete property?")) {
    document.location = Url;
  }
};

loading = new Image();
loading.src = '/images/loading.gif';
blank = new Image();
blank.src = '/images/blank.gif';

function openCenteredWindow(url, height, width, name, parms) {
	if (height <= 1) { height = Math.floor(screen.height * height); }
   if (width <= 1) { width = Math.floor(screen.width * width); }
   
	var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
   return win;
}