			function getCategories(comboIndex,varIndex,path)
			{
							
				// Commented Jitender 03/18/05 as it served no purpose
				//if (document.frmLocatorSearch.txtZipCode.value != "")
				//{
				//alert("Zip code should be blank for the selection");
				//document.frmLocatorSearch.txtZipCode.focus();
				//return false;		
				//}
				
				
				

				var theForm = document.frmLocatorSearch;
				var selCategoryList = "selCategoryList"+comboIndex;
				var n = theForm.elements.length;
				theForm.fpComboCounter.value=comboIndex;
				var categoryId = "";
				
											
				
				fpCatId = "fpCatId"+1;
				for(var j=0;j < n;j++)
				{
					if(theForm.elements[j].name == fpCatId)
					{
						theForm.elements[j].value = theForm.selCategoryList0.options[theForm.selCategoryList0.selectedIndex].value;
					}
				}	
				
				var fpCatId = "fpCatId"+comboIndex;
				
				for(var j=0;j < n;j++)
				{
					if(theForm.elements[j].name == selCategoryList)
					{
						categoryId = theForm.elements[j].options[theForm.elements[j].selectedIndex].value;
						
					}
				}
				
				for(var j=0;j < n;j++)
				{
					if(theForm.elements[j].name == fpCatId)
					{
						theForm.elements[j].value=categoryId;
					}
				}
															
				theForm.fpCatId.value=theForm.selCategoryList0.options[theForm.selCategoryList0.selectedIndex].value;
				theForm.action=path;
				theForm.submit();
			}
			
			
			function checkZipCode()
			{
				
				var theForm = document.frmLocatorSearch;
				if(theForm.txtZipCode.value == "")
				{
					window.alert("Please enter the valid ZipCode");
					return false;
				}
				theForm.hdnZipCode.value = theForm.txtZipCode.value;
				theForm.submit();
				return true;
				
			}
						
		function checkForm(listCount)
			{
				
		
				var theForm = document.frmLocatorSearch;
								
				if(theForm.selCategoryList0.selectedIndex == 0)
				{
					window.alert("Please "+theForm.selCategoryList0.options[0].text);
					return false;
				}
				theForm.fpCategoryId.value = theForm.selCategoryList0.options[theForm.selCategoryList0.selectedIndex].value;
				
				
			 	
				var n = theForm.elements.length;
				var elementIndex="";
				for(var m=1; m <= listCount; m++)
				{
					var selCategoryList = "selCategoryList"+m;
					for(var j=0;j < n;j++)
					{
										
						if(theForm.elements[j].name == selCategoryList)
						{
							if(theForm.elements[j].selectedIndex != 0)
							{								
								theForm.fpCategoryId.value = theForm.elements[j].options[theForm.elements[j].selectedIndex].value;
							}
							
						}
					}
				}	
									
				theForm.submit();
				
				theForm.hdnZipCode.value = "";
				
				return true;
			}
			
			
									 
			function urlloc() {

				
				var intIndex = document.frmCountry.selCountryName.selectedIndex;
				if (intIndex != 0 )  {	
					var strURL = document.frmCountry.selCountryName.options[intIndex].value;
					window.location=strURL;
				}
			}
			

 function downloadtime(bytes) {
		var Sec = Math.round(bytes / (56600 / 8));
			
			
		var TotalHours = Math.floor(Sec / 3600);
		var TotalMin = Math.floor((Sec - (TotalHours * 3600)) / 60);
		var TotalSec = Math.floor(Sec - ((TotalHours * 3600) + (TotalMin * 60)))
		if (TotalHours > 0) {	
			document.write(TotalHours + " Hour(s), " + TotalMin + " Minute(s), and " + TotalSec + " Seconds");
		} else if (TotalMin > 0 && TotalHours == 0) {
			document.write(TotalMin + " Minute(s), and " + TotalSec + " Seconds");
		} else if (TotalMin == 0 && TotalHours == 0) {
			document.write(TotalSec + " Seconds");
		}						
			
		return;
	}
	
	 

  function onNextPrevStellent(pageClick,pageString,actionstring,totalrecords,elementid)
  {

	var frmName = eval("document.frmStlntSearch" + elementid);
	
	var objPageValue = eval("document.frmStlntSearch" + elementid + ".hdnPageValue" + elementid);
	var objTotalCount = eval("document.frmStlntSearch" + elementid + ".hdnTotalCount" + elementid);
	var objPageNo = eval("document.frmStlntSearch" + elementid + ".hdnPageNo" + elementid);
		
	objPageValue.value=pageClick;
	objTotalCount.value=totalrecords;
	objPageNo.value=pageClick-1;
	frmName.action = actionstring;	
	frmName.submit();
  }

  function onPageNumberStellent(pageClick,actionstring,totalrecords,elementid)
  {
    var frmName = eval("document.frmStlntSearch" + elementid);
	
	var objPageValue = eval("document.frmStlntSearch" + elementid + ".hdnPageValue" + elementid);
	var objTotalCount = eval("document.frmStlntSearch" + elementid + ".hdnTotalCount" + elementid);
	var objPageNo = eval("document.frmStlntSearch" + elementid + ".hdnPageNo" + elementid);
		
	objPageValue.value=pageClick;
	objTotalCount.value=totalrecords;
	objPageNo.value=pageClick-1;
	frmName.action = actionstring;	
    frmName.submit();

  }
		

		
		
		

		
		

