function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
    var r = window.location.search.substr(1).match(reg);
    if (r!=null) return unescape(r[2]); return null;
}


function update_tab_index(){
	$.ajax({    
		cache:false,
	    url: "common/php/index.php"+"?t="+new Date().getTime(),        
	    dataType: 'html',
	    type: 'post',
	    beforeSend :function(xmlHttp){  
			xmlHttp.setRequestHeader("If-Modified-Since","0");  
			xmlHttp.setRequestHeader("Cache-Control","no-cache");  
	    },
	    success: function(data) {       
			$('#tabcontent').html(data);
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_tab_news(){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../common/php/news.php"+"?t="+new Date().getTime(),        
	    dataType: "html",  
	    beforeSend :function(xmlHttp){  
			xmlHttp.setRequestHeader("If-Modified-Since","0");  
			xmlHttp.setRequestHeader("Cache-Control","no-cache");  
    	},
	    success: function(data) {       
			$('#container_inner').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_news_detail(news_id){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../common/php/news_detail.php?news_id="+news_id+"&t="+new Date().getTime(),        
	    dataType: "html",  
	    beforeSend :function(xmlHttp){  
			xmlHttp.setRequestHeader("If-Modified-Since","0");  
			xmlHttp.setRequestHeader("Cache-Control","no-cache");  
    	},
	    success: function(data) {       
			$('#news_detail_content').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    }); 
}

function update_tab_hoiku(){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../common/php/list.php?service=1"+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#tabcontent').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_hoiku_info(place_cd){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/list_s.php?service=1"+"&pcd="+place_cd+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#info_content').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_hoiku_detail(place_cd){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/detail.php?service=1"+"&pcd="+place_cd+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#detail_content').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}

function update_hoiku_recruit(){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/recruit.php?service=1"+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#container_inner').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_tab_kaigo(){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../common/php/list.php?service=2"+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#tabcontent').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_kaigo_info(place_cd){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/list_s.php?service=2"+"&pcd="+place_cd+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#info_content').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	

function update_kaigo_detail(place_cd){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/detail.php?service=2"+"&pcd="+place_cd+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#detail_content').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}

function update_kaigo_recruit(){
	$.ajax({     
		cache:false,
	    type: "Post",        
	    url: "../../common/php/recruit.php?service=2"+"&t="+new Date().getTime(),        
	    dataType: "html",     
	    success: function(data) {       
			$('#container_inner').html(data);   
        },     
        error: function(err) {     
            alert(err);     
        }     
    });    
}	


