// JavaScript Document

// JavaScript Document
function EmailAddr(codedEmail)
{
    var temp = new String(codedEmail);
    var reAT = new RegExp("_AT_", "g");
    var reDOT = new RegExp("_DOT_", "g");
    temp = temp.replace(reAT, '@');
    temp = temp.replace(reDOT, '.');
    result = 'mailto:' + temp + '?subject=UNC financial aid question' + '&body=Student\'s PID:';
//    alert(result);
    document.location=result;
}

function EmailOSchol(codedEmail)
{
    var temp = new String(codedEmail);
    var reAT = new RegExp("_AT_", "g");
    var reDOT = new RegExp("_DOT_", "g");
    temp = temp.replace(reAT, '@');
    temp = temp.replace(reDOT, '.');
    result = 'mailto:' + temp + '?subject=Outside Scholarships question/info' + '&body=Student\'s PID:%0A%0AStudent\'s Name:%0A%0AScholarship Title:%0A%0AScholarship Provider:%0A%0AQuestion/Info:';
//    alert(result);
    document.location=result;
}

function EmailPlain(codedEmail)
{
    var temp = new String(codedEmail);
    var reAT = new RegExp("_AT_", "g");
    var reDOT = new RegExp("_DOT_", "g");
    temp = temp.replace(reAT, '@');
    temp = temp.replace(reDOT, '.');
    result = 'mailto:' + temp;
//    alert(result);
    document.location=result;
}