
function GetXmlHttp()
{
    var xmlHttp=null;

    try
    {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch(e)
    {
        // Internet Explorer
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch(e)
        {
            xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
    }

    if (xmlHttp==null)
    {
        alert ("Your browser does not support AJAX!");
        return;
    }

    return xmlHttp;
}

function Confirm_Delete_Link(msg)
{
    if(!msg)
    {
        msg = "هل أنت متأكد من الحذف .؟";
    }

    var result = confirm(msg);

    if(result == true)
    {
        return true;
    }
    else
    {
        return false;
    }
}

function hideshow(id)
{
    if(document.getElementById(id).style.display != "none")
    {
        document.getElementById(id).style.display = "none";
    }
    else
    {
        document.getElementById(id).style.display = "block";
    }
}

