function validateID(ID)
{
	if ( ID.value.length < 7 )
	{
		alert ( "Your Dividend Miles number should contain at least 7 characters." );
		document.getElementById("dmid").focus();
	}
	else
	{
		g_ID = ID.value.toUpperCase();
		var strID = new String(ID.value.toUpperCase())
		var chkFifthChar = strID.substr(4,1)
		if ( strID.length == 11 && isNaN(chkFifthChar) )
		{
			strID = strID.substring(4,11);
		}	
		window.location.href = "include/usairways_digit_chk2.asp?ID=" + strID + "&dummy=" + new Date().getTime();	
	}
}

function validateInput()
{
	if ( document.getElementById("dmid").length < 7 )
	{
		alert ( "Your Dividend Miles number should contain at least 7 characters." );
		document.getElementById("dmid").value = "";
		document.getElementById("dmid").focus();
		return false;
	}		
	else if ( document.getElementById("accept_terms").checked == false )
	{
		alert ( "You cannot proceed without providing a valid ID number and acknowledging acceptance of the Terms and Conditions." );
		return false;
	}
	else
	{
		return true;
	}
}

function openTerms()
{
	var filename = "docs/US_Airways_Terms_Conditions.html";
	window.open( filename,null,"height=700,width=400,status=no,toolbar=no,menubar=no,location=no");
}