function changeImageIcon(elementID, newImage)
{
    var imgControl = document.getElementById(elementID);
    imgControl.src = './images/' + newImage;
}

function goToPage(pageName, actionCode)
{
    document.index.dbAction.value = actionCode;
    document.index.page.value = pageName;
    document.index.submit(document.index);
}

function DNBMAWebsiteValidateFreeQuotes(actionCode)
{
    if (IsInvalidInput(document.index.freeQuoteFullName, "Please enter your full name")) return false;
    if (IsInvalidEmailAdress(document.index.freeQuoteEmail, true, "Please enter a valid email")) return false;
    if (IsInvalidNumber(document.index.freeQuoteMobile, 8000000000, 9999999999, "Please enter a valid mobile")) return false;
    if (document.index.freeQuotePSS.value == "Select One of the Product/Service/Solution ...") {
        alert('Select one of the product / service / solution for which you need a quote.');
        document.index.freeQuotePSS.focus();
        return false;
    }
	
    document.index.page.value = 'website_freequote';
    document.index.dbAction.value = actionCode;
    document.index.submit(document.index);
    return true;
}

function DNBMAWebsiteValidateQuickSMS(actionCode)
{
    if (IsInvalidInput(document.index.quickSMSFullName, "Please enter your full name")) return false;
    if (IsInvalidEmailAdress(document.index.quickSMSEmail, true, "Please enter a valid email")) return false;
    if (IsInvalidNumber(document.index.quickSMSMobile, 8000000000, 9999999999, "Please enter a valid mobile")) return false;
	
    document.index.page.value = 'website_quicksms';
    document.index.dbAction.value = actionCode;
    document.index.submit(document.index);
    return true;
}
