	//////////////////////////////////////////////////////////////////////////////////////////////
	//===================================================
	//Function which sets for for the dropdown whenever Page_load occurs 
	//OnLoad - GetFocus is called
	//====================================================
		
		function GetFocus()
		{
			document.UseTermsForm.reset();
			
			
			//Modified by Infosys
			//Date:12/11/2008
			//Description: Change the ddlProductName to ddlChannel
			//Start
			if(document.UseTermsForm.ddlChannel.selectedIndex == 0)
			{
				//Modified by Infosys
				//Date:12/11/2008
				//Description: Change the ddlChannel get the focus
				//Start
				//document.UseTermsForm.ddlProductName.focus();
				//document.UseTermsForm.ddlProductVersion.disabled = true;
				document.UseTermsForm.ddlChannel.focus();
				document.UseTermsForm.ddlProductName.disabled = true;
			}
			//End
			if(document.UseTermsForm.ddlProductName.disabled == false)
			{
				if(document.UseTermsForm.ddlProductName.selectedIndex ==0)
				{
					document.UseTermsForm.ddlProductName.focus();
				}
			}
			if(document.UseTermsForm.btnSearch.disabled == false)
			{
				document.UseTermsForm.btnSearch.focus();
			}
			if(document.UseTermsForm.ddlProductVersion.disabled == false)
			{
				
				if(document.UseTermsForm.ddlProductVersion.selectedIndex == 0)
				{
				
					document.UseTermsForm.ddlProductVersion.focus();
				}
			}
			if(document.UseTermsForm.ddlProductLanguage.disabled == false)
			{
				if(document.UseTermsForm.ddlProductLanguage.selectedIndex == 0)
				{
					document.UseTermsForm.ddlProductLanguage.focus();
				}
				else
				{
					document.UseTermsForm.btnGetUseTerms.focus();
				}
			}
			
					
		}
		
		//===================================================
		//Function which enable/disable the btnSearch as the TextChanges in txtSearch box
		//OnKeyUp - fnTextChanged is called
		//====================================================
		function fnTextChanged()
		{
		
			var ObjTextId = document.getElementById('txtSearch');
			var len = ObjTextId.value.length;
			
			//Modified by Infosys
			//Date: 12/11/2008
			//Description: Add the if cause to check whether the ddlChannel is selected
			//Begin
			if(document.UseTermsForm.ddlChannel.selectedIndex != 0)
			{
				if(ObjTextId.value != "")
				{
					document.UseTermsForm.btnSearch.disabled=false;
				}
				else
				{
					document.UseTermsForm.btnSearch.disabled=true;
				}
			}
			//End
		}
		
		//===================================================
		//Function which focus the btnSearch as the "Enter Key" is pressed in txtSearch box
		//OnKeyDown - HandleEnterKey is called
		//====================================================
		function HandleEnterKey(evt)
		{
			//Modified by Infosys
			//Date: 12/11/2008
			//Description: Add the if cause to check whether the ddlChannel is selected
			//Begin
			if(document.UseTermsForm.ddlChannel.selectedIndex != 0)
			{
				document.UseTermsForm.btnSearch.disabled=false;
				if(document.UseTermsForm.txtSearch.value != "")
				{
					if (evt.keyCode == 13)
					{
						
						var followingInput = document.getElementById("btnSearch");
						followingInput.focus();
					}
				}
				else
				{

					document.UseTermsForm.btnSearch.disabled=true;
				
				}
			}
			//End
		}
		
		//===================================================
		//Function which OpenURL link of grdSearchResults in a new IE window.
		//====================================================
		function fnopenURL(inputstring)
		{
			myWin = open(inputstring);
		}
		
		//===================================================
		//Function which GETPDF link when user clicks on Pagetool in a new IE window.
		//====================================================
		function popUp(URL)
		{
			day = new Date();
			id = day.getTime();
			eval("page" + id + " = window.open(URL, '" + id + "');");
		}