
	function updateData() {
		var gt = 0;
		var i;
		for(i = 1; i < 12; i++) {
			if(document.getElementById("organization_type"+i).checked == true)	
				gt++;
		}
		if(gt > 2) {
			alert("Only two types of organizations are allowd.");
			return false;
		}
		else
			return;
	}

function SetPhoto(val,fld) {
	dml=document.form1;
	len = dml.elements.length;
	var i=0;
	var total=0;
	for( i=0 ; i<len ; i++) {
		if (dml.elements[i].name==fld) {
			dml.elements[i].checked=val;
		}
	}
}

function updateEvent() {
		document.getElementById("event_address").value 	= document.getElementById("address_1").value;
		document.getElementById("event_city").value 			= document.getElementById("city").value;
		document.getElementById("event_state").value 		= document.getElementById("state").value;
		
		document.getElementById("contact_phone1_event").value 		= document.getElementById("contact_phone1").value;
		document.getElementById("contact_phone2_event").value 		= document.getElementById("contact_phone2").value;
		document.getElementById("contact_phone3_event").value 		= document.getElementById("contact_phone3").value;

	}
	function organization(otype) {
		if(otype == "new")
			document.getElementById("organization").style.display = "";
		else
			document.getElementById("organization").style.display = "none";
	}
	function organ() {
		if(document.getElementById("otype").value == "0")
			document.getElementById("organization").style.display = "";
		else
			document.getElementById("organization").style.display = "none";
	}
	
	function setSubmit() {
		var	sub = 0;
		var	error	= "";
		if(document.getElementById("inOrg_yes").checked == true) {
			if(document.getElementById("otype").value > 0)
				sub	= 1;
			else
				error += "You must select your organization to continue";
		}
		else if(document.getElementById("inOrg_no").checked == true) {
			if(document.getElementById("otype").value <= 0)
				sub	= 1;
			else
				error += "Please select Add New Organization to continue";
		}
		
		//var	orgno	= document.getElementById("inOrg_no").value;
		//var	orid		= document.getElementById("otype").value;
		if(sub == 1)
			document.getElementById("submit_butt").disabled = false;
		else
			alert(error)
	}
	
	function updateData() {
		var gt = 0;
		var i;
		for(i = 1; i < 12; i++) {
			if(document.getElementById("organization_type"+i).checked == true)	
				gt++;
		}
		if(gt > 2) {
			alert("Only two types of organizations are allowd.");
			return false;
		}
		else
			return;
	}



/***********************************************
* Form Field Progress Bar- By Ron Jonk- http://www.euronet.nl/~jonkr/
* Modified by Dynamic Drive for minor changes
* Script featured/ available at Dynamic Drive- http://www.dynamicdrive.com
* Please keep this notice intact
***********************************************/

function textCounter(field,counter,maxlimit,linecounter) {
	// text width//
	var fieldWidth =  parseInt(field.offsetWidth);
	var charcnt = field.value.length;        

	// trim the extra text
	if (charcnt > maxlimit) { 
		field.value = field.value.substring(0, maxlimit);
	}

	else { 
	// progress bar percentage
	var percentage = parseInt(100 - (( maxlimit - charcnt) * 100)/maxlimit) ;
	document.getElementById(counter).style.width =  parseInt((fieldWidth*percentage)/100)+"px";
	document.getElementById(counter).innerHTML=percentage+"% Used"
	// color correction on style from CCFFF -> CC0000
	setcolor(document.getElementById(counter),percentage,"background-color");
	}
}

function setcolor(obj,percentage,prop){
	obj.style[prop] = "rgb(80%,"+(100-percentage)+"%,"+(100-percentage)+"%)";
}


<!-- Original:  Shawn Seley -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function CountWords (this_field, show_word_count, show_char_count) {
if (show_word_count == null) {
show_word_count = true;
}
if (show_char_count == null) {
show_char_count = false;
}
var char_count = this_field.value.length;
var fullStr = this_field.value + " ";
var initial_whitespace_rExp = /^[^A-Za-z0-9]+/gi;
var left_trimmedStr = fullStr.replace(initial_whitespace_rExp, "");
var non_alphanumerics_rExp = rExp = /[^A-Za-z0-9]+/gi;
var cleanedStr = left_trimmedStr.replace(non_alphanumerics_rExp, " ");
var splitString = cleanedStr.split(" ");
var word_count = splitString.length -1;
if (fullStr.length <2) {
word_count = 0;
}
if (word_count == 1) {
wordOrWords = " word";
}
else {
wordOrWords = " words";
}
if (char_count == 1) {
charOrChars = " character";
} else {
charOrChars = " characters";
}
if (show_word_count & show_char_count) {
alert ("Word Count:\n" + "    " + word_count + wordOrWords + "\n" + "    " + char_count + charOrChars);
}
else {
if (show_word_count) {
alert ("Word Count:  " + word_count + wordOrWords);
}
else {
if (show_char_count) {
alert ("Character Count:  " + char_count + charOrChars);
      }
   }
}
return word_count;
}

function emailMatch_sec() {
	var error;
	if (document.getElementById("contact_email_sec").value != document.getElementById("contact_email_sec_reenter").value) {
		alert("Email addresses not matched - Please re-enter");
		document.getElementById("contact_email_sec").focus();
	}
}

function emailMatch() {
	var error;
	if (document.getElementById("contact_email").value != document.getElementById("contact_email_reenter").value) {
		alert("Email addresses not matched - Please re-enter");
		document.getElementById("contact_email").focus();
	}
	//else
		//document.getElementById('submit').disabled=false;
}

//  End -->

