//================================================================
// Standard Open Dialog				Src_OpenModalDialog.js
// Ver 1.0.0						04/20/2006
// Peter DeSimone
//================================================================
// Description: Opens a standard Modal Dialog and gets a return value.
//----------------------------------------------------------------
//	Place the following segment within your page's JavaScript code:
//
//	<script language="JavaScript" type="text/javascript">
//	<!--
//		strReturnValue = doOpenModalDialog("MyPage.asp", "280pt", "230pt");
//		// Parse strReturnValue
//	//-->
//	</script>
//
//================================================================

	function doOpenModalDialog(strPopupPage, strWidth, strHeight, strCenter) 
	{
		if ((strCenter == null) ||
			(strCenter == ""))
			strCenter = "yes"
	
		if (window.showModalDialog) 
		{
		   var sRtn;
		   sRtn = showModalDialog(strPopupPage,"","center=" + strCenter + ";dialogWidth=" + strWidth + ";dialogHeight=" + strHeight + ";status=no;title=no");
		
		   	if (sRtn != "")
			{
				return sRtn;
			}
			else
			{
				return "";
			}
		}
		else
		{
		  	return "";
		}
	}