function submitPoll()
{
	var params = Form.serialize( $('pollform') );
  	var url ='/php/poll/poll.php';
  	$('pollform').disabled=true;
  	new Ajax.Request(  url ,{ postBody:params, method:'post', asynchronous:true, onSuccess:updatePoll } );
	return false;
}

function viewPoll(url)
{
  	new Ajax.Request( url, {method:'get', parameters:'' , asynchronous:true, onSuccess:updatePoll } );
	return false;
}

function updatePoll(req)
{
	var html= req.responseText;
	$('poll').innerHTML=html;
	new Effect.Appear('poll');
}
