function send_country(){
	form = document.form_ccbill_1;
	if(form.formName[0].checked)
		form.country.value = 'US';
	else
		form.country.value = '';
}
function validaForm() {
	form = document.form_ccbill_1;
	var ls_username=form.username.value;
	if(ls_username=="")	{
		alert("Invalid Username!");
		form.username.focus();
		return false;								
	}
	if(ls_username.length > 16 || ls_username.length < 6 )	{
		alert("Username must contain a minimum 6 and maximum 16 characters");
		form.username.focus();
		return false;								
	}
	var ls_password=form.password.value;
	if(ls_password=="")	{
		alert("Invalid Password!");
		form.password.focus();
		return false;								
	}
	if(ls_password.length > 8 || ls_password.length < 6 )	{
		alert("Password must contain a minimum 6 and maximum 8 characters");
		form.password.focus();
		return false;								
	}
	if( ls_username == ls_password){
		alert("Username and password can't be the same");
		form.password.focus();
		return false;
	}
	//Other fields
	if(form.customer_fname.value == "")	{
		alert("Please, fill the First Name field.");
		form.customer_fname.focus();
		return false;								
	}
	if(form.customer_lname.value == "")	{
		alert("Please, fill the Last Name field.");
		form.customer_lname.focus();
		return false;								
	}
	if(form.email.value == "") {
		alert("Please, fill the E-mail field.");
		form.email.focus();
		return false;
	}
	var ls_email=form.email.value;
	if(ls_email.search("@")<0) {
		alert("Invalid E-mail!");
		form.email.focus();
		return false;
	}
	if(form.address1.value == "")	{
		alert("Please, fill the Address field.");
		form.address1.focus();
		return false;								
	}
	if(form.city.value == "") {
		alert("Please, fill the City field.");
		form.city.focus();
		return false;
	}
	if(form.zipcode.value == "") {
		alert("Please, fill the Zipcode field.");
		form.zipcode.focus();
		return false;
	}
	if(form.phone_number.value == "") {
		alert("Please, fill the Phone-number field.");
		form.phone_number.focus();
		return false;
	}
}
