// JavaScript Document
function momaWindow()
{
    var poppedWindow;


    /*
    the stuff below doesn't make sense.  How can popped window be true
    and false at the same time?  Who knows but in ie, if you don't
    do it this way, you get an error
    */

    if(!poppedWindow || poppedWindow.closed)
    {
        poppedWindow=window.open(myurl,'mywin','width=1400,height=1000,scrollbars=1,resizable=1');

        if(poppedWindow)
        {
            poppedWindow.focus();   
        }
        else
        {
            location.href=myurl;
        }
    }
    else
    {
        //if the window exists, replace it's current url with passed url, then focus window

        poppedWindow.location.href=myurl;
        poppedWindow.focus();   
    }
}
function acrobatWindow()
{
    var poppedWindow;


    if(!poppedWindow || poppedWindow.closed)
    {
        poppedWindow=window.open(acrourl);

        if(poppedWindow)
        {
            poppedWindow.focus();   
        }
        else
        {
            location.href=myurl;
        }
    }
    else
    {
        //if the window exists, replace it's current url with passed url, then focus window

        poppedWindow.location.href=acrourl;
        poppedWindow.focus();   
    }
}
function emailWindow()
{
    var poppedWindow;

    emailurl="http://www.incrediblefeatures.com/story/sendstory/emailstory.php";
    if(!poppedWindow || poppedWindow.closed)
    {
        poppedWindow=window.open(emailurl,'emailwin','width=600,height=500,scrollbars=1,resizable=1');
        if(poppedWindow)
        {
            poppedWindow.focus();   
        }
        else
        {
            location.href=myurl;
        }
    }
    else
    {
        //if the window exists, replace it's current url with passed url, then focus window

        poppedWindow.location.href=emailurl;
        poppedWindow.focus();   
    }
}

function KillEmailPopup(){

   WorkingMessage();

   emailwin.close();
}