CaptchaRequest = function(divID, inputID)
{
	this.handleSuccess = function(o){
		if(o.responseText !== undefined){					
			document.getElementById(divID).innerHTML = o.responseText;
		}
	};

	this.handleFailure = function(o){		
		if(o.responseText !== undefined){	
			document.getElementById(divID).innerHTML += "<span class='error'>ERROR : Status code message: " + o.statusText + "</span>";			
		}
	};
	
	this.callback =
	{
	  success:this.handleSuccess,
	  failure:this.handleFailure,
	  argument:['foo','bar']
	};
					
	this.verifRequest = function(){
		var captcha = "";		
		if (document.getElementById(inputID))
		{
			var captcha = encodeURI(document.getElementById(inputID).value);
		}		
		document.getElementById(divID).innerHTML = "";		
		var postData = "captcha=" + captcha;		
		var request = YAHOO.util.Connect.asyncRequest('POST', "include/captcha/verif.php", this.callback, postData);				
	}		
	
							
}



