// Javascript function for opening up a window
function NewWindow(PageToShow, WindowWidth, WindowHeight)
{
    // Grab the current page height
    var PageHeight = screen.height;
    var PageWidth = screen.width;
    
    
    // Determine the top and left positions
    var PageTop = ((PageHeight - WindowHeight) / 2);
    var PageLeft = ((PageWidth - WindowWidth) / 2);
    
    
    // Open up the new window
    window.open(PageToShow, "null", "width=" + WindowWidth + ", height=" + WindowHeight + ", top=" + PageTop + ", Left=" + PageLeft + "location=no, menubar=no, resizeable=no, scrollbars=no, status=no, titlebar=no, toolbar=no");
}

// Javascript function for the tell a friend onclick event
function TellFriend()
{
    // Grab the current page height
    var PageHeight = screen.height;
    var PageWidth = screen.width;
    
    
    // Determine the top and left positions
    var PageTop = ((PageHeight - 550) / 2);
    var PageLeft = ((PageWidth - 600) / 2);
    
    
    // Grab the current url that we are on
    var CurrentURL = location.href;
    CurrentURL = CurrentURL.replace(/&/, "%26");
    var NewURL = "/wrt/Dynamic/TellFriend.aspx?from=" + CurrentURL;
    
    
    // Open up the new window
    window.open(NewURL, "null", "width=600, height=550, top=" + PageTop + ", Left=" + PageLeft + "location=no, menubar=no, resizeable=yes, scrollbars=yes, status=no, titlebar=no, toolbar=no");
}