function confirmSubmit()
{
    conf = confirm("Are you sure you want to delete this?");

    if(conf){
        return true;
    } else {
        return false;
    }
}

function capCheck(theForm) {
 var xmlhttp;
 var sReply;
 DataToSend = "action=process&captext=" + escape(theForm.captext.value);
 if (window.XMLHttpRequest) {
     xmlhttp=new XMLHttpRequest();
     xmlhttp.open("POST",'process.php',false);
     xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
     xmlhttp.send(DataToSend);
     sReply = xmlhttp.responseText;
 } else if (window.ActiveXObject) {
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
     xmlhttp.open("POST",'process.php',false);
     xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
     xmlhttp.send(DataToSend);
     sReply = xmlhttp.responseText;
 }
 if (sReply == "good") {
      return true;
 } else if (sReply == "bad") {
     alert("Numbers Incorrectly Entered"); return false;
 } else if (sReply == "") {
     alert("You must enter the numbers!"); return false;
 } else {
     alert("Error"); return false;
 }
}

function toggleCheckboxes(masterid, name)
{
    flag = (document.getElementById(masterid).checked);
    nodes = document.getElementsByName(name);
    if(nodes.length > 0)
    {
        for(i=0;i < nodes.length; i++)
        {
            nodes[i].checked = flag;
        }
    }
}

function hw(){alert('hi');}