//Custom Form Verification For Webonizer
//Written by Shawn Olson
//Copyright (c) 2006

//Group Membership
var SITEADMIN=1;
//Organization

var INDIVIDUAL=1;

var myTypes=0;


function customErrorChecking(formObj){
var customError = 0;
var customMessage = '';
if (formObj.BIO){
  if(changeVal(formObj.BIO,true,true)){
    customError++;
	customMessage+='\n\nYou must enter a profile/bio.';
  }   
  if(changeVal(formObj.ABOUT,true,true)){
    customError++;
	customMessage+='\n\nYou must enter a brief description.';
  }   
  if(changeVal(formObj.ZIP,true,true)){
    customError++;
	customMessage+='\n\nYou must enter a zip code.';
  }  
  if(changeVal(formObj.ADDR,false,true)){
    customError++;
	customMessage+='\n\nYou must enter an appropriate street address.';
  } 
  if(changeVal(formObj.CITY,true,true)){
    customError++;
	customMessage+='\n\nYou must enter your city address.';
  } 
  if(changeVal(formObj.state,true,true)){
    customError++;
	customMessage+='\n\nYou must enter your state/province. If you live in a country with no states/provinces, copy your city into this field.';
  }   
  if(changeVal(formObj.COUNTRY,true,true)){
    customError++;
	customMessage+='\n\nYou must choose your country from our list. If your country is not on our list, please feel free to contact us.';
  } 


	  if((formObj.ADDR.value=='' || formObj.ADDR.value=='Invalid')){
	  customError++;
	  customMessage+='\n\nThe organizational level you selected requires that you enter your street address.';}
	  if((formObj.PHONE.value=='' || formObj.PHONE.value=='Invalid') && formObj.stuff.value=='false'){
	  customError++;
	  customMessage+='\n\nYou must enter your telephone number.';}

    birthName = 'birth'; 

  getMyTypes(formObj);

  if(formObj.day.value=='0'){customError++; customMessage+='\n\nYou must set your '+birthName+' day.';}
  if(formObj.month.value=='00'){customError++; customMessage+='\n\nYou must set your '+birthName+' month.';}
  if(formObj.year.value=='0000'){customError++; customMessage+='\n\nYou must set your '+birthName+' year.';}
  
}

var myMessage = new Array();
myMessage['customError'] = customError * 1;
myMessage['customMessage'] = customMessage;
return myMessage;
}

function checkNames(formObj, quiet){ 

    anIndividual = true;

if(anIndividual==true){
    makeRemark('birthname','Birthday:');

 }


}

function getMyTypes(formObj){

}

function myArts(formObj){
  checkNames(formObj);

}