url = "/datepick/" if ($('yearpicker')) { url += $('yearpicker').options[$('yearpicker').selectedIndex].value+'/'; } url += $('monthpicker').options[$('monthpicker').selectedIndex].value+'/';