
//――――――――――――――――――――――――――――――――――――――
// PRINT 
//――――――――――――――――――――――――――――――――――――――
function PrintPage(){
	if(document.getElementById || document.layers){
		window.print();		//印刷をします
	}
}


//--------------------------------------------------
// POPUP WIN OPEN
//--------------------------------------------------
function pop2URL(wk1,WW,HH){
	var PopWidth  = "";
	var PopHeight = "";
	if(WW){ PopWidth  = ",width=" + WW; }
	if(HH){ PopHeight = ",height=" + HH; }
	var PopDetail = "scrollbars=1,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=1" + PopWidth + PopHeight;
	PopWin = window.open(wk1,"pop",PopDetail);
	PopWin.focus();
}

function popUp(path,w,h){
	if(w){var PopWidth = ",width=" + w;}
	if(h){var PopHeight = ",height=" + h;}
	var PopDetail = "toolbar=1,location=0,directories=0,status=1,menubar=1,resizable=0,scrollbars=1" + PopWidth + PopHeight;
	var win = window.open(path,'popup',PopDetail);
		win.resizeTo(w,h);
		win.focus();
}
function popUp2(path,w,h){
	if(w){var PopWidth = ",width=" + w;}
	if(h){var PopHeight = ",height=" + h;}
	var PopDetail = "toolbar=1,location=1,directories=1,status=1,menubar=1,resizable=1,scrollbars=1" + PopWidth + PopHeight;
	var win = window.open(path,'popup',PopDetail);
		win.resizeTo(w,h);
		win.focus();
}

function enterFocus(id, message) {
    if ($('#' + id).val() == message) {
        $('#' + id).val('');
        $('#' + id).css('color', '#000000');
        $('#' + id).css('font-style', 'normal');
    }
}
function enterBlur(id, message) {
    if ($('#' + id).val() == '') {
        $('#' + id).val(message);
        $('#' + id).css('color', '#D0D0D0');
        $('#' + id).css('font-style', 'italic');
    }
}
function deleteExample(id, message) {
    if ($('#' + id).val() == message) {
        $('#' + id).val('');
    }
}
function check_column(id) {
    if ($('#' + id).attr('checked')) {
        $('#' + id).removeAttr('checked');
    }
    else {
        $('#' + id).attr('checked', true);
    }
}
function check_column_radio(id) {
    if (!$('#' + id).attr('checked')) {
        $('#' + id).attr('checked', true);
    }
}
function controll_column(id, val, target) {
    if ($('#' + id).val() == val) {
        $('#' + target).hide();
    }
    else {
        $('#' + target).show();
    }
}

