﻿//variables used for image gallery tool
var imgFSWidth = 425; //main image width for filmstrip mode
var imgFSHeight = 425; //main image height for filmstrip mode
var imgFSHWidth = 550; //main image width for filmstrip horizontal mode
var imgFSHHeight = 285; //main image height for filmstrip horizontal mode
var imgGRDWidth = 400; //main image width for grid mode
var imgGRDHeight = 400; //main image height for grid mode
var imgNPWidth = 350; //main image width for grid mode
var imgNPHeight = 350; //main image height for grid mode

//variables used for paypal product gallery tool
var paypalFSWidth = 425; //main image width for filmstrip mode
var paypalFSHeight = 365; //main image height for filmstrip mode
var paypalFSHWidth = 350; //main image width for filmstrip horizontal mode
var paypalFSHHeight = 285; //main image height for filmstrip horizontal mode
var paypalGRDWidth = 400; //main image width for grid mode
var paypalGRDHeight = 340; //main image height for grid mode
var paypalNPWidth = 350; //main image width for next/previous mode
var paypalNPHeight = 290; //main image height for next/previous mode

function newWindow(url,target)
{
	window.open(url,target);
}

function frmEmailForm_Submit(cid,label,input)
{
    if(window.confirm("This form is being submitted via e-mail. Please be aware if you are sending sensitive information.\nDo you wish to proceed?"))
    {
        document.frmEmailForm.cid.value = cid;
        document.frmEmailForm.label.value = label;
        document.frmEmailForm.input.value = input;
        document.frmEmailForm.submit();
    }
}

function frmPayPal_Submit(item_name,item_number,amount,currency_code,os0)
{
    document.frmPayPal.item_name.value = item_name;
    document.frmPayPal.item_number.value = item_number;
    document.frmPayPal.amount.value = amount;
    document.frmPayPal.currency_code.value = currency_code;
    document.frmPayPal.os0.value = os0;
    document.frmPayPal.submit();
}

function openBCImageGallery()
{
    var gallery = window.open('bc.imagegallery.aspx','gallery','width=800,height=600,toolbars=0,resizable=1');
    gallery.focus();
}

function openBCPayPalGallery()
{
    var gallery = window.open('bc.productgallery.aspx','product','width=800,height=600,toolbars=0,resizable=1');
    gallery.focus();
}

function openBCBlog()
{
    var gallery = window.open('bc.blog.aspx','blog','width=800,height=600,toolbars=0,resizable=1');
    gallery.focus();
}

function openBCProdInfo(pid)
{
    var prodinfo = window.open('ProdInfo.aspx?pid='+pid,'product','width=800,height=600,toolbars=0,resizable=1');
    prodinfo.focus();
}

function openBCBlogComment(bcid)
{
    var blogcomment = window.open('BlogComment.aspx?bcid='+bcid,'blog','width=800,height=600,toolbars=0,resizable=1');
    blogcomment.focus();
}

function openBCBlogArchive(bid)
{
    var blogarchive = window.open('BlogArchive.aspx?bid='+bid,'blog','width=800,height=600,toolbars=0,resizable=1');
    blogarchive.focus();
}
