function AddOption(){
	var tempObj = document.getElementById("VisaSelect");
	for(var i=0; i<VisaArray.length; i++){
		tempObj.options.add(new Option(" "+VisaArray[i][0],VisaArray[i][1]));
	}
	var tempObjInput = document.getElementById("VisaInput");
	tempObj.onkeyup = function(event){
		var tempObj = document.getElementById("VisaSelect");
		event=event?event:(window.event?window.event:null);
		var kc=event.keyCode;
		if(kc==0)
			return;
		if(kc==13){
			if(tempObj.value!="")
				window.location = tempObj.value;
			return;
		}
	}
	tempObjInput.onkeyup = function(event){
		var tempObj = document.getElementById("VisaSelect");
		event=event?event:(window.event?window.event:null);
		var kc=event.keyCode;
		if(kc==0)
			return;
		if(kc==13){
			if(tempObj.value!="")
				window.location = tempObj.value;
			return;
		}
		if(kc==40){
			if(tempObj.selectedIndex<=0)
				tempObj.selectedIndex = 0;
			tempObj.selectedIndex = tempObj.selectedIndex + 1;
			tempObj.value = tempObj.options[tempObj.selectedIndex].value;
			return;
		}
		if(kc==38){
			if(tempObj.selectedIndex<=0)
				tempObj.selectedIndex = 0;
			else
				tempObj.selectedIndex = tempObj.selectedIndex - 1;
			tempObj.value = tempObj.options[tempObj.selectedIndex].value;
			return;			
		}
		var ObjValue = (this.value).toUpperCase();	
		if(kc>=65&&kc<=90&& ObjValue.length==1){
			for(var i=0; i<tempObj.options.length; i++){
				if(Trim(tempObj.options[i].text).substr(0,1) == String.fromCharCode(kc)  ){
					tempObj.value = tempObj.options[i].value;
					return;
				}		
			}			
			return;	
		}		
		
		for(var i=0; i<tempObj.options.length; i++){
			if(tempObj.options[i].text.indexOf(ObjValue)!=-1){
					tempObj.value = tempObj.options[i].value;
					return;
			}				
		}
		return;
	}
	return;
}

function GoUrl(){
	var tempObj = document.getElementById("VisaSelect");
	if(tempObj.value!="")
		window.location = tempObj.value;
	return;
}