﻿// JScript File

var strAsci="";
function AddTravelLoc(Str,ev,tbxID,btnid)
{
		strAsci=strAsci+ev.keyCode;
        if(Str.length>1)
        { 
            var str1=Str.substring(1,2);
            var charCodeval;
            charCodeval=Str.toUpperCase().charCodeAt(0).toString()+str1.toUpperCase().charCodeAt(0).toString();
            if((ev.keyCode!=38)&&(ev.keyCode!=40)&&(ev.keyCode!=13))
            {
                getSuggestionstbxLocationName(document.getElementById(tbxID).value,charCodeval,tbxID);
            }
			else if(ev.keyCode==13)
			{
				if(btnid)
				{
					//alert(btnid);
					//fnGoToSearch(tbxID);
					document.getElementById(btnid).click();
				}
				else
				{
					fnGoToSearch(tbxID);
				}
			}
            else
                suggesttbxLocationName(ev,charCodeval,tbxID);
        }
}

 function setfocus(id)
 {
    flagsetFocus=true;
    document.getElementById(id).focus();
 }
 function setHidStyle()
 {
 
  var cssdiv="display:block;height:1px;text-decoration:none;border:0px none #FFFFFF;font-size:1px;outline:#FFFFFF;background-color:#00468C;";
  if( typeof(document.getElementById('hidnCloseMe').style.cssText) == 'string' ) 
	    {
 	        document.getElementById('hidnCloseMe').style.cssText = cssdiv;
	    }
 }