/* JavaScript Document */
<!--
function doSubmit() {
	var mfrm = document.frmSignup;

	if ( mfrm.txtusername.value == '' ) {
		alert ( 'Falta Username' );
		mfrm.txtusername.focus();
		return false;
	} else if ( isNumeric ( mfrm.txtusername.value.charAt(0) ) ) {
		alert ( 'O username deve começar com alfabeto ' );
		mfrm.txtusername.focus();
		return false;				
	} else if ( mfrm.txtpassword.value == '' ) {
		alert ( 'Introduza password' );
		mfrm.txtpassword.focus();
		return false;
	} else if ( isNumeric( mfrm.txtpassword.value.charAt(0) ) ) {
		alert ( 'A password deve começar por uma letra' );
		mfrm.txtpassword.focus();
		return false;				
	} else if ( mfrm.txtpassword2.value == '' ) {
		alert ( 'Confirme a password' );
		mfrm.txtpassword2.focus();
		return false;
	} else if ( isNumeric( mfrm.txtpassword2.value.charAt(0) ) ) {
		alert ( 'A password (confirmar) deve começar por uma letra' );
		mfrm.txtpassword2.focus();
		return false;				
	} else if ( mfrm.txtpassword.value != mfrm.txtpassword2.value ) {
		alert ( 'A password e a confirmação devem ser iguais' );
		mfrm.txtpassword2.focus();
		return false;				
	} else if ( mfrm.txtfirstname.value == '' ) {
		alert ( 'Introduza primeiro nome' );
		mfrm.txtfirstname.focus();
		return false;
	} else if ( isNumeric( mfrm.txtfirstname.value.charAt(0) ) ) {
		alert ( 'Primeiro nome deve começar por uma letra' );
		mfrm.txtfirstname.focus();
		return false;				
	} else if ( !isAlphabetic( mfrm.txtfirstname.value ) ) {
		alert ( 'O primeiro  nome deve ser alfanumerico' );
		mfrm.txtfirstname.focus();
		return false;				
	} else if ( mfrm.txtlastname.value == '' ) {
		alert ( 'Introduza o último nome' );
		mfrm.txtlastname.focus();
		return false;
	} else if ( isNumeric( mfrm.txtlastname.value.charAt(0) ) ) {
		alert ( 'O último nome deve começar por uma letra' );
		mfrm.txtlastname.focus();
		return false;				
	} else if ( !isAlphabetic( mfrm.txtlastname.value ) ) {
		alert ( 'O último nome deve ser alfanumerico' );
		mfrm.txtlastname.focus();
		return false;				
	} else if ( mfrm.txtemail.value == '' ) {
		alert ( 'Introduza email' );
		mfrm.txtemail.focus();
		return false;
	} else if ( !isValidEmail( mfrm.txtemail.value ) ) {
		alert ( 'Introduza um email válido' );
		mfrm.txtemail.focus();
		return false;
	} else if ( mfrm.txtcity.value == '' ) {
		alert ( 'Introduza a cidade' );
		mfrm.txtcity.focus();
		return false;
	} else if ( isNumeric( mfrm.txtcity.value.charAt(0) ) ) {
		alert ( 'A cidade deve ser alfanumérica' );
		mfrm.txtcity.focus();
		return false;				
	} else if ( mfrm.txtstateprovince.value == '' ) {
		alert ( 'Introduza o Estado ou Província' );
		mfrm.txtstateprovince.focus();
		return false;
	} else if ( mfrm.txtzip.value == '' ) {
		alert ( 'Introduza o código Postal' );
		mfrm.txtzip.focus();
		return false;
	} else if ( mfrm.txtaddress1.value == '' ) {
		alert ( 'Introduza o endereço  linha 1' );
		mfrm.txtaddress1.focus();
		return false;
	} else {
		return true;
	}
	return false;
}

-->
