String.prototype.trim = function () {
	return this.replace(/(^\s+)|(\s+$)/g, "");
};
var qiye_url = {
	price:"http://mail.qiye.163.com/domain/serv/query_price.jsp",
	vip:"http://mail.qiye.163.com/domain/serv/vipregister.jsp"
};

var getId = function(id){
	return document.getElementById(id);
};

var response = {
	execute:function(txt){
		if(this.callback){
			var obj = {
				"responseText":txt
			};
			this.callback(obj);
		}
		//
		XMLHttp.running = false;
		this.callback = null;
	},
	callback:null
};
var lock = false;
var XMLHttp = {
	running:false,
	sendReq:function(url, callback) {
		//
		if(this.running){
			return;
		}
		this.running = true;

		//
		var head = document.getElementsByTagName("head")[0] || document.documentElement,
		script = document.createElement("script");
		script.type = "text/javascript";
		response.callback = callback;
		url = encodeURI(url);
		script.src=url;

		// Use insertBefore instead of appendChild  to circumvent an IE6 bug.
		// This arises when a base node is used (#2709).
		head.insertBefore( script, head.firstChild );

		//delete the node after 10 seconds
		setTimeout(function(){
			script.src='';
			head.removeChild( script );
		},10000);
	}
};



