// JavaScript Document
function confirm_delete(msg)
{
  if (confirm(msg)==true)
    return true;
  else
    return false;
}

function confirm_logout()
{
  if (confirm('Are you sure?\n\nYou want to logout!')==true)
    return true;
  else
    return false;
}

function DoCallback(url, params){
   // url:    URL to invoke
   // params: string object to pass to the remote URL

   // Add some parameters to the query string
   var pageUrl = url + "?callback=true&param=" + params;

   // Initialize the XmlHttp object
    try {
        //Mozilla Browsers
        xmlRequest = new XMLHttpRequest();
    } 
    catch (e) {
        try {
            //IE
            xmlRequest = new ActiveXObject("Microsoft.XMLHTTP");
        } 
        catch (e) {
            //Something else that won't work with this code...
            xmlRequest=false;
        }
    } 
    // Post our XmlRequest and get our desired string
    xmlRequest.open("GET", pageUrl, false);
    xmlRequest.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    xmlRequest.send(null);

    // Return the XmlHttp object
    return xmlRequest;
}
