/*
********************************************************************
* General JavaScript Functions
********************************************************************
File Name: /Scripts/app_GeneralJSFunctions.js
Author: Phil Derksen - VisionOne, Inc.
Completion Date: 
Date of Last Revision: 11/19/2001
Last Revisor: Phil Derksen
Function: General JavaScript functions.
OS: N/A
Requires: Internet Explorer 5.0 or higher browser.
********************************************************************
*/

/*
********************************************************************
* Function: GetSelectedDate
* Objective: Extracts the date from the QueryString that the MonthView
	component creates
* Input: strQueryString - The QueryString from the browser
* Output: string
********************************************************************
*/
function GetSelectedDate(strQueryString)
{
	// Remove the ID formatting the component does
	strQueryString = new String(strQueryString);
	strSearchString = "#?MV=";
	
	// Splice up and re-put back together
	strQueryString = strQueryString.slice(strQueryString.indexOf(strSearchString) + strSearchString.length,
		strQueryString.length);
	
	// Return the parsed date
	return strQueryString
}

/*
********************************************************************
* Function: SubmitTextSearch
* Objective: Submits the form is keystroke is Enter key
* Input: N/A
* Output: N/A
********************************************************************
*/
function SubmitTextSearch()
{
	if (event.keyCode == 13)
	{
		document.frmAdvancedCalendar.hidSubmit.value='1';
		document.frmAdvancedCalendar.submit();
	}
}