function toggle_id(id) {
    var e = document.getElementById(id).style.display;
    if (e == 'none') {
        document.getElementById(id).style.display = '';
    } else {
        document.getElementById(id).style.display = 'none';
    }
}

function curl(url) {
    var xmlhttp = null;
    if (window.XMLHttpRequest) {
        // Mozilla
        xmlhttp = new XMLHttpRequest();
    } else if (window.ActiveXObject) {
        // IE
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.open("GET", url, true);
    xmlhttp.onreadystatechange = function() {
        if(xmlhttp.readyState == 4 && xmlhttp.status == 200) {
        }
    }
    xmlhttp.send(null);
}

