
function usage(val){
	if(val==9){
		document.getElementById("usage2").style.display = "block";
	}else{
		document.getElementById("usage2").style.display = "none";
	}
}



$(document).ready(function() {  
    $('input[title]').each(function() {  
        if($(this).val() === '') {  
            $(this).val($(this).attr('title'));   
        }  
          
        $(this).focus(function() {  
            if($(this).val() == $(this).attr('title')) {  
                $(this).val('').addClass('focused');      
            }  
        });  
        $(this).blur(function() {  
            if($(this).val() === '') {  
                $(this).val($(this).attr('title')).removeClass('focused');    
            }  
        });  
    }); 
});  


function changeDisabled() {
    if ( document.Form1["form[accept]"][0].checked ) { // 「同意する」のラジオボタンを選択したとき
        document . Form1["action"] . disabled = false; // 「送信」ボタンを有効化
    } else { // 「同意しない」のラジオボタンを選択したとき
        document . Form1["action"] . disabled = true; // 「送信」ボタンを無効化
    }
}
window.onload = changeDisabled; // ページを表示したとき、changeDisabled() を呼び出す




function openwin_stone() {
	window.open("/stone.php", "stone", "width=450,height=500,scrollbars=yes,resizable=yes");
}

function openwin_stone1() {
	window.open("/stone.php#stone1", "stone1", "width=450,height=500,scrollbars=yes,resizable=yes");
}

function openwin_stone2() {
	window.open("/stone.php#stone2", "stone2", "width=450,height=500,scrollbars=yes,resizable=yes");
}

function openwin_stone3() {
	window.open("/stone.php#stone3", "stone3", "width=450,height=500,scrollbars=yes,resizable=yes");
}

function openwin_stone4() {
	window.open("/stone.php#stone4", "stone4", "width=450,height=500,scrollbars=yes,resizable=yes");
}

function openwin_stone5() {
	window.open("/stone.php#stone5", "stone5", "width=450,height=500,scrollbars=yes,resizable=yes");
}




