You'd have to use javascript, I think. There are 'click' and 'dblclick' events you can specify actions for, but it seems like you activate the click event even if you're in the middle of a double click, so you can't just use a simple function for each event. Here's a link to a stackoverflow page where someone asked about this:
http://stackoverflow.com/questions/6...ick-separately but the answer uses jquery.