function invt(action,stuff,from) {
	if(checkForm(from)) {
		//alert(stuff.to_email1.value);
		poststr = "name=" + encodeURI(from.name.value);
		poststr += "&email=" + encodeURI(from.email.value);
		poststr += "&invite=1";
		poststr += "&subject=" + encodeURI(stuff.subject.value);
		poststr += "&message=" + encodeURI(stuff.message.value);
		if(stuff.to_email1.value != '') {
			poststr += "&to_email[1]=" + encodeURI(stuff.to_email1.value);
		}
		if(stuff.to_email2.value != '') {
			poststr += "&to_email[2]=" + encodeURI(stuff.to_email2.value);
		}
		if(stuff.to_email3.value != '') {
			poststr += "&to_email[3]=" + encodeURI(stuff.to_email3.value);
		}
		if(stuff.to_email4.value != '') {
			poststr += "&to_email[4]=" + encodeURI(stuff.to_email4.value);
		}
		if(stuff.to_email5.value != '') {
			poststr += "&to_email[5]=" + encodeURI(stuff.to_email5.value);
		}			
		invitePOSTRequest(action, poststr);
	}
}

function get(btn,action,message,from) {
  //var poststr = "mytextarea1=" + encodeURI( document.getElementById("mytextarea1").value ) +
	//			"&mytextarea2=" + encodeURI( document.getElementById("mytextarea2").value );
  // var poststr = encodeURI(message) + encodeURI(from);
  if(checkForm(from)) {
	  poststr = "name=" + encodeURI(from.name.value);
	  poststr += "&city=" + encodeURI(from.city.value);
	  poststr += "&email=" + encodeURI(from.email.value);
	  poststr += "&province=" + encodeURI(from.province.value);
	  poststr += "&message=" + encodeURI(from.message.value);
	  poststr += "&subject=" + encodeURI(from.subject.value);
	  
	  if(from.show_public.checked) {
			poststr += "&show_public=" + encodeURI(from.show_public.value);
	  } else {
			poststr += "&show_public=0";
	  }
	  
	  if(from.add_updates.checked) {
			poststr += "&add_updates=" + encodeURI(from.add_updates.value);
	  } else {
			poststr += "&add_updates=0";
	  }
	  // alert(to);
	  makePOSTRequest(btn, message, action, poststr);
	}
}