function PopUp(strURL, intWidth, intHeight)
	{
	var OpenUp = window.open(strURL,"PopUp","height="+intHeight+",width="+intWidth+",scrollbars=yes,resizable=yes,status=no,menubar=no");
	}
	
function PopUpFull(strURL,intWidth,intHeight,intTop,intLeft,strAddressBar,strScrollBars,strResizable,strStatus,strMenubar,strLocation,strToolBar)
	{
	var OpenUp = window.open(strURL,"PopUp","height="+intHeight+",width="+intWidth+",top="+intTop+",left="+intLeft+",addressbar="+strAddressBar+",scrollbars="+strScrollBars+",resizable="+strResizable+",status="+strStatus+",menubar="+strMenubar+",location="+strLocation+",toolbar="+strToolBar);
	}

//

function findText(finder_textbox, finder_selectbox)
{
	if (finder_textbox.value.length > 0)
		{
		var searchStr = finder_textbox.value;
		var myExp = new RegExp(("^" + searchStr), "i");
		var foundResult = false;
		var i=0;

		while ((foundResult = false) || (i < finder_selectbox.length))
		{	//alert(finder_selectbox.options[i].text)
			if( myExp.test(finder_selectbox.options[i].text))
				{
				finder_selectbox.options[i].selected = true;
				foundResult = true;
				changename()
				}
				i++;
		}
	}
}


function GetDate(CtrlName,CtrlName2,CtrlName3)
	{   /****************************************************      Use Javascript method (window.open) to PopUp a new window    which contain a Calendar Control. In the meantime, we'll    pass the Parent Form Name and Request Control Name in the QueryString!      *****************************************************/
		ChildWindow = window.open('/includes/Calendar.aspx?FormName=' + document.forms[0].name + '&CtrlName=' + CtrlName + '&CtrlName2=' + CtrlName2 + '&CtrlName3=' + CtrlName3, "PopUpCalendar", "width=270,height=300,top=200,left=200,toolbars=no,scrollbars=no,status=no,resizable=no");
	}
function CheckWindow()
	{
	ChildWindow.close();
	}


