﻿// JScript File
function MsgOff()
{
	return MsgOn("");
}

function MsgOn(str)
{
	window.status = str;
	return true;
}

var PayPalWindow = null;
var MainWindow = null;
// Opens a PayPal window
function OpenPayPalWindow(url)
{
    MainWindow = self;
    if((!PayPalWindow) || PayPalWindow.closed)
        // If the PayPal window doesn't exist, we open it
        PayPalWindow = window.open(url, "cart", "height=130, width=1000");
    else
    {
        // If the Paypal window exists, we make it show
        PayPalWindow.location.href=url;
        PayPalWindow.focus();
    }
}

function CloseShoppingCart()
{
    //PayPalWindow.focus();
    if(PayPalWindow && !PayPalWindow.closed)
    {
        PayPalWindow.close();
        MainWindow.focus();
    }
}

