function popup($url,$width,$height) {
    $options = 'width=' + $width + ',height=' + $height + ',dependent=1,resizable=0,scrollbars=1,location=0,status=0';
    $popup = window.open($url, 'Popup', $options);
};
function HighlightRowIfChecked(checkBox){
    var classes = checkBox.checked ? "select" : "normal";
    var el = checkBox.parentNode;
    while(el.tagName.toLowerCase() != "tr"){
        el = el.parentNode;
    }
    el.className = classes;
};
function check_all() {
    var boxs = document.table.id;
    for($x = 0; $x < boxs.length; $x++) {
        $style = boxs[$x].parentNode;
        while($style.tagName.toLowerCase() != "tr"){
            $style = $style.parentNode;
        }
        
        if(document.table.checkall.checked == true) {
            boxs[$x].checked = true;
            $style.className = "select";
        } else {
            boxs[$x].checked = false;
            $style.className = "normal";
        }
    }
};

$("#check").click(function(){

var content = $("#check").val();
var url = 'submit=1&content=' + content;


 $.ajax({
   type: "POST",
   url: "process.php",
   data: url,
   success: function(){
   
   alert("Added");
   
   }
 });
return false;
alert("Returned False");
});