//+++++++++++++++++++++++++++++++++++++++++
//                Get Date
//+++++++++++++++++++++++++++++++++++++++++
var JsSetDateBox = new Date();
var JsTodayYear = JsSetDateBox.getFullYear();
var JsTodayMonth = JsSetDateBox.getMonth()+1;
var JsTodayDay = JsSetDateBox.getDate();


//※※※※※※※※※※※※※※※※※※※※※
//           Check OS and Browser
//※※※※※※※※※※※※※※※※※※※※※
// Macintosh            ->  MacOS
// Windows95/98/NT/2000/XP  -> Windows
// UNIX                  -> UNIX
function getOSType()
{
    var uAgent  = navigator.userAgent.toUpperCase();
    if (uAgent.indexOf("MAC") >= 0) return "MacOS";
    if (uAgent.indexOf("WIN") >= 0) return "Windows";
    if (uAgent.indexOf("X11") >= 0) return "UNIX";
    return "";
}
// Firefox ->  Firefox
// Netscape Navigator ->  Netscape
// Internet Explorer  -> Explorer
// Safari  -> Safari
// Opera  -> Opera
function getBrowserName()
{
    var aName  = navigator.appName.toUpperCase();
    var uName = navigator.userAgent.toUpperCase();
    if (uName.indexOf("SAFARI") >= 0)  return "Safari";
    if (uName.indexOf("OPERA") >= 0)  return "Opera";
    if (uName.indexOf("FIREFOX") >= 0)  return "Firefox";
    if (aName.indexOf("NETSCAPE") >= 0)  return "Netscape";
    if (aName.indexOf("MICROSOFT") >= 0) return "Explorer";
    return "";
}
function getBrowserVersion()
{
    var browser = getBrowserName();
    var version = 0;
    var s = 0;
    var e = 0;
    var appVer  = navigator.appVersion;
    var uName  = navigator.userAgent.toUpperCase();
    if (browser == "Safari")
    {
        s = uName.indexOf("SAFARI/",0);
        version = (uName.substring(s+7,s+99));
        if (version < 400) version = 1;
        if (version >= 400) version = 2;
    }
    if (browser == "Opera")
    {
        s = uName.indexOf("OPERA",0) + 6;
        e = uName.indexOf(" ",s);
        version = parseFloat(uName.substring(s,e));
    }
    if (browser == "Firefox")
    {
        s = uName.indexOf("FIREFOX/",0);
        version = parseFloat(uName.substring(s+8,s+8+3));
    }
    if (browser == "Netscape")
    {
        s = appVer.indexOf(" ",0);
        version = eval(appVer.substring(0,s));
        if (version >= 5) version++;
    }
    if (browser == "Explorer")
    {
        appVer  = navigator.userAgent;
        s = appVer.indexOf("MSIE ",0) + 5;
        e = appVer.indexOf(";",s);
        version = eval(appVer.substring(s,e));
    }
    return version;
}
OSName = getOSType();
BrowserName = getBrowserName();
BrowserVersion = getBrowserVersion();
//alert(OSName + BrowserName + BrowserVersion);



//+++++++++++++++++++++++++++++++++++++++++
//              Open Window 
//+++++++++++++++++++++++++++++++++++++++++
function infoWin(win_url){
  var WO1;
  WO1=window.open(win_url,'information','width=420,height=520,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
  WO1.window.focus();
}

function newWinPrivacy(win_url)
{
var WO2;
WO2=window.open(win_url,'privacy','width=500,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
WO2.window.focus();
}


//+++++++++++++++++++++++++++++++++++++++++
//              Close Window
//+++++++++++++++++++++++++++++++++++++++++
function winClose(){
    close();
}
function popJump(selOBJ){
  this.location.href  = selOBJ;
}
function GoRegist(strFormName,strUrl,strNextUrl) {
  document.forms[strFormName].action=strUrl;
  document.forms[strFormName].NextUrl.value=strNextUrl;
  document.forms[strFormName].submit();
}
function SetData(objElement,strValue){
  if (strValue=='その他'){
    objElement.value='';
  }else{
    objElement.value=strValue;
  }
}
//+++++++++++++++++++++++++++++++++++++++++
//              HideBlock
//+++++++++++++++++++++++++++++++++++++++++
function HideBlock(divID) {
  document.getElementById(divID).style.display='none';
}


//※※※※※※※※※※※※※※※※※※※※※
//        SimpleImageChanger 080513 
//※※※※※※※※※※※※※※※※※※※※※
function ChangeImage(Target,ImageName){
  Target.src = ImageName;
}