
var xmlHttp6;

function L_ID(u_id,p_id,flag_u)
{ 
document.getElementById(login_whichElement).innerHTML = '<br><br>&nbsp;&nbsp;&nbsp;loading....';
//alert(document.getElementById(top_whichElement).innerHTML);
xmlHttp6=GetXmlHttpObject6();
//alert(u_id+p_id);
if (xmlHttp6==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
 
var url=login_whichLink;
url=url+"?u_id="+u_id+"&p_id="+p_id+"&flag_u="+flag_u;
//alert("url");
xmlHttp6.onreadystatechange=stateChanged6;
xmlHttp6.open("GET",url,true);
xmlHttp6.send(null);

//alert(url)//this is used to view the URL being sent to the query page.
}

function stateChanged6() 
{ 

if (xmlHttp6.readyState==4)
{ 

document.getElementById(login_whichElement).innerHTML=xmlHttp6.responseText;
}
}

function GetXmlHttpObject6()
{
var xmlHttp6=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp6=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp6=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp6=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp6;
}
function choose_l(id1,id2,id3)
{
//alert("H");
if (id3!="1" )
{
id3=0;	
}
	if (id1!='')
	{
		if( (document.login.un.value)=='' || (document.login.pwd.value)=='')
		{
		alert("User name and password required")	
			return(false);
		}
		L_ID(document.login.un.value,document.login.pwd.value,id3);
	}
	else
	{
		L_ID(id1,id2,id3);
	
	}
}

function create_acct(id)
{ 
	if (confirm("If you are NOT appointed with ATM,\nclick OK to start appointment process.\n\nIf you are already doing business with us and need\nan online account, please contact Front Desk \nat 714-414-1200 to create an account. "))
	{ 
	  window.open (id, 'newwindow', config='')
	
	}

}
