		/*-------------------------------------------------------------------*/
		/* JAVASCRIPT														 */ 
		/*-------------------------------------------------------------------*/	
		function update_eshop_desc_search()
		{
			//if (document.sendFields.input_eshop_desc_box.checked == 1)
			
			var searchOption = parseInt(document.getElementById("input_eshop_desc_box").checked);
			
			if (searchOption == 1)
			{
				document.formFields.descSrch_eshop.value = 1;
			} 
			else
			{
				document.formFields.descSrch_eshop.value = 0;
			}
		}
		function aboutSite()
		{
			var str = "/common_code/aboutSite.php";				
			wnd = window.open(str,"aboutSite",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}	
		function aboutBuying()
		{
			var str = "/common_code/aboutBuying.php";				
			wnd = window.open(str,"aboutBuying",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		function aboutSelling()
		{
			var str = "/common_code/aboutSelling.php";				
			wnd = window.open(str,"aboutSelling",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		
		function aboutSite()
		{
			var str = "/common_code/aboutSite.php";				
			window.open(str,"subWindow",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
		}
		function submit_manage_eShop_bt()
		{
			document.formFields.goto_app.value =  "update_eShop";
			document.formFields.submit();	
		}
		function submit_create_eShop_bt()
		{
			document.formFields.goto_app.value =  "create_eShop";
			document.formFields.submit();	
			
		}
		
		function submit_eshop_SearchBt()
		{	
			document.formFields.goto_app.value =  "display_all_eShops";
			document.formFields.pg.value = 1;
			
			//var newSearchTxt = document.sendFields.userInput_searchTxt_eshop.value;
			
			var newSearchTxt = (document.getElementById("userInput_searchTxt_eshop").value);
			
			document.formFields.searchTxt_eshop.value = newSearchTxt;

			document.formFields.submit();			
		}
		function submitSearchBt()
		{			
			//var searchOption = parseInt(document.searchOption_form.searchOption.value);
			
			var searchOption = parseInt(document.getElementById("searchOption").value);	
			
			var searchTxt = document.getElementById("searchTxt").value;
			//var title_desc_box = document.getElementById("title_desc_box").checked;
			//title_desc_box = (title_desc_box == "1") ? "1" : "";

			title_desc_box = '';
			catgLevel = "";

			if (searchOption > 0)			// catg option
			{
				catgLevel = 1;
			}

			searchOption = (searchOption == 0) ? "" : searchOption;
			
			url_descSrch = (title_desc_box == "") ? "" : 
								"&descSrch="+title_desc_box; 
			url_mainCat = (searchOption == "") ? "" : 
								"&mainCat="+searchOption; 
			url_catgLevel = (catgLevel == "") ? "" : 
								"&catgLevel="+catgLevel; 

			searchOption = (searchOption == 0) ? "" : searchOption;
						
			//location.href = "/search/search.php?searchTxt="+searchTxt+"&descSrch="
			//					+title_desc_box+"&mainCat="+searchOption+"&catgLevel="+catgLevel;;
			//location.href = "/search/search.php?searchTxt="+searchTxt+"&mainCat="+searchOption+"&catgLevel="+catgLevel;;
			
			location.href = "/search/search.php?searchTxt="+ searchTxt +
				url_descSrch + url_mainCat + url_catgLevel;
				
		}

