<!--
ajax = false;
ajax2 = false;
//IEˆÈŠO
if(window.XMLHttpRequest) {
    ajax = new XMLHttpRequest();
    ajax2 = new XMLHttpRequest();
//IE—p
} else if(window.ActiveXObject) {
    try {
        ajax = new ActiveXObject("Msxml2.XMLHTTP");
        ajax2 = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        ajax = new ActiveXObject("Microsoft.XMLHTTP");
        ajax2 = new ActiveXObject("Microsoft.XMLHTTP");
    }
}

function getShopZipData(formName) {
    var obj = document.forms[formName];
    var zip1 = obj.zip1.value;
    var zip2 = obj.zip2.value;
    
    ajax.open("GET", "http://netsuper.rakuten.co.jp/callZipCodeInfo.php?zip1=" + encodeURI(zip1) + "&zip2=" + encodeURI(zip2), true);
    ajax.onreadystatechange = function() {
        if (ajax.readyState == 4 && ajax.status == 200) {
            if (formName == "zipCode") {
                var obj = document.getElementById('shopZip');
            } else {
                var obj = document.getElementById('shopZipRight');
            }
            obj.innerHTML = ajax.responseText;
        }
    }
    ajax.send(null);
}
//-->
