



//Personal Information

function AccountValidate(__acc){
	if(__acc < 0 || __acc  == 0 || __acc  == "" || isNaN(__acc)){
		return false;
	}
	return true;
}

function ContactValidate(__contact){
	if( __contact  == "" || __contact < 0 || __contact  == 0 || __contact >0){
		return false;
	}
	return true;
}

function TitleValidate(__title){
	if(__title < 0 || __title > 0 || __title  == 0 || __title  == ""){
		return false;
	}
	return true;
}

function PhoneValidate(__phone){
	if(__phone < 0  || __phone  == "" || isNaN(__phone)){
		return false;
	}
	return true;
}


function PhoneWValidate(__phonew){
	if(__phonew < 0  || __phonew  == "" || isNaN(__phonew)){
		return false;
	}
	return true;
}

function FaxValidate(__fax){
	if(__fax < 0  || __fax  == "" || isNaN(__fax)){
		return false;
	}
	return true;
}

function EmailValidate(__email){
	if(__email.indexOf("@") == -1 || __email.indexOf("@") == 0 || __email.indexOf(".") == -1 || __email.indexOf(".") < 3){
		return false;
	}
	return true;
}

function CellphoneValidate(__cellphone){
	if(__cellphone < 0  || __cellphone  == "" || isNaN(__cellphone)){
		return false;
	}
	return true;
}

function SpouseNameValidate(__spousename){
	if(__spousename < 0 || __spousename > 0 || __spousename  == 0 || __spousename == ""){
		return false;
	}
	return true;
}


/*function SpouseCellValidate(__spousecell){
	if(__spousecell < 0  || __spousecell  == "" || isNaN(__spouseCell)){
		return false;
	}
	return true;
}
*/


function SalutationValidate(__salutation){
	if(__salutation < 0  || __salutation  == ""  || __salutation > 0){
		return false;
	}
	return true;
}

function IDValidate(__id){
	if(__id < 0  || __id  == ""  || __id > 0){
		return false;
	}
	return true;
}

function YearJoinedValidate(__yearjoined){
	if(__yearjoined < 0  || __yearjoined  == ""){
		return false;
	}
	return true;
}

function IdNumberValidate(__idnumber){
	if(__idnumber < 0  || __idnumber  == "" || isNaN(__idnumber)){
		return false;
	}
	return true;
}


function AddressValidate(__address){
	if(__address < 0  || __address  == ""){
		return false;
	}
	return true;
}

function CityValidate(__city){
	if(__city < 0  || __city  == "" || __city > 0){
		return false;
	}
	return true;
}

function ProvinceValidate(__province){
	if(__province < 0  || __province  == "" || __province > 0){
		return false;
	}
	return true;
}

function PostalCodeValidate(__postalcode){
	if(__postalcode < 0  || __postalcode  == "" || isNaN(__postalcode)){
		return false;
	}
	return true;
}


function Child1Validate(__child1){
	if(__child1 < 0  || __child1  == "" || __child1 > 0){
		return false;
	}
	return true;
}

 
function Child2Validate(__child2){
	if(__child2 < 0  || __child2  == "" || __child2 > 0){
		return false;
	}
	return true;
}


function Child3Validate(__child3){
	if(__child3 < 0  || __child3  == "" || __child3 > 0){
		return false;
	}
	return true;
}

function ReferredByValidate(__referredby){
	if(__referredby < 0  || __referredby  == "" || __referredby > 0){
		return false;
	}
	return true;
}

function LastResultValidate(__lastresult){
	if(__lastresult < 0  || __lastresult  == "" ){
		return false;
	}
	return true;
}

//End

function KeelboattypeValidate(__keelboattype){
	if(__keelboattype < 0  || __keelboattype  == "" || __keelboattype > 0 ){
		return false;
	}
	return true;
}

