var Crypt = function()
{
    this.go = function()
    {
        var url = "/callback/crypt/?cid="+$("coupon_id").value+"&email="+$("coupon_email").value;
        var call = new Ajax(url,{
            method: 'get',
			onSuccess: function(obj)
			{
			    if(obj)
    	        {
    	            window.location = obj;
    	        }
    	        else
    	        {
    	            window.location = "/errors/general?msg=An error has occured.";
    	        }
			},
			onFailure: function(obj)
			{
			}
        }).request();
    }
}
