/// <summary>
///  Custom Global variables
/// </summary>

var ToolTipOnMouseOverDelay = 500;
var ToolTipOffsetX = 10;
var ToolTipOffsetY = 10;
var MenuHighlightedKeyword = "Active";
var ShowRequestedImageDelay = 50;

/// <summary>
///  These functions set global browser identification variables and include commonly used routines
///  Significant portions of this code are based on Zorn, W. (2005), "wz_tooltip.js v. 3.37", www.walterzorn.com [http://www.walterzorn.com/tooltip/tooltip_e.htm] cited below
///
///  wz_tooltip.js    v. 3.37
///  The latest version is available at http://www.walterzorn.com or http://www.devira.com or http://www.walterzorn.de
///  Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
///  Created 1.12.2002 by Walter Zorn (Web: http://www.walterzorn.com)
///  Last modified: 2.12.2005
///  Cross-browser tooltips working even in Opera 5 and 6, as well as in NN 4, Gecko-Browsers, IE4+, Opera 7 and Konqueror. No onmouseouts required. Appearance of tooltips can be individually configured via commands within the onmouseovers.
///  LICENSE: LGPL
///  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
///  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
///  For more details on the GNU Lesser General Public License, see http://www.gnu.org/copyleft/lesser.html
/// </summary>

function SetGlobalBrowserVariables ()
{
	try
	{
		if (typeof(GlobalBrowserVariablesSet) == "undefined")
		{
			GlobalBrowserVariablesSet = true;
			Opera = !!(window.opera && document.getElementById);
			Opera6 = Opera && !document.defaultView;
			Opera7 = Opera && !Opera6;
			InternetExplorer = navigator.userAgent.toLowerCase().indexOf("msie") != -1 && document.all && ((document.compatMode && document.compatMode != "BackCompat")? document.documentElement : document.body? document.body : null) && !Opera;
			InternetExplorer6 = InternetExplorer && parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5)) >= 5.5;
			NetscapeNavigator4 = (document.layers && typeof document.classes != "undefined");
			NetscapeNavigator6 = (!Opera && document.defaultView && typeof document.defaultView.getComputedStyle != "undefined");
			W3CCompliant = !InternetExplorer && !NetscapeNavigator6 && !Opera && document.getElementById;
			DocumentBody = (((document.compatMode) && (document.compatMode != "BackCompat")) ? document.documentElement : ((document.body) ? document.body : null));
			PixelSuffix = (Opera6 || NetscapeNavigator4) ? "" : "px";
		}
	}
	catch (ExceptionObject)
	{
	}
}

function GetElement (Id)
{
	if (NetscapeNavigator4)
	{
		return((document.layers[Id] || null));
	}
	else
	{
		if (InternetExplorer)
		{
			return((document.all[Id] || null));
		}
		else
		{
			return((document.getElementById(Id) || null));
		}
	}
}

function ParseInteger (StringValue)
{
	var IntegerValue;
	IntegerValue = parseInt(StringValue);
	if (isNaN(IntegerValue))
	{
		return(0);
	}
	else
	{
		return(IntegerValue);
	}
}

function GetWidth (Tag)
{
	return(ParseInteger(NetscapeNavigator4 ? Tag.clip.width : (Tag.style.pixelWidth || Tag.offsetWidth)));
}

function GetHeight (Tag)
{
	return(ParseInteger(NetscapeNavigator4 ? Tag.clip.height : (Tag.style.pixelHeight || Tag.offsetHeight)));
}

/// <summary>
///  These functions check for the existence of the Macromedia Flash Player and publish Flash content
///  Significant portions of this code are based on the javascript code generated by Macromedia Flash Player
///  and Stearns, G. (2005), "FlashObject v1.2.3: Flash detection and embed", [http://blog.deconcept.com/flashobject/] cited below
///
///  FlashObject v1.2.3: Flash detection and embed - http://blog.deconcept.com/flashobject/
///  FlashObject is (c) 2005 Geoff Stearns and is released under the MIT License:
///  http://www.opensource.org/licenses/mit-license.php
/// </summary>

