		/*-------------------------------------------------------------------*/
		/* JAVASCRIPT														 */ 
		/*-------------------------------------------------------------------*/	
	
		
		art_sub_catg = document.getElementById("art_sub_catg").value;
		//art_sub_catg = document.sendFields.art_sub_catg.value;
		
		if (art_sub_catg != '')
		{				
			var art_sub_catg_div = document.getElementById("art_sub_catg_div");
			art_sub_catg_div.style.display = "block";
			
			var page_numbers_div = document.getElementById("page_numbers_div");
			page_numbers_div.style.display = "block";
		}
		
		var server = document.getElementById("server").value;	
		
		function aboutSite()
		{
			var str = "/common_html/aboutSite.php";				
			wnd = window.open(str,"aboutSite",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		
		function submit_page_bt ()
		{			
			var number_page_display = 			document.getElementById("number_page_display").value;	
			
			var user_page_input = document.getElementById("user_page_input").value;				
			var page_total = document.getElementById("page_total").value;
			
			if (
				(is_int(user_page_input) == false) ||
				(parseInt(user_page_input) < 1) ||
				(parseInt(user_page_input) > parseInt(page_total))
				)
			{
				alert ('Página inválida.');
			}
			else
			{		
				row = user_page_input / number_page_display;
				x = parseInt(row);
				if (x < row)
				{
					page_set = x + 1;
				}
				else
				{
					page_set = x;
				}
				if (page_set == 1)
				{
					bg_pgx = 1;
				}
				else
				{
					bg_pgx = (number_page_display * (page_set - 1)) + 1;
				}
				
				bg_pgx = (isNaN(bg_pgx)) ? 1 : bg_pgx;
				user_page_input = (isNaN(user_page_input)) ? 1 : user_page_input;
				location.href=server+"/articles_list/articles_list.php?"+
					"pg="+user_page_input+
					"&prv_pg="+bg_pgx+"&bg_pg="+bg_pgx+"&user_pg_input=1";
				
			}
			
		}

		
			
		function placar_total ()
		{
			var str = "/placar_total/placar_total.php";				
			wnd = window.open(str,"placar_total",
					"height=540, width=580, status, top, left, resizable, noscrollbars, dependent");
			wnd.focus();
		}
		
		function aboutSite()
		{
			var str = "/common_html/aboutSite.php";				
			wnd = window.open(str,"aboutSite",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		function aboutEshop()
		{
			var str = "/help/aboutEshop.php";				
			wnd = window.open(str,"aboutEshop",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		function aboutBuying()
		{
			var str = "/common_html/aboutBuying.php";				
			wnd = window.open(str,"aboutBuying",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		function secured_purchase ()
		{
			var str = "/product/secured_purchase.php";				
			wnd = window.open(str,"secured_purchase",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}
		function aboutCreateEshop()
		{			
			location.href="/eshop/eshop.php";
		}
		function aboutQualify()
		{			
			var str = "/infoQualify/infoQualify.php";	
			window.open(str,"_blank");
		}
		function aboutProhibited()
		{			
			var str = "/infoProhibited/infoProhibited.php";	
			window.open(str,"_blank");
		}
		
		function aboutPagSeguro()
		{			
			//window.open("http://www.brpay.com.br/?ind=407036","_blank");
			window.open("https://pagseguro.uol.com.br/defaultbr.aspx?ind=407036","_blank");
		}
		function aboutPayPal()
		{			
			window.open("https://www.paypal.com/row/mrb/pal=B2FY4PDNG4VKY","_blank");
		}
		function pcComputers_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=2&photo=1";				
		}
		function pcMultimidia_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=4&photo=1";				
		}
		function pcComponents_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=6&photo=1";				
		}
		function pcHardDisk_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=3&photo=1";				
		}
		function pcMonitor_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=8&photo=1";				
		}
		function pcNotebook_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=9&photo=1";				
		}
		function pcPrinters_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=14&subCat1=7&photo=1";				
		}
		
		function mp3Player_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=13&subCat1=13&photo=1";				
		}
		function perfume_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=6&subCat1=4&photo=1";				
		}
		function site_partner()
		{			
			location.href= "/site_partner/site_partner.php";				
		}
		function aboutSkype()
		{			
			window.open("http://www.skype.com/intl/pt/helloagain.html","_blank");			
		}
		function aboutGoogle_video()
		{			
			window.open("http://video.google.com/?hl=en&tab=wv&q=","_blank");			
		}
		function aboutYahoo_video()
		{			
			window.open("http://video.yahoo.com/","_blank");			
		}
		function aboutYouTube_video()
		{			
			window.open("http://www.youtube.com/","_blank");			
		}
		function cellPhone_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=24&subCat1=4&photo=1";				
		}
		function digiCamera_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=9&subCat1=4&photo=1";				
		}
		function dvdPlayer_byCatg()
		{			
			location.href= "/search/search.php?catgLevel=2&from_app=searchByCatg/searchByCatg&orderBy=1&mainCat=13&subCat1=2&photo=1";				
		}
		function aboutSelling()
		{
			var str = "/common_html/aboutSelling.php";				
			wnd = window.open(str,"aboutSelling",
					"height=630, width=820, status, top, left, resizable, scrollbars, dependent");
			wnd.focus();
		}

		function submitSearchBt()
		{	
			document.getElementById("goto_app").value = 'search';			
			
			document.getElementById("sendFields").submit();
		}
		
		function submitSearchHeaderBt()
		{	
			
			if (document.getElementById("searchOption").value != 0)
			{
				document.getElementById("searchTxtHeader").value = document.getElementById("searchTxtHeader_input").value;		
				
				document.getElementById("catg").value = document.getElementById("searchOption").value;		
				
				document.getElementById("goto_app").value = 'searchHeader';		
				document.getElementById("sendFields").submit();
			}
		}
		
		function setSearch()
		{
			document.getElementById("goto_app").value = 'search';
		}
		
		function searchTxt_update(searchTxt)
		{
			document.getElementById("searchTxt").value = searchTxt.value;
		}
		
		function searchTxtHeader_update(searchTxtHeader)
		{				
		
			document.getElementById("searchTxtHeader").value = searchTxtHeader.value;
		}
		function init()
		{
			//browser_type = browserSniffer ();
			//browser_array = browser_type.split(":");
			
			/*
			browser_type = browserSniffer ();
			browser_array = browser_type.split(":");
			
			// bar menu ...
			if (browser_array[0] == "Win")
			{
				if (browser_array[1] == "IE")
				{
					// msie
					var block_ie_nav = document.getElementById("windows_banner_div");
					block_ie_nav.style.display = "block";
				}
				
				else
				{
					// win netscape or mozzila or firefox
					var block_xother_nav = document.getElementById("firefox_banner_div");
					block_xother_nav.style.display = "block";
				}
			}
			else
			{
				// win netscape or mozzila or firefox
					var block_xother_nav = document.getElementById("linux_banner_div");
					block_xother_nav.style.display = "block";
			}
		
		*/
			
		}		
		
		
		
