///this code is customized google analytics code designed to track form submissions as e-commerce transactions
var orderNum = GenerateOrderID();

function GenerateOrderID()
{
    // generate a random order id to use for the non-ecommerce tracking
    var randomNum = Math.floor(Math.random()*1000);
    var currentTime = new Date();
    var month = currentTime.getMonth()+1;
    var timestamp = " " + currentTime.getFullYear() + month 
        + currentTime.getDate() + "-" + currentTime.getHours() 
        + currentTime.getMinutes() + currentTime.getSeconds() 
        + "-" + randomNum;
    return(timestamp);
}

// generate a transaction for the submission
function GenerateTransaction(sku, productName, category, price, quantity)
{
    pageTracker._addTrans(orderNum, "", price, "", "", "", "", "");
    pageTracker._addItem(orderNum, sku, productName, category, price, quantity);
    pageTracker._trackTrans();
}



