function OneClick() {
	this.get = function (url, callBack) {
		jQuery.get(url, null, function(data) {
			if(callBack) {
				if(callBack.length) {
					eval(callBack);
				} else {
					callBack();
				}
			} else {
				eval(data);
			}
		});
	}
	this.post = function (url, formEL, callBack) {
		jQuery.post(url, jQuery(formEL).serialize(), function(data) {
			//alert(data);
			if(callBack) {
				if(callBack.length) {
					eval(callBack);
				} else {
					callBack();
				}
			} else {
				eval(data);
			}
		});
	}
	this.checkValue = function(el, msg) {
		if(jQuery(el).attr('value') == null) {
			alert(msg);
			jQuery(el).focus();
		}
	}
	this.alert = function(data) {alert(data)};
	this.initLoading = function() {
		var load_path = '/theme/style/portal/images/indicator.gif';
		var img = new Image();
		img.src = load_path;
		jQuery(document).find('.loading').each(function() {
			jQuery(this).click(function() {
				this.innerHTML = '<img src="'+load_path+'" />';
				this.onclick = function() {alert('Åª¨ú¤¤½Ðµyµ¥³á');return false; };
			});
		});
	}
}

window.OneClick = new OneClick();

