﻿function tab(linktag,group,id){
	var i = 0;
	$(linktag + "[@group=" + group + "]").each(function(){
		i++;
		if (i == id){
			this.className = "current";
		}else{
			this.className = "";
		}
	});
}
function show(tag,group,id){
    i = 0;
	$(tag + "[@group=" + group + "]").each(function(){
		i++;
		if (i == id){
			this.style.display = "";
		}else{
			this.style.display = "none";
		}
	});
}