function KeelboatsailnoValidate(__keelboatsailno){
	if(__keelboatsailno < 0  || __keelboatsailno  == "" || isNaN(__keelboatsailno){
		return false;
	}
	return true;
}

function KeelboatnameValidate(__keelboatname){
	if(__keelboatname < 0  || __keelboatname  == "" ){
		return false;
	}
	return true;
}

function KeelboatmooringValidate(__keelboatmooring){
	if(__keelboatmooring < 0  || __keelboatmooring  == ""){
		return false;
	}
	return true;
}


function Keelboattrailer2Validate(__keelboattrailer2){
	if(__keelboattrailer2 < 0  || __keelboattrailer2  == ""){
		return false;
	}
	return true;
}

function KeelboattenderValidate(__keelboattender){
	if(__keelboattender < 0  || __keelboattender  == ""){
		return false;
	}
	return true;
}

function Boattype1Validate(__boattype1){
	if(__boattype1 < 0  || __boattype1  == ""){
		return false;
	}
	return true;
}


function Boatsailno1Validate(__boatsailno1){
	if(__boatsailno1 < 0  || __boatsailno1  == "" || isNaN(__boatsailno1)){
		return false;
	}
	return true;
}

function Boatname1Validate(__boatname1){
	if(__boatname1 < 0  || __boatname1  == ""){
		return false;
	}
	return true;
}


function Boattype2Validate(__boattype2){
	if(__boattype2 < 0  || __boattype2  == ""){
		return false;
	}
	return true;
}


function Boatsailno2Validate(__boatsailno2){
	if(__boatsailno2 < 0  || __boatsailno2  == "" || isNaN(__boatsailno2)){
		return false;
	}
	return true;
}

function Boatname2Validate(__boatname2){
	if(__boatname2 < 0  || __boatname2  == ""){
		return false;
	}
	return true;
}

function Boattype3Validate(__boattype3){
	if(__boattype3 < 0  || __boattype3  == ""){
		return false;
	}
	return true;
}


function Boatsailno3Validate(__boatsailno3){
	if(__boatsailno3 < 0  || __boatsailno3  == "" || isNaN(__boatsailno3)){
		return false;
	}
	return true;
}

function Boatname3Validate(__boatname3){
	if(__boatname3 < 0  || __boatname3  == ""){
		return false;
	}
	return true;
}

function SiteNoValidate(__siteno){
	if(__siteno < 0  || __siteno  == "" || isNaN(__siteno)){
		return false;
	}
	return true;
}

function SiteTypeValidate(__sitetype){
	if(__sitetype < 0  || __sitetype  == "" ){
		return false;
	}
	return true;
}


function UnitTypeValidate(__unittype){
	if(__unittype < 0  || __unittype  == "" ){
		return false;
	}
	return true;
}


function ElectricityValidate(__electricity){
	if(__electricity < 0  || __electricity  == "" ){
		return false;
	}
	return true;
}


function WaterValidate(__water){
	if(__water < 0  || __water  == "" ){
		return false;
	}
	return true;
}

function DescriptionValidate(__descriptiion){
	if(__description < 0  || __description  == "" ){
		return false;
	}
	return true;
}


function PurchClubCabinValidate(__purchclubcabin){
	if(__purchclubcabin < 0  || __purchclubcabin  == "" ){
		return false;
	}
	return true;
}



function AmtValidate(__amt){
	if(__amt < 0  || __amt  == "" || isNaN(__amt) ){
		return false;
	}
	return true;
}





function Register(){
	/*var fields = new Array('name', 'surname', 'strEmail');
	
	for(var key in fields){
		if(document.getElementById(fields[key]).value == ''){
			alert('Please enter a '+fields[key]);
			document.getElementById(fields[key]).focus();
			return false;
		}
	}
	*/
	
	
	
	
	if(!AccountValidate(document.getElementById('strAccount').value)){
		alert('Enter a valid account number');
		document.getElementById('strAccount').focus();
		return false;
	}
	
	
	
	if(!ContactValidate(document.getElementById('strContact').value)){
		alert('Enter a valid contact');
		document.getElementById('strContact').focus();
		return false;
	}
	
	if(!TitleValidate(document.getElementById('strTitle').value)){
		alert('Enter a valid title');
		document.getElementById('strTitle').focus();
		return false;
	}
	
	
	if(!PhoneValidate(document.getElementById('strPhone').value)){
		alert('Enter a valid phone number');
		document.getElementById('strPhone').focus();
		return false;
	}
	
	if(!PhoneWValidate(document.getElementById('strPhoneW').value)){
		alert('Enter a valid work phone number');
		document.getElementById('strPhoneW').focus();
		return false;
	}
	
	if(!FaxValidate(document.getElementById('strFax').value)){
		alert('Enter a valid fax number');
		document.getElementById('strFax').focus();
		return false;
	}
	
	
	if(!EmailValidate(document.getElementById('strEmail').value)){
		alert('Enter a valid email address');
		document.getElementById('strEmail').focus();
		return false;
	}
	
	
	if(!CellphoneValidate(document.getElementById('strCellphone').value)){
		alert('Enter a valid cellphone number');
		document.getElementById('strCellphone').focus();
		return false;
	}
	
	if(!SpouseNameValidate(document.getElementById('strSpouseName').value)){
		alert('Enter a valid spouse name');
		document.getElementById('strSpouseName').focus();
		return false;
	}
	
	/*if(!SpouseCellValidate(d