/*
	(c) 2007-2008 | http://olegrorovin.spb.ru/
	Author - Oleg Korovin (mail@olegrorovin.spb.ru)
*/

var Questions = {
	
	elForm	: null,
	
 /***************************************/
	vote		: function(event,elForm){
		if(!elForm) return;
		
		this.elForm = elForm;
		
		var 
			oThis = this,
			mInp = elForm.elements,
			oValues = {
				act	: 'vote',
				q		: elForm
			};
		
//		Styles.invis(elForm);
			
		sendRequest( getUrl(oThis.elForm.action) , oValues, 30, function(res,text){
//			Styles.vis(elForm);
			
			if(res && res.code){
				elForm.parentNode.innerHTML = res.code;
			}
			else {}
		});
		
		/**/
	}
	
}
