function loginIsValid() {
	var check=true;
	if (check&&document.getElementById('user').value=="") {check=false;alert("Username is Required");document.getElementById('user').focus();}
	if (check&&document.getElementById('pass').value=="") {check=false;alert("Password is Required");document.getElementById('pass').focus();}
	return check;
}

function showCreditTermsAndConditions() {
	window.open('credit_terms_and_conditions.php','creditTerms','left=20,top=20,width=500,height=500,toolbar=0,resizable=0');
}