//**** OpenshowModal_noReload(URL,nW,nH) ****//
function OpenshowModal_noReload(URL,nW,nH){
window.showModalDialog('EditIframe.asp?'+URL,window,"status:0;dialogWidth:"+nW+"px;dialogHeight:"+nH+"px;help:0;scroll:0");
}
//**** openshowModal(URL,nW,nH) ****//
function openshowModal(URL,nW,nH){
VReturnValue=window.showModalDialog('EditIframe.asp?'+URL,window,"status:0;dialogWidth:"+nW+"px;dialogHeight:"+nH+"px;help:0;scroll:0");
//alert(VReturnValue);
if (VReturnValue==true){
    window.location.reload();}
}

//**** openShowModelessDialog(URL,nW,nH) ****//
function openShowModelessDialog(URL,nW,nH){
window.showModelessDialog('EditIframe.asp?'+URL,window,"status:0;dialogWidth:"+nW+"px;dialogHeight:"+nH+"px;help:0;scroll:0");
}


//**** openWin(URL,WName,nW,nH,nLeft,nTop,bsl) ****//
function openWin(URL,WName,nW,nH,nLeft,nTop,bsl){
  window.open(URL,WName,'width='+nW+',height='+nH+',left='+nLeft+',top='+nTop+',scrollbars='+bsl+',status=0,toolbar=no, menubar=no, location=no, resizable=0',false);
}

function openCenterWin(URL,WName,nW,nH,bsl){
  var str  = "height=" + nH + ",innerHeight=" + nH;
      str += ",width=" + nW + ",innerWidth=" + nW;
  if (window.screen) {
      var ah = screen.availHeight - 24;
      var aw = screen.availWidth - 10;

      var xc = (aw - nW) / 2;
      var yc = (ah - nH) / 2;

      str += ",left=" + xc + ",screenX=" + xc;
      str += ",top=" + yc + ",screenY=" + yc;
   }
  str += ",scrollbars="+bsl;
  window.open(URL,WName,str);
  //return window.open(URL,WName,str);
}

//**** winConfirm(strQuestion, strLocation) ****//
function winConfirm(strQuestion, strLocation) {
	question = confirm(strQuestion)
	if ( question != "0" ) {
		window.location.href=strLocation;
	}
}
