﻿/// <reference path="jquery/jquery-1.4.1-vsdoc.js" />
    function entsub(event, myform) {

        var keynum;

        if(window.event) // IE
        {
            keynum = event.keyCode;
        }
        else if(event.which) // Netscape/Firefox/Opera
        {
            keynum = event.which;
        }
          
        if (keynum == 13) {
            myform.submit();
        }
    }
    $(document).ready(function() {
        /*************************** share this *********************************/
        var pageId = $('#pageId').attr('value');
        $('.facebook').attr('href', ('http://www.facebook.com/sharer.php?u=' + escape(window.location))); // + '&t=' + window.document.title

        $('.facebook').click(function() {
            window.open($(this).attr('href'), 'facebook', 'height=370,width=500');
            return false;
        });

        $('.ePost').click(function() {
            window.open($(this).attr('href'), 'emailpagewnd', 'width=400,height=520');
            return false;
        });

    });
