function lozRollover(lozno){

	img = document.getElementById('credit_' + lozno);
	img.src = '/layout/credit_' + lozno + '_on.gif';
	
}
function lozRestore(lozno){

	img = document.getElementById('credit_' + lozno);
	img.src = '/layout/credit_' + lozno + '_off.gif';

	
}
function openAppPopup(){
	if(window.newappwindow){
		window.newappwindow.close();
	}
	window.newappwindow = window.open('/applications/index.php','appwindow','width=600,resizable,scrollbars=yes,status=0');
	return true;
}
function quickQuote(){
	var loan_amount = document.getElementById('loan_amount').value;
	var loan_purpose = document.getElementById('loan_purpose').value;
	if(loan_amount && loan_purpose){
		window.newappwindow = window.open('/applications/index.php?loan_amount=' + loan_amount + '&loan_purpose=' + loan_purpose ,'appwindow','width=600,resizable,scrollbars=yes,status=0');	
	}
	else{
		if(!loan_amount){
			alert ('Please tell us how much you much to borrow!');
		}
		else if(!loan_purpose){
			alert ('Please tell us what you want to borrow this money for!');
		}
	}
	return false;
}