function gtab(strx){
  if($('#MenuContM1 > #c'+strx).html()==''){
	  $.ajax({
		   type: "GET", url: '/comm/'+strx+'.asp',
			beforeSend:function(){
				  $('#MenuContM1 > #c'+strx).html('<img src=/images/ajax-loader.gif>');
			},
			error: function(xhr) { alert('error!'); },
			success: function(response) {
				$('#MenuContM1 > #c'+strx).html(response);
				$('.ls'+strx+' > h1.focus_titlelist:odd').css('background-color','#ffffff'); 
				$('.ls'+strx+' > h1.focus_travel:odd').css('background-color','#F6F6EC'); 
			}
		  });
    };
	$("#TabPageM1 > li").removeAttr("class");  
	$("#"+strx).addClass("Selected");  
	$('#MenuContM1 > span').not('#c'+strx).hide();
	$('#MenuContM1 > #c'+strx).show();
}

function gtab2(){
	strx = $(this).attr("id") ;
  if($('#MenuContM1 > #c'+strx).html()==''){
	  $.ajax({
		   type: "GET", url: '/comm/'+strx+'.asp',
			beforeSend:function(){
				  $('#MenuContM1 > #c'+strx).html('<img src=/images/ajax-loader.gif>');
			},
			error: function(xhr) { alert('error!'); },
			success: function(response) {
				$('#MenuContM1 > #c'+strx).html(response);
				$('.ls'+strx+' > h1.focus_titlelist:odd').css('background-color','#ffffff'); 
				$('.ls'+strx+' > h1.focus_travel:odd').css('background-color','#F6F6EC'); 
			}
		  });
    };
	$("#TabPageM1 > li").removeAttr("class");  
	$("#"+strx).addClass("Selected");  
	$('#MenuContM1 > span').not('#c'+strx).hide();
	$('#MenuContM1 > #c'+strx).show();
}

function stab(strx,stry,intx){
	$(strx+" > li").removeAttr("class");  
	$(strx+" > li:eq("+intx+")").addClass("Selected");  
	$(stry+" > div").hide();
	$(stry+" > div:eq("+intx+")").show();
}

function jtab(strx){
  if($("#d"+strx).html()==''){
	$.getJSON("/comm/"+strx+".asp",
		    function(data){
				$("#d"+strx).html(data.html);
	        }
	);
  }
}
