//カレンダー表示 function chmonth(date) { httpObj = createXMLHttpRequestOp(displayDataOp); try{ if (httpObj) { httpObj.open("POST","/g/control",false); httpObj.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); httpObj.send("requestId=RCALENDAR_M_CH&CH_MONTH_FLG=true"+date); return; } else{ alert("ご使用のブラウザではご利用できません。"); } }catch(e){ alert("ご使用のブラウザではご利用できません。"); } } //カレンダー表示 function displayDataOp() { try{ if ((httpObj.readyState == 4) && (httpObj.status == 200)) { $("calendar_m_area").innerHTML = httpObj.responseText; } }catch(e){ alert("ご使用のブラウザではご利用できません。"); } } // HTTP通信用、共通関数 function createXMLHttpRequestOp(cbFunc) { var XMLhttpObject = null; var objectPattern = null; try{ XMLhttpObject = new XMLHttpRequest(); objectPattern = "0"; }catch(e){ try{ XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP"); objectPattern ="1"; }catch(e){ try{ XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP"); objectPattern ="2"; }catch(e){ return null; } } } if (XMLhttpObject){ var ua=navigator.userAgent; if(ua.indexOf("MSIE 7.0") !=-1){ XMLhttpObject.onreadystatechange = cbFunc; } if(objectPattern =="0"){ XMLhttpObject.onload = cbFunc; }else{ XMLhttpObject.onreadystatechange = cbFunc; } } return XMLhttpObject; } function $(tagId) { return document.getElementById(tagId); }