function closeWin(){
	window.open('about:blank','_self').close();
}

function openWin(openUrl,winName,w,h){
	winSize = "width=" + w + ",height=" + h ;
	window.open(openUrl,winName, winSize);
}
// cookie 
function get_Cookie(key) {
    var cookieAll = " " + document.cookie + ";";
    var x1 = x2 = 0;
    var len = cookieAll.length;
    while (x1 < len) {
        x2 = cookieAll.indexOf(";", x1);
        selectedStr = cookieAll.substring(x1 + 1, x2);
        x3 = selectedStr.indexOf("=");
        if (selectedStr.substring(0, x3) == key) {
            return(unescape(selectedStr.substring(x3 + 1, x2 - x1 - 1)));
        }
        x1 = x2 + 1;
    }
    return("");
}
function set_Cookie(key, val) {
	exp=new Date();
	exp.setTime(exp.getTime()+1000*60*60*24*1); //保持期間１日
    tmp = key + "=" + escape(val) + "; expires=" + exp.toGMTString();
    document.cookie = tmp;
}
function clear_Cookie(key) {
    document.cookie = key + "=" + "xx; expires=Tue, 1-Jan-1980 00:00:00;";
}

// さらに絞り込む H-4-2 / i-1
function dispmore(id1,id2){
	var idsp=document.getElementById(id2).style.display;
	if(idsp=="block"){
		document.getElementById(id2).style.display="none";
		document.getElementById(id1).src="../img/01/H_42moreBTNoff.gif";
		//document.getElementById(id1).alt = "表示";
	} else {
		document.getElementById(id2).style.display="block";
		document.getElementById(id1).src="../img/01/H_42moreBTNon.gif";
		//document.getElementById(id1).alt = "隠す";
	}
}
function btnover(objid,swpimage){
	document.getElementById(objid).src=swpimage;
}
function btnout(objid,swpimage){
	document.getElementById(objid).src=swpimage;
}

function logoutdialog(){
   if(confirm('ログアウトします\nよろしいですか？')){
   set_Cookie('member','no');
   location.href="A-1.html";
   }

}

function logindialog(){
   if(confirm('IDとPASSの入力を行い \nログイン処理を行います')){
   set_Cookie('member','yes');
   location.href="A-1.html";
   }
}

// パネル生成(共通)
//YAHOO.util.Event.addListener(window, "load", null);

