/* TC FORM CHECK */	function num(n)	{		var valid=	'0123456789-';		if (n.length==0)	return false;		for (i=0;i<n.length;i++)	{			c=	n.charAt(i);			if (valid.indexOf(c)==-1)	return false;		}		return true;	}	function email(n)	{		var valid=	'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ._-@';		var at=		'false';		var dot=	'false';		if (n.length<6)	return false;		for (i=0;i<n.length;i++)	{			c=	n.charAt(i);			if (c=='.')	dot=	'true';			if (c=='@')	at=	'true';			if (valid.indexOf(c)==-1)	return false;		}		if (dot=='false')	return false;		if (at=='false')	return false;		return true;	}	function check()	{		var m=	'';		var x=document.forms['tc_form']; // the only change to the form- it must be declared in the DOM run due to the GLOBAL.js file.								if (x.message.value=='') {			m=	'Please type your message to continue.';			x.message.focus();		}		if (x.to.value=='') {			m=	'Please select a subject for your message to continue.';			x.to.focus();		}		if (x.country.value=='') {			m= 'Please enter the country where you reside to continue.';			x.country.focus();		}		//if (!num(x.zip.value)) {		//	m=	'Please enter your zip or postal code to continue.';		//	x.zip.focus();		//}		//if (x.state.value=='')		//	m=	'Please enter the state or province in which you reside to continue.';		//	x.state.focus();		//}		//if (x.city.value=='')	{		//	m=	'Please enter the city in which you reside to continue.';		//	x.city.focus();		//}		if (!num(x.phone.value)) {			m=	'Please enter your phone number to continue.';			x.phone.focus();		}		if (!email(x.email.value)) {			m=	'Please enter a valid email address to continue.';			x.email.focus();		}		if (x.org.value=='') {			m=	'Please enter the name of your organization to continue.';			x.org.focus();		}		if (x.lname.value=='')	{			m=	'Plese enter your full name to continue.';			x.lname.focus();		}		if (x.fname.value=='') {			m=	'Please enter your full name to continue.';			x.fname.focus();		}		//if (!x.svc_sap.checked && !x.svc_ep.checked && !x.svc_train.checked && !x.svc_scty.checked && !x.svc_sc.checked)		//	m=	'\'type of Service\' is a required field.';		if (m!='')	{			alert(m);			return false;		}		return true;	}		function philanthropyCheck()	{		var m=	'';		var x=document.forms['tc_form']; // the only change to the form- it must be declared in the DOM run due to the GLOBAL.js file.				if (x.taxid.value=='') {			m=	'Please select a valid tax id number to continue.';			x.taxid.focus();		}		if (x.country.value=='') {			m= 'Please enter the country where you reside to continue.';			x.country.focus();		}		if (!num(x.zip.value)) {			m=	'Please enter your zip or postal code to continue.';			x.zip.focus();		}		if (x.state.value=='')			m=	'Please enter the state or province in which you reside to continue.';			x.state.focus();		}		if (x.city.value=='')	{			m=	'Please enter the city in which you reside to continue.';			x.city.focus();		}		if (!num(x.phone.value)) {			m=	'Please enter your phone number to continue.';			x.phone.focus();		}		if (!email(x.email.value)) {			m=	'Please enter a valid email address to continue.';			x.email.focus();		}		if (x.nonProfitName.value=='') {			m=	'Please enter the name of your organization to continue.';			x.nonProfitName.focus();		}		if (x.lname.value=='')	{			m=	'Plese enter your full name to continue.';			x.lname.focus();		}		if (x.fname.value=='') {			m=	'Please enter your full name to continue.';			x.fname.focus();		}				if (x.history.value=='') {			m=	'Please enter a brief history of your organization to continue.';			x.history.focus();		}		if (x.mission.value=='') {			m=	'Please enter a mission statement to continue.';			x.mission.focus();		}		if (x.goals.value=='') {			m=	'Please enter goals and objectives to continue.';			x.goals.focus();		}		if (x.services.value=='') {			m=	'Please enter type and scope of services offered to continue.';			x.services.focus();		}		if (x.area.value=='') {			m=	'Please enter geographical area served to continue.';			x.area.focus();		}		if (x.howused.value=='') {			m=	'Please specify how requested funds will be used to continue.';			x.howused.focus();		}		if (x.projectBudget.value=='') {			m=	'Please enter project budget to continue.';			x.projectBudget.focus();		}		if (x.amount.value=='') {			m=	'Please enter amount requested to continue.';			x.amount.focus();		}		if (x.operatingBudget.value=='') {			m=	'Please enter operating budget to continue.';			x.operatingBudget.focus();		}		if (x.demographic.value=='') {			m=	'Please enter demographic impact to continue.';			x.demographic.focus();		}		if (x.sponsors.value=='') {			m=	'Please list other corporate sponsors to continue.';			x.sponsors.focus();		}		if (x.directors.value=='') {			m=	'Please list other directors and/or officers to continue.';			x.directors.focus();		}		if (m!='')	{			alert(m);			return false;		}		return true;		}