function mailTo() {

    var str = document.location.href;
    var lang = "/en/";

    if (str.indexOf("/fr/") >= 0)
        lang = "/fr/";

    if (document.getElementById != null) {

        var obj = document.getElementById('printArea');

        if (obj != null) {

            var content = "";

            if (document.getElementsByTagName != null) {

                var obj_head = document.getElementsByTagName('head');

                if (obj_head != null) {
                    content += obj_head[0].innerHTML;
                }

            }

            content += "\n<body style='background-color: #fff;'><div id='searchResults'><table cellpadding='8' cellspacing='0' border='0' width='100%'><tr><td>" + obj.innerHTML + "</td></tr></table></div>";
            content += "</body>";

            document.forms['frmMailTo'].hdnContent.value = content;

            var myURL = new String(window.location);
            var myResult = myURL.indexOf("Module.aspx");
            if (myResult == -1) {
                var newWin = window.open(lang + 'email/mailto.aspx', "MailTo", "width=600,height=410,status=yes,menubar=no,location=no,resizable=yes");
            }
            else {
                alert("Sorry, email is disabled within iCaledar or iBlog generated pages");
            }
        }
    }

    else {
        alert("You're browser is not capable of performing this operation!");
    }

}