onload=function(){
		
			var uAgent=navigator.userAgent.toUpperCase();		
			
			//クッキー判定 
			if(cookieOK() && cookieOK(1)){
				document.mailform.cookie.value = true;
			}else{
				document.mailform.cookie.value = false;
			}

			//WMP判定 
			if(uAgent.indexOf("MSIE") > -1)	{
				document.mailform.wmp.value = WMPversion;
			}

			//FLASH判定
			var version = get_flash_version();
			document.mailform.flashver.value = version;

			//JS判定
			var js = JScheck();
			document.mailform.js.value = js;

}

function cookieOK(flag){
	if(navigator["cookieEnabled"]&&!flag){
		return (navigator.cookieEnabled)
	}else{
		document.cookie="testcookie"
		return (document.cookie.indexOf("testcookie")!=-1)
	}
}


function get_flash_version() {
 var version='0.0.0';
 if(navigator.plugins && navigator.mimeTypes['application/x-shockwave-flash']){
  var plugin=navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;
  // the code below is used in SWFObject
  //var plugin=navigator.plugins['Shockwave Flash'];
  if (plugin && plugin.description) {
   // convert the description like 'Shockwave Flash 9.0 r28' into version string like '9.0.8';
   // regex is provided by SWFObject
   version=plugin.description.replace(/^[A-Za-z\s]+/, '').replace(/(\s+r|\s+b[0-9]+)/, ".");
  }
  
 } else { // in the case of Win IE
  var x='';
  try {
   // for ver.7 and later
   var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");
   x=axo.GetVariable("$version");
  } catch(e) {
   try {
    // for ver.6
    axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
    x="WIN 6,0,21,0";
    /*
     * GetVariable() crashes player version 6.0.22-29, and
     * players which have those versions throws when access 
     * to AllowScriptAccess
     */
    axo.AllowScriptAccess="always";
    x=axo.GetVariable("$version");
   } catch(e) {
    if (!x.match(/^WIN/)) {
     try {
      // for 4.x,5.x
      axo=null;
      axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");
      // version 3 player throws when you call GetVariale().
      x=axo.GetVariable("$version");
     } catch(e) {
      if (axo) {
       // for 3.x
       x="WIN 3,0,18,0";
      } else {
       try {
        // for 2.x
        axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
        x="WIN 2,0,0,11";
       } catch(e) {
        x="WIN 0,0,0,0";
       }
      }
     }
    }
   }
  }
  // convert ActiveX version string to our version string like '9.0.28'
  version=x.replace(/^WIN /,'').replace(/,[0-9]+$/,'').replace(/,/g,'.');
 }
 // check version string format
 // Quicktime enabled Safari returns a description in natural language
 if (version.match(/^[0-9]+\.[0-9]+\.[0-9]+$/)) {
  return version;
 } else {
  return '0.0.0';
 }
}

function JScheck() {
	if(typeof top.frames["wmailmain"] != "undefined") {
		//JSが無効
		return false;
	}
	return true;
}



var WMPversion=0;
document.write('<object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="1" height="1" id="WMP7" viewastext></object>');
document.write('<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" width="1" height="1" id="WMP6" viewastext></object>');
document.write('<script language="VBScript"\> \n');
document.write('on error resume next \n');
document.write('WMP7_judge = (WMP7.URL = "") \n');
document.write('WMP6_judge = (WMP6.FileName = "") \n');
document.write('</script\> \n');
			if (WMP7_judge) {
				WMPversion = parseInt(WMP7.versionInfo);
			} else if(WMP6_judge) {
				WMPversion = 6;
			}

