function doSearch()
{
if (document.getElementById('GeneralSearch').checked == true){
 document.getElementById('idCategory').value = '0';
 document.getElementById('priceFrom').value = '0';
 document.getElementById('priceUntil').value = '999999999';
 document.getElementById('customfield').value = '0';
 document.getElementById('resultCnt').value = '100';
 document.getElementById('order').value = '2';
 document.getElementById('ui_element').action="/productcart/pc/showsearchresults.asp";
}
if (document.getElementById('ExactSearch').checked == true){
 document.getElementById('ui_element').action="/productcart/pc/showsearchresults.asp";
 document.getElementById('exact').value = '1';
}
if (document.getElementById('LycomingEngines').checked == true){
 document.getElementById('ui_element').action="/productcart/pc/engines.asp";
 document.getElementById('searchParm').value = document.getElementById('keyWord').value;
 if (document.getElementById('searchParm').value == '') {document.getElementById('searchParm').value = 'ALL'}
 document.getElementById('catID').value = '33';
}
if (document.getElementById('ContinentalEngines').checked == true){
 document.getElementById('ui_element').action="/productcart/pc/engines.asp";
 document.getElementById('searchParm').value = document.getElementById('keyWord').value;
 if (document.getElementById('searchParm').value == '') {document.getElementById('searchParm').value = 'ALL'}
 document.getElementById('catID').value = '69';
}
 document.getElementById('ui_element').submit();
}

function rbclick(){ddup($('#siteSearch').find('.sb_down'));}
function dddown(objin){
$(objin).addClass('sb_up').removeClass('sb_down');
$('.sb_dropdown').show();
document.getElementById('sbupdown').value = 'down';
}
function ddup(objin){
$(objin).addClass('sb_down').removeClass('sb_up');
$('.sb_dropdown').hide();
document.getElementById('sbupdown').value = 'up';
}
            $(function() {
				/**
				* the element
				*/
				var $ui 		= $('#siteSearch');
				
				/**
				* on focus and on click display the dropdown, 
				* and change the arrow image
				*/
				$ui.find('.sb_input').bind('focus click',function(){
					$ui.find('.sb_down')
					   .addClass('sb_up')
					   .removeClass('sb_down')
					   .andSelf()
					   .find('.sb_dropdown')
					   .show();
document.getElementById('sbupdown').value = 'down';
				});


				$('.sb_down').click(function(){
if (document.getElementById('sbupdown').value == 'up'){
dddown(this);
}
else
{
ddup(this);
}
				});
				/**
				* on mouse leave hide the dropdown, 
				* and change the arrow image
				*/
				$ui.bind('mouseleave',function(){
					$ui.find('.sb_up')
					   .addClass('sb_down')
					   .removeClass('sb_up')
					   .andSelf()
					   .find('.sb_dropdown')
					   .hide();
document.getElementById('sbupdown').value = 'up';
				});
				
				/**
				* selecting all checkboxes
				*/
				$ui.find('.sb_dropdown').find('label[for="all"]').prev().bind('click',function(){
$(this).parent().siblings().find(':checkbox').attr('checked',this.checked).attr('disabled',this.checked);

				});
            });
