// JavaScript Document
	function onenter()
	{
		alert('fasfasd');
		if (window.event.keyCode == 13)
		 {
			 submitsearch();
 			 return false;
		}
		return true;
	}	
	function submitlist(obj)
	{
		if (obj.name == "seldevicetype")
			window.location="http://www.lowcostbatteries.com/productsearch.asp?seldevicetype=" + obj.value
		if (obj.name == "seldevicemfr")
			window.location = 'http://www.lowcostbatteries.com/productsearch.asp?seldevicetype=' + document.frm1.seldevicetype.value + '&seldevicemfr=' + obj.value
		if (obj.name == "seldevicemodel")
			window.location = 'http://www.lowcostbatteries.com/productsearch.asp?seldevicetype=' + document.frm1.seldevicetype.value + '&seldevicemfr=' + document.frm1.seldevicemfr.value + '&seldevicemodel=' + obj.value
	}	
	function submitlist1(obj)
	{	
		if (obj.name == "seldevicetype1")
		{
			var links =obj.value
			var link_array=links.split(",");
			if (link_array[1] != "")
			{
				document.ShopByMfg.hiddencatid.value = link_array[1];			
			}	
			document.ShopByMfg.action=link_array[0];
			document.ShopByMfg.submit();
		}				
		if (obj.name == "seldevicemfr1")
			window.location = obj.value
		if (obj.name == "seldevicemodel1")
			window.location = obj.value
	}	
	function functremove(links)
	{
		var links1 = links
		var link_array1=links1.split(",");
		if (link_array1[1] != "")
			{
				document.ShopByMfg.hiddencatid.value = link_array1[1];			
			}	
			document.ShopByMfg.action=link_array1[0];
			document.ShopByMfg.submit();		
	}	
	function submitsearch() //Added by senthil on 21th Oct 2005
	{
		var temp
		if (frm3.txtsearchkey.value.length > 0)
		{
			temp = frm3.txtsearchkey.value;
		}
		else
		{
			return false;
		}			
		if(temp.length < 2 )
		{
			alert("Sorry, There should be atleast 2 characters to search")
			return false;
		}		
		if  (temp.length > 2)
		{
		
			window.location = "http://www.lowcostbatteries.com/productsearch.asp?txtsearchkey=" + temp;							
			return;
		}
		else
		{
		   return false;		 
		}  	
	}	

	function DropDown_ShopBy_Manufacturer_onChange(arg_value)
			{
				if (arg_value !== "")
				{
					window.location.href = 'http://www.lowcostbatteries.com/' + (arg_value);
				}
			}
	function NewWindow(mypage, myname, w, h, scroll) 
	{
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}