//值驗証,判斷日期YYYYMM是否合法,反回bool 值
//strDate:輸入的日期
////調用實例:alert(CheckDateYYYYMM('200712'));  return: true
function CheckDateYYYYMM(strDate) 
{    
//    var strDate=trimSpace(strDate); 
    var strY=""; 
    var strM=""; 
    var tempLen; 
    tempLen=strDate.length; 
    if(tempLen!=6)return false; 
    if(isNaN(strDate)==true)return false; 
    if(strDate.indexOf('.')!=-1)return false; 
    strY=strDate.substring(0,1); 
    strM=strDate.substring(tempLen-2); 
    if (strY == "0" )return false; 
    if (strM>= "01" && strM<="12") 
    return true; 
    else 
    return false; 
}