function DCall(){
var day = new Date();
document.write(day.getYear()+"年"); 
var mm = day.getMonth()+1;
document.write(mm+"月"); 
var dd = day.getDate();
document.write(dd+"日"); 
}

function openCenterHTML(sx,sy,url){
 if( sy + 30+30+25 > screen.height  ){
  x = ( screen.width  - sx ) / 2 ;y = ( screen.height - (screen.height * 0.9 )) / 2 -50;
  opt = "status=no,resizable=yes,scrollbars=yes,toolbar=no,width="+sx+",height="+(screen.height * 0.9)+",left="+x+",top="+y;sub = window.open( url, "", opt );    
   return true;
 }else{
  x = ( screen.width  - sx) / 2 ;y = ( screen.height - sy) / 2 -50;sx = sx +15;sy=sy+15;
  opt = "status=no,resizable=yes,scrollbars=yes,toolbar=no,width="+sx+",height="+sy+",left="+x+",top="+y;sub = window.open( url, "", opt );    
 }
}

function openCenterSSL(sx,sy,url){
 if( sy + 30+30+25 > screen.height  ){
  x = ( screen.width  - sx ) / 2 ;y = ( screen.height - (screen.height * 0.9 )) / 2 -50;
  opt = "resizable=yes,scrollbars=yes,status=yes,width="+sx+",height="+(screen.height * 0.9)+",left="+x+",top="+y;sub = window.open( url, "", opt );    
   return true;
 }else{
  x = ( screen.width  - sx) / 2 ;y = ( screen.height - sy) / 2 -80;sx = sx +15;sy=sy+15;
  opt = "resizable=yes,scrollbars=yes,status=yes,width="+sx+",height="+sy+",left="+x+",top="+y;sub = window.open( url, "", opt );    
 }
}
function checkpw(){
var pswd = prompt("メールアドレス:","");
var pswd = prompt("パスワードを入力して下さい:","");
location.href = "download/" + pswd + ".html";
}

function getHikisuu(){
     getHikisuu.data = new Array();
     getHikisuu.string = location.search.substring(1);//?をサプレス
     getHikisuu.string = getHikisuu.string.split('&');
     for(var i = 0; i != getHikisuu.string.length; i++) {
         getHikisuu.data[ck_shikibetushi(getHikisuu.string[i].split('=')[0])]
                               =  Escape(unescape(getHikisuu.string[i].split('=')[1]));
     }

     function ck_shikibetushi(shiki){ //識別子（プロパティ）の命名チェック
         shiki_TOP = shiki.substring(0,1);
//        if(shiki_TOP.match(/[a-zA-Z_$]/g) == null){
//            alert(shiki+"の引数が不正です。（一文字目は、ASCII、_、$、のいずれかです。）");
//            return null;
//         }
//         else if(shiki.match(/[^a-zA-Z0-9_$]/g) != null){
//            alert(shiki+"の引数が不正です。（命名文字は、ASCII、数字、_、$、のいずれかです。）");
//            return null;
//         }
         return shiki;
     }

     function Escape(str){ //文字参照へ変換 
          str = str.replace( /\&/g, '&amp;' );
          str = str.replace( /</g, '&lt;' ); 
          str = str.replace( />/g, '&gt;' ); 
          str = str.replace( /\"/g, '&quot;' );
          str = str.replace( /\'/g, '&#39;' );
          return str;
    }
}