
function printerFriendly() {
    //window.print();
    var url = '/printerfriendly/?url=' + location.href;
    var print = openWin(url, 'emailthis', '720', '540', 1);
}

function emailThis() {
    var url = '/emailthispage/?url=' + location.href;
    //document.getElementById('sendthisPage').style.display='';
    //GetRequest(url,'sendthisPage');
    var w = openWin(url, 'emailthis', '720', '590', 1);
    w.focus();
}



function openPrivacy() {
    var url = '/privacy';
    var privacy = openWin(url, 'privacy', '520', '590', 1);
    privacy.focus();
}

function openWin(url, wName, wWidth, wHeight, wResize) {
    features = 'menubar=0,toolbar=0,location=0,'
                     + 'directories=0,scrollbars=1,status=1,'
                     + 'resizable=' + ((wResize) ? 1 : 0)
                     + ((wWidth) ? ',width=' + wWidth : '')
                     + ((wHeight) ? ',height=' + wHeight : '');
    popWin = window.open(url, wName, features);
    return popWin;
}


function write_ea(o, t, e, a) {
    document.write('<a href="mailto:' + o + t + '@' + e + '.' + a + '">' + o + t + '@' + e + '.' + a + '<' + '/' + 'a>')
}

function write_ea(o, t, e, a, styleClass) {
    document.write('<a class="' + styleClass + '" href="mailto:' + o + t + '@' + e + '.' + a + '">' + o + t + '@' + e + '.' + a + '<' + '/' + 'a>')
}


function openImage(url) {
    //alert(url);
    GetRequest('gallery.asp?image=' + url, 'bigimagecontainer')
    document.getElementById('bigimagecontainer').style.display = '';
    //document.getElementById('bigimage').src=url;

}

function closeImage() {
    document.getElementById('bigimagecontainer').style.display = 'none';

}
