﻿
function openTable(tableid) {
    which = document.getElementById(tableid);
    if (which.style.display == "block") {
        which.style.display = "none";
    }
    else {
        which.style.display = "block";
    }
}
//added by us

function trimAll(sString) 
{
while (sString.substring(0,1) == ' ')
{
sString = sString.substring(1, sString.length);
}
while (sString.substring(sString.length-1, sString.length) == ' ')
{
sString = sString.substring(0,sString.length-1);
}
return sString;
}

function commentSubmit()
{
    alert('Thank you for contacting us. Our service customer service agent will respond to your comment within 24 hours.');
    window.location='http://www.mapmart.com';
}

function softwareInquirySubmit()
{
    alert('Thank you for contacting us. The software quote you requested will be emailed to you shortly.');
    window.location='http://www.mapmart.com';
}

function showProgress()
{
    document.getElementById('progressAnimation').style.visibility='visible';
    setTimeout('document.images["progressAnimation"].src = "../Resources/Images/progressbar.gif"', 200); 
    document.getElementById('ctl00_ctl00_ContentPlaceHolder1_productsContent_OrderThankYouForm1_waitLabel').style.visibility='visible';
}


