﻿// JavaScript Document

function disp(){
	if(window.confirm('ライセンスオンラインのホームページに移動します\nよろしいですか？')){
		window.open(url,"sub_w","width=530,height=720");
	}
}

function disp2(){
	if(window.confirm('ＰＣお預かりサービスのホームページに移動します\nよろしいですか？')){
		window.open(url,"sub_w","width=530,height=720");
	}
}

function disp3(){
	if(window.confirm('外部のページに移動します\nよろしいですか？')){
		window.open(url,"sub_w","width=530,height=720");
	}
}

function getCookie(key,  tmp1, tmp2, xx1, xx2, xx3) {
    tmp1 = " " + document.cookie + ";";
    xx1 = xx2 = 0;
    len = tmp1.length;
    while (xx1 < len) {
        xx2 = tmp1.indexOf(";", xx1);
        tmp2 = tmp1.substring(xx1 + 1, xx2);
        xx3 = tmp2.indexOf("=");
        if (tmp2.substring(0, xx3) == key) {
            return(unescape(tmp2.substring(xx3 + 1, xx2 - xx1 - 1)));
        }
        xx1 = xx2 + 1;
    }
    return("");
}
function setCookie(key, val, tmp) {
    tmp = key + "=" + escape(val) + "; ";
    // tmp += "path=" + location.pathname + "; ";
    //tmp += "expires=Tue, 31-Dec-2030 23:59:59; ";
    document.cookie = tmp;
}