//====================================================================
//	General Functions
//====================================================================

	function UpdateClientType()
		{
//		alert('ClientType');
		document.getElementById('ClientName').style.display = 'block';
		document.getElementById('ClientName').value = '';
		setTimeout("document.getElementById('ClientName').focus()", 100);
		document.getElementById('Submit').style.display = 'block';
		}

	function SubmitForm()
		{
//		alert('Submit Form');
//		alert(document.getElementById('ClientName').value);
		GetClients(document.getElementById('ClientName').value);
		}



//====================================================================
//	XmlHttpRequest Functions
//====================================================================

//	[ Create XmlHttpRequest Objects ]
	if (window.XMLHttpRequest)
		{
		xLogin = new XMLHttpRequest();
		}
	else if (window.ActiveXObject)
		{
		xLogin = new ActiveXObject("Microsoft.XMLHTTP");
		}


//	[ Get Clients ]
	function GetClients(value)
		{
//		alert(value);
		if(xLogin)
			{
			xLogin.open("GET", '/Login/ClientListDetail.asp?ClientName=' + escape(value));
			xLogin.onreadystatechange = function()
				{
				if (xLogin.readyState == 4 && xLogin.status == 200)
					{
					document.getElementById('ClientList').innerHTML = xLogin.responseText;
//					alert('complete');
					}
				}
			xLogin.send(null);
			}
		}