function submitForm(form) {
	if (document.getElementById('user').value == "") return false;
	if (validate_email( document.getElementById('email'),"you blew it" )) return false;
	if (document.getElementById('captcha').value == "") return false;

	document.getElementById(form).submit();
}

function checkUsername() {
	ajax_dataReturn(dataSource);
}

function validate_email( field , alerttxt ) {
	with ( field ) {
		apos = value.indexOf( "@" );
		dotpos = value.lastIndexOf( "." );
		if ( apos<1 || dotpos-apos<2 ) {
			alert( alerttxt );
			return false;
		}
		else {
			return true;
		}
	}
}



function checkCaptcha() {

}
