﻿
function popradalert(email)
{
    var emailaddress = document.getElementById('hidEmail');
    emailaddress.value = email;
    radconfirm('Please note the following: If you are not sending an e-mail about a matter on which Alling & Jillson, Ltd. currently represents you, do not include any information in this e-mail that you or someone else considers confidential or secret in nature. Contacting Alling & Jillson, Ltd., or one of our attorneys, does not establish an attorney-client relationship, and sending confidential information without such a relationship in place does not create any confidentiality obligations.  By clicking on the prompt below to continue with this e-mail, if you are not a current client, you agree that we have no obligation to keep confidential any information in the e-mail and that we may represent a client adverse to you, even in a matter where the information could and will be used against you.<br>', confirmCallBackFn, 380, 300,this,'&nbsp;&nbsp;&nbsp;eMail Disclaimer'); 
    return false;
}


function popradalertvcard(vcard)
{
    var vcardaddress = document.getElementById('hidVCard');
    vcardaddress.value = vcard;
    radconfirm('Please note the following: If you are not sending an e-mail about a matter on which Alling & Jillson, Ltd. currently represents you, do not include any information in this e-mail that you or someone else considers confidential or secret in nature. Contacting Alling & Jillson, Ltd., or one of our attorneys, does not establish an attorney-client relationship, and sending confidential information without such a relationship in place does not create any confidentiality obligations.  By clicking on the prompt below to continue with this e-mail, if you are not a current client, you agree that we have no obligation to keep confidential any information in the e-mail and that we may represent a client adverse to you, even in a matter where the information could and will be used against you.<br>', confirmVCardCallBackFn, 380, 300,this,'&nbsp;&nbsp;&nbsp;eMail Disclaimer'); 
    return false;
}

function confirmCallBackFn(arg)
{
    if(arg=='Yes')
    {
        var emailaddress = document.getElementById('hidEmail').value;
        var win = window.open('mailto:'+emailaddress+'@ajattorneys.com','emailWindow'); 
        if (win && win.open &&!win.closed) win.close(); 
    }
}

function confirmVCardCallBackFn(arg)
{
    if(arg=='Yes')
    {
        var vcardaddress = document.getElementById('hidVCard').value;
        var win = window.open(vcardaddress,'vcardWindow'); 
        alert(vcardaddress);
        if (win && win.open &&!win.closed) 
        {
            win.close(); 
        }
        else
        {
            win = window.open(vcardaddress,'vcardWindow'); 
            if (win && win.open &&!win.closed) 
            {
                win.close(); 
            }
        }
    }
}
