<!--
function ServiceLevel(SLa, STa, DDa, CNa){
var SL = SLa;
var ST = STa;
var DD = DDa;
var CN = CNa;
if(CN = "U S Title Agency, Inc."){
var CoN = "Y";
}else{
var CoN = "N";
}
if(SL == "A"){
if(ST == "A"){ //Active User
}
else if(ST == "S"){ //Suspended User
alert("USER ACCOUNT SUSPENDED...\n\nYour TitleWizard user account and login has been suspended.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "C"){ //Cancelled User
alert("USER ACCOUNT CANCELLED...\n\nYour TitleWizard user account and login has been cancelled.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "O" && CoN =="N"){ //Order Center Only
alert("LIMITED USER ACCOUNT...\n\nYour account has been limited to the use of the Order Center only.\n\nThe Order Center account allows no creation or editing of existing orders.  Please contact your TitleWizard representative for additional information.");
}
else{
}
}
else if(SL == "S"){
alert("SERVICE SUSPENDED...\n\nYour TitleWizard service has been suspended.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(SL == "C"){
alert("SERVICE CANCELLED...\n\nYour TitleWizard service has been cancelled.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(SL == "D"){
if("<% = dVar %>" != "Expired"){
alert("TitleWizard Demo Account...\n\nYou have logged in to a TitleWizard demo account which expires on: " + DD + "\n\nThe demo account is fully functional until the date of expiration.  Please contact your TitleWizard representative for additional information.");
}
else{
alert("TitleWizard Demo Account...\n\nYou have logged in to a TitleWizard demo account which expired on: " + DD + "\n\nYour Demo Account is no longer available. Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
if(ST == "A"){ //Active User
}
else if(ST == "S"){ //Suspended User
alert("USER ACCOUNT SUSPENDED...\n\nYour TitleWizard user account and login has been suspended.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "C"){ //Cancelled User
alert("USER ACCOUNT CANCELLED...\n\nYour TitleWizard user account and login has been cancelled.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "O" && CoN =="N"){ //Order Center Only
alert("LIMITED USER ACCOUNT...\n\nYour account has been limited to the use of the Order Center only.\n\nThe Order Center account allows no creation or editing of existing orders.  Please contact your TitleWizard representative for additional information.");
}
else{ //Do Nothing
}
}
else if(SL == "E"){
alert("TitleWizard Service Limit...\n\nYou have logged in to a TitleWizard limit account.\n\nThe limit account is fully functional, however it is restricted and will not allow new orders or edits to existing orders.  Please contact your TitleWizard representative for additional information.");
if(ST == "A"){ //Active User
}
else if(ST == "S"){ //Suspended User
alert("USER ACCOUNT SUSPENDED...\n\nYour TitleWizard user account and login has been suspended.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "C"){ //Cancelled User
alert("USER ACCOUNT CANCELLED...\n\nYour TitleWizard user account and login has been cancelled.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "O" && CoN =="N"){ //Order Center Only
alert("LIMITED USER ACCOUNT...\n\nYour account has been limited to the use of the Order Center only.\n\nThe Order Center account allows no creation or editing of existing orders.  Please contact your TitleWizard representative for additional information.");
}
else{ //alert("Welcome to TitleWizard!");
}
}
else{
if(ST == "A"){ //Active User
}
else if(ST == "S"){ //Suspended User
alert("USER ACCOUNT SUSPENDED...\n\nYour TitleWizard user account and login has been suspended.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "C"){ //Cancelled User
alert("USER ACCOUNT CANCELLED...\n\nYour TitleWizard user account and login has been cancelled.  Please contact your TitleWizard representative for additional information.");
window.location="Security/Logout.asp";
}
else if(ST == "O" && CoN =="N"){ //Order Center Only
alert("LIMITED USER ACCOUNT...\n\nYour account has been limited to the use of the Order Center only.\n\nThe Order Center account allows no creation or editing of existing orders.  Please contact your TitleWizard representative for additional information.");
}
else{
}
}
}
function Login(){
if(document.frmLogin.lname.value == ""){
	alert('Missing Login...\n\nYou must enter both a LOGIN (Your E-Mail Address) and a valid PASSWORD to access TitleWizard.\n\nPlease enter LOGIN and PASSWORD, then try again.');
}
else if(document.frmLogin.password.value == ""){
	alert('Missing Password...\n\nYou must enter both a LOGIN (Your E-Mail Address) and a valid PASSWORD to access TitleWizard.\n\nPlease enter LOGIN and PASSWORD, then try again.');
}
else{
	document.frmLogin.action='Security/passCheck.asp?H=' + screen.height + '&W=' + screen.width;
	document.frmLogin.submit();
}
}
top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
//-->
