Code for Modal dialog box


<SCRIPT LANGUAGE="JavaScript">
 function showWelcome()
 { 
  // No Need to Calculate Centering on Modal Dialog

  strURL = "http://<%=gstrServer%>/dhtml_welcome.asp";
  var strRegion = showModalDialog(strURL,'','dialogHeight:450pdx; dialogWidth:500pdx');

  self.navigate('http://<%=gstrServer%>/default.asp?RegionId='+ strRegion + '&Turn=On');
 } 
</SCRIPT>