function strTrim(str2Trim)
{
    return str2Trim.replace(/^[ \t]* | [ \t]*$/g, "");
}

function ChangeExchange()
{
    index = document.LookUp.issuetype.selectedIndex;
    type = document.LookUp.issuetype.options[index].value;

    if (type == "")
        alert ("This is not a valid choice. Please choose an issue type or exchange.");
}

function CheckLookup()
{
    lookupval = strTrim(document.LookUp.LookupValue.value);

    if (lookupval.length == 0) {
        alert("Please enter a search value");
        document.LookUp.LookupValue.focus();
        return false;
    }
    index = document.LookUp.issuetype.selectedIndex;
    type = document.LookUp.issuetype.options[index].value;

    if (type.length == 0) {
        alert ("This is not a valid choice. Please choose an issue type or exchange.");
        return false;
    }
    return true;
}