//http_path_str = "http://www.rebuilt.bisplgroup.net/";
http_path_str = "http://www.rebuiltenginestore.com/";
function change_head_search(i)
{
	if(i == '1') 
	{
		document.getElementById('s_auto').style.display = '';		
		document.getElementById('s_marine').style.display = 'none';		
		document.getElementById('s_rv').style.display = 'none';		
	}
	else if(i == '2')
	{
		document.getElementById('s_auto').style.display = 'none';		
		document.getElementById('s_marine').style.display = '';		
		document.getElementById('s_rv').style.display = 'none';		
	}
	else if(i == '3')
	{
		document.getElementById('s_auto').style.display = 'none';		
		document.getElementById('s_marine').style.display = 'none';				
		document.getElementById('s_rv').style.display = '';		
	}
}

function head_search_valid1()
{
	d = document.head_search1;
	
	if(d.smake1.value == "")
	{
		alert('Please select the make');
		return false;
	}else{
		//d.submit();
		var smake1=document.getElementById('smake1').value;
		var smodel1=document.getElementById('smodel1').value;
		var syear1=document.getElementById('syear1').value;
		window.location.href=http_path_str+"searchlist.php?smake1="+smake1+"&smodel1="+smodel1+"&syear1="+syear1+"&Status=auto";
	}
	return true;
}

function head_search_valid2()
{
	d = document.head_search2;
	
	if(d.smanufacturer2.value == "")
	{
		alert('Please select the manufacturer');
		return false;
	}
	else
	{
		var smanufacturer2=document.getElementById('smanufacturer2').value;
		var syear2=document.getElementById('syear2').value;
		window.location.href=http_path_str+"searchlist.php?smanufacturer2="+smanufacturer2+"&syear2="+syear2+"&Status=marine";
	}
	return true;
}

function head_search_valid3()
{
	d = document.head_search3;
	
	if(d.smanufacturer3.value == "")
	{
		alert('Please select the manufacturer');
		return false;
	}
	else
	{
		var smanufacturer3=document.getElementById('smanufacturer3').value;
		var syear3=document.getElementById('syear3').value;
		window.location.href=http_path_str+"searchlist.php?smanufacturer3="+smanufacturer3+"&syear3="+syear3+"&Status=rvmotor";
	}
	return true;
}