function popUp(location,w,h,val) {
   if (!w) { w = 440 };
   if (!h) { h = 430 };
   posX = (screen.availWidth / 2) - (w / 2)
   posY = ((screen.availHeight-100)/ 2) - (h / 2)
   winProps = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=" + w + ",height=" + h + ",left=" + posX + ",top=" + posY
   window.open(location,'popup'+val,winProps);
}
