function getTestDriveNum() {
    var accountNumber = "<NLCOMPANYID>"; 
    return accountNumber;
}

function getCustomerID() {
    var customerID = "<%=getCurrentAttribute('customer','internalid')%>"; 
    return customerID;
}

function confirmLogin() {
    var loginEmail = "<%=getCurrentAttribute('customer','email')%>"; 
    return loginEmail;
}

//This will add a script reference from the file cabinet.  Required for product reviews
//and adding multiple items to cart at same time.
var headID = document.getElementsByTagName("head")[0];         
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
var testDriveString = getTestDriveNum();
if (parent.location.protocol == 'https:') {
    //alert('https');
    newScript.src = 'https://shopping.netsuite.com/c.' + testDriveString + '/site/HtmlDecodeStripped.js';
} else {
    //alert('http');
    newScript.src = 'http://shopping.netsuite.com/c.' + testDriveString + '/site/HtmlDecodeStripped.js';
}

headID.appendChild(newScript);
//-->
