jQuery(document).ready(function($) { $(function() { $('.dateinput').datePicker( { startDate: (new Date()).asString(), horizontalOffset: -150 } ).bind('click', function() { if(ie6) { $('.search select').hide(); } frominput = $(this).attr('id'); $(this).cSetOffset(0,-90); $(this).dpDisplay('',0,-90); this.blur(); return false; } ); }); });