// チェック処理
function execute(id, chk) {
    jQuery.ajax({
        type: "GET",
        url: "bukken_ajax.php",
        data: "id="+id+"&chk="+chk+"&rand="+Math.random(),
        success: function(msg){
            // alert( "Data Saved: " + msg);
        }
    });
}
function seikyu() {
    jQuery.ajax({
        type: "GET",
        url: "bukken_ajax.php",
        data: "seikyu=1&rand="+Math.random(),
        success: function(msg){
            if(msg == '0') {
                alert('資料請求欄がチェックされていません');
                return false;
            } else {
                location.href="seikyu.php";
            }
        }
    });
}

var popupWindow = function(tar){
	jQuery(tar).click(function(){
		var Loc = jQuery(this).attr('href');
		var w;
		var h;
		var windowName;
		var setting = jQuery(this).attr('title');
		if(setting==''){
			w = 700;
			h = 500;
			windowName = "puwindow";
		}
		else{
			w = setting.split(',')[0];
			h = setting.split(',')[1];
		}
		var features="scrollbars=yes,resizable=yes";
		features+=", left="+(window.screen.width-w)/2;
		features+=", top="+(window.screen.height-h)/2;
		features+=", width="+w;
		features+=", height="+h;
		var newWin=window.open(Loc,windowName,features);
		newWin.focus();
		return false;
	});
}

function tb_remove() {
	window.close();
}