function openWindow (url, name, width, height, features, centering) { var feature = (width ? ("width=" + width) : "") + (height ? (",height=" + height) : ""); var featureNames = ["menubar", "toolbar", "location", "scrollbars", "status", "resizable"]; if (features) { for (var i = 0; i < featureNames.length; i++) feature += "," + featureNames [i] + "=" + features.charAt (i); } if (centering) { var x = (screen.width / 2) - (width / 2); var y = (screen.height / 2) - (height / 2); feature += ",left=" + x + ",top=" + y + ",screenX=" + x + ",screenY=" + y; } return window.open (url, name, feature); }

function openPopUpWindow (url) {
	openWindow (url, "PopUpWindow", "600" , "400" , "000111");
}

function openfotterpopupWindow (url, id, w, h, features) { var s = (w ? ("width=" + w) : "") + (h ? (",height=" + h) : ""); var ss = new Array ("menubar", "toolbar", "location", "scrollbars", "status", "resizable"); if (features) for (i in ss) s += "," + ss [i] + "=" + features.charAt (i);var o = window.open (url, id, s); o.focus (); return o; }

function closeWindow () { var a = arguments; var r = true; if (a.length) for (var i = 0; i < a.length; i++) { var o = a [i]; if (o) o.close (); else r = false; } else top.close (); return r; }

function reloadPage(e) { self.location.reload(); }
