﻿//变量是否存在
function isUndefined(variable) {
	return typeof variable == 'undefined' ? true : false;
}
//获取对象函数
function $(Obj){
	return document.all?document.all[Obj]:document.getElementById(Obj);
}
//去两端空格
String.prototype.trim = function(){
	return this.replace(/(^\s*)|(\s*$)/g, "");
}
//页面重定向
function redirect(url) {
	window.location = url;
}
var ajaxtype=1;