var last=false;
var lastobj=false;

function showtab(obj,id){
	if(!last){

	 last=getTarget("frameview_tab_0");
	 lastobj=document.getElementById("frameview_button_0");

	}

 var target=getTarget(id);
 
//alert(last);
//alert(lastobj);
//alert(target);
//alert(obj);


	if(target){
	 obj.style.backgroundImage="url("+img_bgd+")"; 


	 target.style.display="block";
	 
		if(last!=target&&last){
	 	 last.style.display="none";
		 lastobj.style.backgroundImage="url('"+img_bg+"')";
		}

	 last=target;
 	 lastobj=obj;

	}
}

function getTarget(id){

 return document.getElementById(id);

 
}

