// JavaScript Document
//　utf-8
//---------------------------------------------------------------------------------
function extCheck(ext){
	//危険な拡張子をチェック
	var retVal;

	switch (ext.toLowerCase()){
	case "txt":
	case "exe":
	case "pif":
	case "scr":
	case "bat":
	case "com":
	case "cmd":
	case "cgi":
	case "vbs":
	case "vbe":
	case "js":
	case "jse":
	case "wsf":
	case "wsh":
	case "wmf":
	case "pl":
	case "rb":
		retVal = true;
		break;	
	default:
		retVal = false;
		break;	
	}
   	return retVal;
}
//---------------------------------------------------------------------------------
function uti_onload(){
	alert("uti_onload");
}

//---------------------------------------------------------------------------------
/*
<dt><input type="submit" value="halfwidth" onclick="
  document.getElementById('halfwidth').innerHTML 
    = fascii2ascii(document.getElementById('fullwidth').value)
"></dt>
*/
var fascii2ascii = function(s) {
    return s.replace(/[\uFF01-\uFF5E]/g, function(m) {
        return String.fromCharCode(m.charCodeAt() - 0xFEE0);
    });
}
//---------------------------------------------------------------------------------
function bdMultiply(aStr, bStr){
	
	//丸め誤差対策 Big Decimal での掛け算　小数点以下切捨てして返す
	
    var a = new BigDecimal(aStr);
    var b = new BigDecimal(bStr);
	//alert("a");	
    //alert(Math.floor(a.multiply(b))); 

	//通常計算
	return Math.floor(a.multiply(b));		
	
}
//---------------------------------------------------------------------------------
function onSubmitCheck(){

	if ($("isGoNextFlag").value == "true"){
		return true;
	}else{
		return false;
	}
	
}
//---------------------------------------------------------------------------------

function setGoNextFlag(flg){
	$("isGoNextFlag").value = flg;
}

//---------------------------------------------------------------------------------
function isMSIE7(){
	var ua ;
	ua = navigator.userAgent;
	
	if (ua.indexOf("MSIE 7", 0) >= 0) {
		return true;
	}	
	return false;
}
//---------------------------------------------------------------------------------
function isMAC_OS_X(){
	var ua ;
	ua = navigator.userAgent;
	
	if (ua.indexOf("Mac OS X", 0) >= 0) {
		return true;
	}	
	return false;
}
//---------------------------------------------------------------------------------
function isPreMAC_OS_X(){
	//MAC OS Xより前
	var ua ;
	ua = navigator.userAgent;
	
	if (ua.indexOf("Macintosh", 0) >= 0) {
		if (isMAC_OS_X() == false) {
			return true;
		}
	}				
	return false;
}

//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------




