function Tab(){};
Tab.prototype ={
	idstr:'',
	tabstr:'',
	cn:'',
	i:0,
	changeTab:function (n,id1,id2,classname){
		this.idstr=id2;
		this.tabstr = id1;
		this.cn = classname;
		if(this.i !=n)
		{
			$("#"+this.tabstr+this.i).removeClass(this.cn);
			$("#"+this.idstr+this.i).hide();
			$("#"+this.idstr+n).show();
			$("#"+this.tabstr+n).addClass(this.cn);
			this.i=n;
		}
	}
}
