function BusinessEdit(form) {
	var category = form.category.value;
	var companyName = form.companyName.value;
	var address = form.address.value;
	var location = form.location.value;
	var phone = form.phone.value;
if(category == "") {
    inlineMsg('category','Please select a business category.',2);
    return false;
  }
if(companyName == "") {
    inlineMsg('companyName','Please enter a company name.',2);
    return false;
  }
if(address == "") {
    inlineMsg('address','Please enter a address.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
if(phone == "") {
    inlineMsg('phone','Please a phone number.',2);
    return false;
  }
  return true;
}

function healthCareEdit(form) {
	var category = form.category.value;
	var companyName = form.companyName.value;
	var address = form.address.value;
	var location = form.location.value;
	var phone = form.phone.value;
if(category == "") {
    inlineMsg('category','Please select a business category.',2);
    return false;
  }
if(companyName == "") {
    inlineMsg('companyName','Please enter a company name.',2);
    return false;
  }
if(address == "") {
    inlineMsg('address','Please enter a address.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
if(phone == "") {
    inlineMsg('phone','Please a phone number.',2);
    return false;
  }
  return true;
}

function ForgotPasswordEdit(form) {
	var forgotPasswordEmail = form.forgotPasswordEmail.value;
if(forgotPasswordEmail == "") {
    inlineMsg('forgotPasswordEmail','Please enter an email address.',2);
    return false;
  }
  return true;
}
function PasswordEdit(form) {
	var c_password = form.c_password.value;
	var c_password2 = form.c_password2.value;
if(c_password == "") {
    inlineMsg('c_password','Please enter a password.',2);
    return false;
  }
if ((c_password.length < 5) || (c_password.length > 11)) {
	inlineMsg('c_password','Password must be 6 - 10 characters in length.',2);
    return false;
  }
if(c_password2 != c_password) {
    inlineMsg('c_password2','Your password does not match.',2);
    return false;
  }
  return true;
}
  
function RchangeEmailEdit(form) {
	var email = form.email.value;
if(email == "") {
    inlineMsg('email','Please enter an email.',2);
    return false;
  }
  return true;
}
function RchangeNameEdit(form) {
	var name = form.name.value;
if(name == "") {
    inlineMsg('name','Please enter a display name.',2);
    return false;
  }
  return true;
}

function AccountEdit(form) {
	var firstinput = form.firstinput.value;
	var community = form.community.value;
if(firstinput == "") {
    inlineMsg('firstinput','Please select a birthday.',2);
    return false;
  }
if(community == "") {
    inlineMsg('community','Please select a communitty.',2);
    return false;
  }
  return true;
}
function EventsEdit(form) {
	var firstinput = form.firstinput.value;
	var title = form.title.value;
	var venue = form.venue.value;
	var address = form.address.value;
	var location = form.location.value;
if(firstinput == "") {
    inlineMsg('firstinput','Please select a start date.',2);
    return false;
  }
if(title == "") {
    inlineMsg('title','Please enter a event title.',2);
    return false;
  }
if(venue == "") {
    inlineMsg('venue','Please enter a venue name.',2);
    return false;
  }
if(address == "") {
    inlineMsg('address','Please enter an event address.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
  return true;
}

function JobEdit(form) {
  var category = form.category.value;
  var type = form.type.value;
  var title = form.title.value;
  var companyName = form.companyName.value;
  var location = form.location.value;
if(category == "") {
    inlineMsg('category','Please select a job category.',2);
    return false;
  }
if(type == "") {
    inlineMsg('type','Please select a job type.',2);
    return false;
  }
if(title == "") {
    inlineMsg('title','Please enter a job title.',2);
    return false;
  }
if(companyName == "") {
    inlineMsg('companyName','Please enter a company name.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
  return true;
}

function PropertyEdit(form) {
  var type = form.type.value;
  var rfor = form.rfor.value;
  var title = form.title.value;
  var address = form.address.value;
  var bedrooms = form.bedrooms.value;
  var location = form.location.value;
  var price = form.price.value;
if(type == "") {
    inlineMsg('type','Please select what type of property.',2);
    return false;
  }
if(rfor == "") {
    inlineMsg('rfor','Please select what the property is for.',2);
    return false;
  }
if(title == "") {
    inlineMsg('title','Please enter a property title.',2);
    return false;
  }  
if(address == "") {
    inlineMsg('address','Please enter a street address.',2);
    return false;
  } 
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
if(bedrooms == "") {
    inlineMsg('bedrooms','Please select number of bedrooms.',2);
    return false;
  }
if(price == "$") {
    inlineMsg('price','Please enter a property price.',2);
    return false;
  }    
if(price == "") {
    inlineMsg('price','Please enter a property price.',2);
    return false;
  }    
  return true;
}

function SynagoguesEdit(form) {
	var type = form.type.value;
	var name = form.name.value;
	var location = form.location.value;
if(type == "") {
    inlineMsg('type','Please select the type of synagogue.',2);
    return false;
  }
if(name == "") {
    inlineMsg('name','Please enter a synagogue name.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
  return true;
}

function EngagementEdit(form) {
	var groomName = form.groomName.value;
	var brideName = form.brideName.value;
if(groomName == "") {
    inlineMsg('groomName','Please enter a Groom\'s Name.',2);
    return false;
  }
if(brideName == "") {
    inlineMsg('brideName','Please enter a Bride\'s Name.',2);
    return false;
  }
  return true;
}

function WeddingEdit(form) {
	var groomName = form.groomName.value;
	var brideName = form.brideName.value;
	var firstinput = form.firstinput.value;
if(groomName == "") {
    inlineMsg('groomName','Please enter a Groom\'s Name.',2);
    return false;
  }
if(brideName == "") {
    inlineMsg('brideName','Please enter a Bride\'s Name.',2);
    return false;
  }
if(firstinput == "") {
    inlineMsg('firstinput','Please enter a wedding date.',2);
    return false;
  }
  return true;
}

function AnniversaryEdit(form) {
	var name = form.name.value;
	var location = form.location.value;
	var firstinput = form.firstinput.value;
if(name == "") {
    inlineMsg('name','Please enter a couple name.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
if(firstinput == "") {
    inlineMsg('firstinput','Please enter a wedding date.',2);
    return false;
  }
  return true;
}

function MitzvahEdit(form) {
//	var frm_gender = radioB(form.gender);	
	var name = form.name.value;
	var childOf = form.childOf.value;
	var firstinput = form.firstinput.value;
	var location = form.location.value;
	var synagogue = form.synagogue.value;

//if(frm_gender == null) {
//	inlineMsg('gender','Please select a bar or bat.',2);
//	return false;
//  }
if(name == "") {
    inlineMsg('name','Please enter a name.',2);
    return false;
  }
if(childOf == "") {
    inlineMsg('childOf','Please enter son/daughter of.',2);
    return false;
  }
if(firstinput == "") {
    inlineMsg('firstinput','Please enter a date.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
if(synagogue == "") {
    inlineMsg('synagogue','Please enter a synagogue name.',2);
    return false;
  }
  return true;
}

function BirthsEdit(form) {
//	var frm_gender = radioB(form.gender);	
	var name = form.name.value;
	var childOf = form.childOf.value;
	var firstinput = form.firstinput.value;
	var location = form.location.value;

if(name == "") {
    inlineMsg('name','Please enter a name.',2);
    return false;
  }
if(childOf == "") {
    inlineMsg('childOf','Please enter son/daughter of.',2);
    return false;
  }
if(firstinput == "") {
    inlineMsg('firstinput','Please enter a date.',2);
    return false;
  }
if(location == "") {
    inlineMsg('location','Please select a location.',2);
    return false;
  }
  return true;
}

function ObituariesEdit(form) {
	var name = form.name.value;
	var firstinput = form.firstinput.value;
	var secondinput = form.secondinput.value;
if(name == "") {
    inlineMsg('name','Please enter a name.',2);
    return false;
  }
if(firstinput == "") {
    inlineMsg('firstinput','Please enter a birthday.',2);
    return false;
  }
if(secondinput == "") {
    inlineMsg('secondinput','Please enter date of death.',2);
    return false;
  }
  return true;
}
