
function doCmd(pstrCmd)
{
	document.frmMain.elements['action'].value = pstrCmd;
	document.frmMain.submit();
}

$(document).ready(function() {
	 $("select.comparator-dropdown").change(function () {
         
		 if ($(this).attr('value') != 'None')
		 {
			 var str = "";
	         var id = $(this).attr('id');
	         $("select.comparator-dropdown#"+id+" option:selected").each(function () {
	               var bikeId = $(this).attr('value');
	               document.location = RootPath + "compare/?action=replace&col="+id+"&product_id=" + bikeId;
	             });
		 }  
       });
       

});
$(document).ready(function() {

	  // simple example, using all default options
	  $//('div.expander p').expander();
	  
	  // *** OR ***
	  
	  // override some default options
	  $('.expander_150').expander({
	    slicePoint:       150,  // default is 100
	    expandText:         'Show More >', // default is 'read more...'
	    userCollapseText: '< Show Less'  // default is '[collapse expanded text]'
	    
	  });
	  
	  // override some default options
	  $('.expander_300').expander({
	    slicePoint:       300,  // default is 100
	    expandText:         'Show More >', // default is 'read more...'
	    userCollapseText: '< Show Less'  // default is '[collapse expanded text]'
	    
	  });
	  
	});

