<!-- 

var req = false;

function sendPush() {
	var url = "http://www.yoyorock.com.tw/member/pushWapSiteUrl.jsp";

	var pushDestMsisdn = document.getElementById("pushDestMsisdn");
	var sendResult = document.getElementById("sendResult");
	
	if (pushDestMsisdn.value == '') {
		alert('請填寫門號');
		return;
	}

	
	url = url + "?msisdn=" + pushDestMsisdn.value;
	
	
    // branch for native XMLHttpRequest object
    if(window.XMLHttpRequest && !(window.ActiveXObject)) {
    	try {
			req = new XMLHttpRequest();
        } catch(e) {
			req = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req = false;
        	}
		}
    }
    
	if(req) {
		req.onreadystatechange = processReqChange;
		req.open("GET", url, true);
		req.send("");
		sendResult.innerHTML = "<font color='#FF0000'>發送中...</font>";
	}
}

function processReqChange() {
    // only if req shows "loaded"
    
    if (req.readyState == 4) {
        // only if "OK"
        if (req.status == 200) {
            var sendResult = document.getElementById("sendResult");
            sendResult.innerHTML = "<font color='#FF0000'>"+req.responseText+"</font>";
        } else {
            alert("There was a problem retrieving the XML data:\n" +
                req.statusText);
        }
    }
}


//-->