function DetectFlashPlayer (RequiredVersionMajor)
{
	try
	{
		var DetectedVersionMajor;
		if ((navigator.mimeTypes) && (navigator.mimeTypes["application\/x-shockwave-flash"]))
		{
			if (navigator.mimeTypes["application\/x-shockwave-flash"].enabledPlugin)
			{
				DetectedVersionMajor = ParseInteger(navigator.plugins["Shockwave Flash"].description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")[0]);
			}
		}
		else if (window.ActiveXObject)
		{
			var FlashPlayer = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
			DetectedVersionMajor = ParseInteger(FlashPlayer.GetVariable("$version").split(" ")[1].split(",")[0]);
		}
		return((DetectedVersionMajor >= RequiredVersionMajor));
	}
	catch (ExceptionObject)
	{
	}
	return(false);
}

function PublishFlashContent (VersionMajor, Id, Width, Height, Movie, ScriptAccess, Quality, BackgroundColor, ShowMenu, FlashVariables, HTMLAlternativeTagId)
{
	var FlashContentHTML = "";
	try
	{
		SetGlobalBrowserVariables();
		if (DetectFlashPlayer(VersionMajor))
		{
			FlashContentHTML += "\<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/fpdownload.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=" + VersionMajor + ",0,0,0\" id=\"" + Id + "\" width=\"" + Width + "\" height=\"" + Height + "\"\>\n";
			FlashContentHTML += " \<param name=\"movie\" value=\"" + Movie + "\" \/\>\n";
			FlashContentHTML += " \<param name=\"allowScriptAccess\" value=\"" + ScriptAccess + "\" \/\>\n";
			FlashContentHTML += " \<param name=\"quality\" value=\"" + Quality + "\" \/\>\n";
			FlashContentHTML += " \<param name=\"bgcolor\" value=\"" + BackgroundColor + "\" \/\>\n";
			FlashContentHTML += " \<param name=\"menu\" value=\"" + ShowMenu + "\" \/\>\n";
			FlashContentHTML += " \<param name=\"wmode\" value=\"opaque\" \/\>\n";
			FlashContentHTML += " \<param name=\"flashvars\" value=\"" + FlashVariables + "\" \/\>\n";
			FlashContentHTML += " \<embed type=\"application\/x-shockwave-flash\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" id=\"" + Id + "\" name=\"" + Id + "\" width=\"" + Width + "\" height=\"" + Height + "\" src=\"" + Movie + "\" allowScriptAccess=\"" + ScriptAccess + "\" swLiveConnect=\"true\" quality=\"" + Quality + "\" bgcolor=\"" + BackgroundColor + "\" menu=\"" + ShowMenu + "\" wmode=\"opaque\" flashvars=\"" + FlashVariables + "\" \/\>\n";
			FlashContentHTML += "\<\/object\>\n";
			if (typeof(HTMLAlternativeTagId) != "undefined")
			{
				if ((HTMLAlternativeTagId != null) && (HTMLAlternativeTagId != ""))
				{
					var HTMLAlternativeTag = GetElement(HTMLAlternativeTagId);
					if (HTMLAlternativeTag != null)
					{
						HTMLAlternativeTag.innerHTML = FlashContentHTML;
					}
					else
					{
						document.write(FlashContentHTML);
					}
				}
				else
				{
					document.write(FlashContentHTML);
				}
			}
			else
			{
				document.write(FlashContentHTML);
			}
		}
	}
	catch (ExceptionObject)
	{
	}
}

/// <summary>
///  These functions display a help information message tooltip.
///  Significant portions of this code are based on Zorn, W. (2005), "wz_tooltip.js v. 3.37", www.walterzorn.com [http://www.walterzorn.com/tooltip/tooltip_e.htm] cited below
///
///  wz_tooltip.js    v. 3.37
///  The latest version is available at http://www.walterzorn.com or http://www.devira.com or http://www.walterzorn.de
///  Copyright (c) 2002-2005 Walter Zorn. All rights reserved.
///  Created 1.12.2002 by Walter Zorn (Web: http://www.walterzorn.com)
///  Last modified: 2.12.2005
///  Cross-browser tooltips working even in Opera 5 and 6, as well as in NN 4, Gecko-Browsers, IE4+, Opera 7 and Konqueror. No onmouseouts required. Appearance of tooltips can be individually configured via commands within the onmouseovers.
///  LICENSE: LGPL
///  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
///  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
///  For more details on the GNU Lesser General Public License, see http://www.gnu.org/copyleft/lesser.html
/// </summary>

function SetGlobalVariables ()
{
	try
	{
		if (typeof(GlobalVariablesSet) == "undefined")
		{
			GlobalVariablesSet = true;
			SetGlobalBrowserVariables();
			ToolTipOnMouseOverHTML = "ToolTip(event,this);";
			ToolTipInterval = null;
			ToolTipLastId = 0;
		}
	}
	catch (ExceptionObject)
	{
	}
}

function SetVisibility (Tag, Visible)
{
	if (NetscapeNavigator4)
	{
		Tag.visibility = (Visible ? "show" : "hide");
	}
	else
	{
		Tag.style.visibility = (Visible ? "visible" : "hidden");
		if (InternetExplorer6 && (typeof(ToolTipInternetExplorer6OverrideTag) != "undefined"))
		{
			ToolTipInternetExplorer6OverrideTag.style.display = (Visible ? "block" : "none");
		}	
	}
}

function SetPositionToCursor (Tag, TagEvent)
{
	var TagInstance;
	var TagWidth;
	var TagHeight;
	var TagX;
	var TagY;
	var MaximumTagX;
	var MinimumTagY;
	var MinimumTagX;
	var MinimumScrollableTagY;
	
	TagEvent = (TagEvent || window.event);
	TagInstance = (Tag.style || Tag);
	if (TagInstance)
	{
		if (window.dd && dd.z)
		{
			TagInstance.zIndex = Math.max((dd.z + 1), TagInstance.zIndex);
		}
	}
	TagWidth = GetWidth(Tag);
	TagX = ParseInteger(TagEvent.pageX || TagEvent.clientX || 0) + ParseInteger(InternetExplorer ? DocumentBody.scrollLeft : 0) + ToolTipOffsetX;
	MaximumTagX = ParseInteger((DocumentBody && DocumentBody.clientWidth) ? DocumentBody.clientWidth : window.innerWidth) + ParseInteger(window.pageXOffset || (DocumentBody ? DocumentBody.scrollLeft : 0) || 0) - TagWidth - (NetscapeNavigator4 ? 21 : 0);
	if (TagX > MaximumTagX)
	{
		TagX = MaximumTagX;
	}
	MinimumTagX = ParseInteger(window.pageXOffset || (DocumentBody ? DocumentBody.scrollLeft : 0) || 0);
	if (TagX < MinimumTagX)
	{
		TagX = MinimumTagX;
	}
	TagHeight = GetHeight(Tag);
	TagY = ParseInteger(TagEvent.pageY || TagEvent.clientY || 0) + ParseInteger(InternetExplorer ? DocumentBody.scrollTop : 0);
	MaximumTagY = ParseInteger(window.innerHeight || DocumentBody.clientHeight) + ParseInteger(window.pageYOffset || (DocumentBody ? DocumentBody.scrollTop : 0) || 0) - TagHeight - ToolTipOffsetY;
	if (TagY > MaximumTagY)
	{
		TagY -= (TagHeight + 5);
	}
	else
	{
		TagY += ToolTipOffsetY;
	}
	TagInstance.left = TagX + PixelSuffix;
	TagInstance.top = TagY + PixelSuffix;
	if (InternetExplorer6 && (typeof(ToolTipInternetExplorer6OverrideTag) != "undefined"))
	{
		ToolTipInternetExplorer6OverrideTag.style.width = TagWidth + PixelSuffix;
		ToolTipInternetExplorer6OverrideTag.style.height = TagHeight + PixelSuffix;
		ToolTipInternetExplorer6OverrideTag.style.left = TagX + PixelSuffix;
		ToolTipInternetExplorer6OverrideTag.style.top = TagY + PixelSuffix;
	}
}

function ShowToolTip (ToolTipTagId)
{
	var ToolTipTag;
	try
	{
		ToolTipTag = GetElement(ToolTipTagId);
		SetVisibility(ToolTipTag, true);
		window.clearTimeout(ToolTipInterval);
		ToolTipInterval = null;
	}
	catch (ExceptionObject)
	{
	}
}

function HideToolTip (ToolTipTagId)
{
	var ToolTipTag;
	try
	{
		ToolTipTag = GetElement(ToolTipTagId);
		SetVisibility(ToolTipTag, false);
		window.clearTimeout(ToolTipInterval);
		ToolTipInterval = null;
	}
	catch (ExceptionObject)
	{
	}
}

function RequestShowToolTip (ToolTipEvent, ToolTipTagId)
{
	var ToolTipTag;
	try
	{
		if (ToolTipInterval != null)
		{
			window.clearTimeout(ToolTipInterval);
		}
		ToolTipTag = GetElement(ToolTipTagId);
		SetPositionToCursor(ToolTipTag, ToolTipEvent);
		ToolTipInterval = window.setTimeout(("ShowToolTip(\"" + ToolTipTagId + "\");"), ToolTipOnMouseOverDelay);
	}
	catch (ExceptionObject)
	{
	}
}

function ToolTip (ToolTipEvent, Tag)
{
	var TagOnMouseOverHTML;
	var ToolTipId;
	var ToolTipTag;
	var ToolTipTagId;
	
	SetGlobalVariables();

	try
	{
		if (Opera || NetscapeNavigator4 || NetscapeNavigator6 || InternetExplorer || W3CCompliant)
		{
			if (NetscapeNavigator6)
			{
				TagOnMouseOverHTML = Tag.getAttribute("onmouseover");
			}
			else
			{
				if (typeof(Tag.onmouseover) == "function")
				{
					TagOnMouseOverHTML = Tag.onmouseover.toString();
				}
				else
				{
					TagOnMouseOverHTML = "";
				}
			}
			if (TagOnMouseOverHTML.indexOf(ToolTipOnMouseOverHTML) != -1)
			{
				if (InternetExplorer6 && (typeof(ToolTipInternetExplorer6OverrideTag) == "undefined"))
				{
					ToolTipInternetExplorer6OverrideTag = document.createElement("iframe");
					ToolTipInternetExplorer6OverrideTag.id = "ToolTip";
					ToolTipInternetExplorer6OverrideTag.src = "javascript:false";
					ToolTipInternetExplorer6OverrideTag.scrolling = "no";
					ToolTipInternetExplorer6OverrideTag.frameborder = "0";
					ToolTipInternetExplorer6OverrideTag.className = "ToolTip";
					document.body.insertBefore(ToolTipInternetExplorer6OverrideTag, null);
				}
				if (NetscapeNavigator6)
				{
					Tag.onmouseover = new Function(Tag.getAttribute("onmouseover"));
				}
				ToolTipTag = document.createElement("div");
				ToolTipId = ++ToolTipLastId;
				ToolTipTagId = "ToolTip" + ToolTipId;
				ToolTipTag.id = ToolTipTagId;
				ToolTipTag.innerHTML = Tag.title;
				ToolTipTag.className = "ToolTip";
				ToolTipTag.style.visibility = "hidden";
				ToolTipTag.style.position = "absolute";
				document.body.insertBefore(ToolTipTag, null);
				Tag.onmouseover = new Function("ToolTipEvent","RequestShowToolTip(ToolTipEvent, \"" + ToolTipTagId + "\");");
				Tag.onmouseout = new Function("HideToolTip(\"" + ToolTipTagId + "\");");
				if (Tag.alt)
				{
					Tag.alt = "";
				}
				if (Tag.title)
				{
					Tag.title = "";
				}
				RequestShowToolTip(ToolTipEvent, ToolTipTagId);
			}
		}
	}
	catch (ExceptionObject)
	{
	}
}

/// <summary>
///  These functions enable drop-down menus
///  Significant portions of this code are based on Koivisto, J. (2004), "KOIVI Nearly Pure CSS Drop-down Menus", KOIVI [http://koivi.com/css-menus/] cited below
///
///  KOIVI Nearly Pure CSS Drop-down Menus (C) 2004 Justin Koivisto
///  Version 3.0
///  Last Modified: 4/27/2005
///  This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
///  This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
///  You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
///  For more details on the GNU Lesser General Public License, see http://www.gnu.org/copyleft/lesser.html
/// </summary>

function ShowRequestedImage ()
{
	try
	{
		if (typeof(ShowRequestedImageInterval) != "undefined")
		{
			if (ShowRequestedImageInterval != null)
			{
				window.clearTimeout(ShowRequestedImageInterval);
				ShowRequestedImageInterval = null;
			}
		}
		RequestedImageTag.src = RequestedImageSourceURL;
	}
	catch (ExceptionObject)
	{
	}
}

function RequestShowImage (ImageTag, ImageSourceURL)
{
	if ((typeof(RequestedImageTag) == "undefined") || (typeof(RequestedImageSourceURL) == "undefined"))
	{
		RequestedImageTag = ImageTag;
		RequestedImageSourceURL = ImageSourceURL;
		ShowRequestedImage();
	}
	else if (RequestedImageTag != ImageTag)
	{
		ShowRequestedImage();
		RequestedImageTag = ImageTag;
		RequestedImageSourceURL = ImageSourceURL;
		ShowRequestedImage();
	}
	else
	{
		RequestedImageTag = ImageTag;
		RequestedImageSourceURL = ImageSourceURL;
		if (typeof(ShowRequestedImageInterval) != "undefined")
		{
			if (ShowRequestedImageInterval != null)
			{
				window.clearTimeout(ShowRequestedImageInterval);
				ShowRequestedImageInterval = null;
			}
		}
		ShowRequestedImageInterval = window.setTimeout(("ShowRequestedImage();"), ShowRequestedImageDelay);
	}
}

function ShowMenu (MenuNodeTag)
{
	try
	{
		if ((MenuNodeTag.MenuNodeImageTag) && (MenuNodeTag.MenuNodeImageTag.RegularSource) && (MenuNodeTag.MenuNodeImageTag.HighlightedSource))
		{
			RequestShowImage(MenuNodeTag.MenuNodeImageTag, MenuNodeTag.MenuNodeImageTag.HighlightedSource);
		}
		if (InternetExplorer)
		{
			if (MenuNodeTag.MenuChildNodeGroupTag)
			{
				MenuNodeTag.MenuChildNodeGroupTag.style.display = "block";
			}
		}
	}
	catch (ExceptionObject)
	{
	}
}

function HideMenu (MenuNodeTag)
{
	try
	{
		if ((MenuNodeTag.MenuNodeImageTag) && (MenuNodeTag.MenuNodeImageTag.RegularSource) && (MenuNodeTag.MenuNodeImageTag.HighlightedSource))
		{
			RequestShowImage(MenuNodeTag.MenuNodeImageTag, MenuNodeTag.MenuNodeImageTag.RegularSource);
		}
		if (InternetExplorer)
		{
			if (MenuNodeTag.MenuChildNodeGroupTag)
			{
				MenuNodeTag.MenuChildNodeGroupTag.style.display = "none";
			}
		}
	}
	catch (ExceptionObject)
	{
	}
}

function InitializeMenu (MenuRootNodeGroupTagId)
{
	try
	{
		SetGlobalBrowserVariables();
		if (document.getElementById(MenuRootNodeGroupTagId))
		{
			var MenuRootNodeGroupTag = document.getElementById(MenuRootNodeGroupTagId);
			var MenuNodeTag = MenuRootNodeGroupTag.getElementsByTagName("LI");
			if (MenuNodeTag.length > 0)
			{
				MenuNodeTag[0].className = "FirstChild";
			}
			for (var i = 0; i < MenuNodeTag.length; i++)
			{
				var MenuNodeImageTag = MenuNodeTag[i].getElementsByTagName("IMG");
				if (MenuNodeImageTag.length > 0)
				{
					MenuNodeTag[i].MenuNodeImageTag = MenuNodeImageTag[0];
					if (MenuNodeImageTag[0].src.indexOf(MenuHighlightedKeyword + ".") == -1)
					{
						MenuNodeTag[i].MenuNodeImageTag.RegularSource = MenuNodeImageTag[0].src;
						MenuNodeTag[i].MenuNodeImageTag.HighlightedSource = MenuNodeImageTag[0].src.substring(0, MenuNodeImageTag[0].src.lastIndexOf(".")) + MenuHighlightedKeyword + ".gif";
					}
				}
				var MenuChildNodeGroupTag = MenuNodeTag[i].getElementsByTagName("UL");
				if (MenuChildNodeGroupTag.length > 0)
				{
					MenuNodeTag[i].MenuChildNodeGroupTag = MenuChildNodeGroupTag[0];
					var MenuChildNodeTag = MenuChildNodeGroupTag[0].getElementsByTagName("LI");
					if (MenuChildNodeTag.length > 0)
					{
						MenuChildNodeTag[0].className = "FirstChild";
					}
				}
				MenuNodeTag[i].onmouseover = new Function("ShowMenu(this);");
				MenuNodeTag[i].onmouseout = new Function("HideMenu(this);");
			}
		}
	}
	catch (ExceptionObject)
	{
	}
}
//



////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
/// <summary>
///  Below functions are required by component art to work
/// </summary>
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function PickerFrom_OnDateChange()
      {
        var fromDate = PickerFrom.GetSelectedDate();
        var toDate = PickerTo.GetSelectedDate();
        CalendarFrom.SetSelectedDate(fromDate);
        if (fromDate > toDate)
        {
          PickerTo.SetSelectedDate(fromDate);
          CalendarTo.SetSelectedDate(fromDate);
        }
      }
      function PickerTo_OnDateChange()
      {
        var fromDate = PickerFrom.GetSelectedDate();
        var toDate = PickerTo.GetSelectedDate();
        CalendarTo.SetSelectedDate(toDate);
        if (fromDate > toDate)
        {
          PickerFrom.SetSelectedDate(toDate);
          CalendarFrom.SetSelectedDate(toDate);
        }
      }
      function CalendarFrom_OnChange()
      {
        var fromDate = CalendarFrom.GetSelectedDate();
        var toDate = PickerTo.GetSelectedDate();
        PickerFrom.SetSelectedDate(fromDate);
        if (fromDate > toDate)
        {
          PickerTo.SetSelectedDate(fromDate);
          CalendarTo.SetSelectedDate(fromDate);
        }
      }
      function CalendarTo_OnChange()
      {
        var fromDate = PickerFrom.GetSelectedDate();
        var toDate = CalendarTo.GetSelectedDate();
        PickerTo.SetSelectedDate(toDate);
        if (fromDate > toDate)
        {
          PickerFrom.SetSelectedDate(toDate);
          CalendarFrom.SetSelectedDate(toDate);
        }
      }
      function ButtonFrom_OnClick()
      {
        if (CalendarFrom.PopUpObjectShowing)
        {
          CalendarFrom.Hide();
        }
        else
        {
          CalendarFrom.SetSelectedDate(PickerFrom.GetSelectedDate());
          CalendarFrom.Show();
        }
      }
      function ButtonTo_OnClick()
      {
        if (CalendarTo.PopUpObjectShowing)
        {
          CalendarTo.Hide();
        }
        else
        {
          CalendarTo.SetSelectedDate(PickerTo.GetSelectedDate());
          CalendarTo.Show();
        }
      }
      function ButtonFrom_OnMouseUp()
      {
        if (CalendarFrom.PopUpObjectShowing)
        {
          event.cancelBubble=true;
          event.returnValue=false;
          return false;
        }
        else
        {
          return true;
        }
      }
      function ButtonTo_OnMouseUp()
      {
        if (CalendarTo.PopUpObjectShowing)
        {
          event.cancelBubble=true;
          event.returnValue=false;
          return false;
        }
        else
        {
          return true;
        }
      }
	  // Only Numeric Values
	 function onkeypress_numericfilter(event,reference)
	 {
	  var keycode;
	  if (document.all)
	  {
	   keycode=event.keyCode;
	  }
	  else
	  {
	   keycode=event.which;
	  }  
	  if((keycode==8) || (keycode==127) || (keycode==9)  || (keycode==0))
	  {   
	   return(true);
	  }
	  if ( ((keycode>47)&&(keycode<58)) )
	  {
	   return(true);
	  }  
	  else
	  {
	   return(false);
	  }
	 }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
