var iplogsObj = new Object(); iplogsObj.stat = false; iplogsObj.post = "//musubikeiei.com/contents/store/iplogs/iplogs.cgi?"+document.referrer; function iplogsPost(){ iplogsAjaxObj = createXMLHttpRequest(); iplogsAjaxObj.onreadystatechange = iplogsGet; iplogsAjaxObj.open("GET",iplogsObj.post); iplogsAjaxObj.send(null); return false; } function iplogsGet(){ if ((iplogsAjaxObj.readyState == 4) && (iplogsAjaxObj.status == 200)) iplogsObj.stat = true; } function createXMLHttp() { try { return new ActiveXObject ("Microsoft.XMLHTTP"); }catch(e){ try { return new XMLHttpRequest(); }catch(e) { return null; } } return null; } function createXMLHttpRequest(){ var XMLhttpObject = null; try{ XMLhttpObject = new XMLHttpRequest(); } catch(e){ try{ XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e){ try{ XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e){ return null; } } } return XMLhttpObject; } iplogsPost();