﻿
function FixAutoCompleteListWidth(){
    var objAutoComplete = $find('AutoCompleteEx').get_completionList();
    objAutoComplete.style.width = "auto";
    objAutoComplete.style.float = "left";
    
    if(objAutoComplete.offsetWidth < 180) 
        objAutoComplete.style.width = "180px";
    else if(navigator.appName.toLowerCase()=="netscape"){
        objAutoComplete.style.width = (objAutoComplete.offsetWidth + 15) + "px";
    }
}

//// MAKE TEXT DARK ////

function inputFocus(whichId,insertText)
{
    if (document.getElementById(whichId))
    {
        var d = document.getElementById(whichId);

        if (d.value==insertText)
        {
            d.style.color='#000000';
            d.value='';
        }
    }
}

//// RESET TEXT - MAKE IT LIGHT ////

function inputBlur(whichId,insertText,color)
{
    if (document.getElementById(whichId))
    {
        var d = document.getElementById(whichId);

        if (d.value=='')
        {
            if (!color)
            {
                d.style.color='#666';
            }
            d.value=insertText;
        }
    }
}



