The palestinians themselves view Hamas as a brutal military dictatorship and have said so many times.
I would definitely question any 'election' with suspicion, especially given the track record of election results from military dictatorships. Ol' Saddam pulled off almost 100% election results. I imagine it's hard to vote for anyone else with an AK-47 pointed at you in the booth.
Hamas is officially a terrorist organization, therefore it is not a legitimate government. It doesn't matter what some of the fools in the UN are saying or nutjob politicians. You don't deal with terrorists as a civilized country. You bomb them further into the stone age and eradicate them before they grow strong enough to harm your soft civilian underbelly with another sneak attack.
Interdum feror cupidine partium magnarum Europae vincendarum