	/*//---------------------------------------------*/
	/*// Name: Site - Global Scripts				 */
	/*// Language: JavaScript						 */
	/*//---------------------------------------------*/


	/*//---------------------------------------------*/
	/*// Declare/Define Global Variables			 */
	/*//---------------------------------------------*/
	var resourceRoot = "/resources/";
	var siteRoot = "";

	/*//---------------------------------------------*/
	/*// Name: InitializeGlobal()					 */
	/*// Desc: Entry Point for Onload Event			 */
	/*//---------------------------------------------*/
	function InitializeGlobal()
	{
		if ( ( InitializeGlobal.arguments ) && ( InitializeGlobal.arguments.length == 2 ) )
		{
			if ( InitializeGlobal.arguments[0] )
			{
				siteRoot = InitializeGlobal.arguments[0];
			}
			resourceRoot += InitializeGlobal.arguments[1]+"/";
		}

		if ( typeof( InitializeSite ) == "function" )
			InitializeSite();

		if ( typeof( InitializeLocal ) == "function" )
			InitializeLocal();
		
		if ( siteRoot.match( /^http/i ) ) {
			siteRoot = siteRoot;
		} else {
			var pRegexAddress = ( window.location.href.match( /^https:/i ) ) ? new RegExp( "([^:]+://[^/]+/[^/]+).*", "i" ) : new RegExp( "([^:]+://[^/]+).*", "i" );
			var pResultAddress = pRegexAddress.exec( window.location );
			siteRoot = pResultAddress[1];
		}	
		SetExternalLinkTargets();
		PreloadRollOverImages();
	}

	/*//---------------------------------------------*/
	/*//////////////////////////////////////////////////////////////*/
	/*//---------------------------------------------*/


	/*//---------------------------------------------*/
	/*// Name: PreloadRollOverImages()				 */
	/*// Desc: Image Preload Function				 */
	/*//---------------------------------------------*/
	function PreloadRollOverImages()
	{
		if ( !document.getElementsByTagName )
			return;

		var pRegexClassName = new RegExp( ".*imgRollOver-([^\\s]*).*", "i" );
		var pRegexSelector = new RegExp( "a\.imgRollOver-(.*):hover", "i" );
		var pRegexSelectorSafari = new RegExp( "a\.imgRollOver-([^:[ ]+)[^:]+:.*", "i" );
		var pRegexBackground = new RegExp( "url\\((.*)\\)", "i" );
		var pRegexFullUrl = new RegExp( "(http)", "i" );

		var theRules = new Array();
		if (document.styleSheets[1].cssRules)
			theRules = document.styleSheets[1].cssRules;
		else if (document.styleSheets[1].rules)
			theRules = document.styleSheets[1].rules;

		var pDocument = document;
		if( pDocument.images )
		{
			if( !pDocument.MM_p )
				pDocument.MM_p = new Array();

			var j = pDocument.MM_p.length;
			var anchors = pDocument.getElementsByTagName( "a" );
			for ( var i=0;i<anchors.length;i++ )
			{
				var anchor = anchors[i];
				if ( anchor.className )
				{
					var pResultClassName = pRegexClassName.exec( anchor.className );
					if ( pResultClassName != null )
					{
						var imageHoverHref = "";
						for ( var x=0;x<theRules.length;x++ )
						{
							var pResultSelector = pRegexSelector.exec( theRules[x].selectorText );
							var pResultSelectorSafari = pRegexSelectorSafari.exec( theRules[x].selectorText );
							if ( ( pResultSelector != null ) || ( pResultSelectorSafari != null ) )
							{
								var selectorClass = "";
								if ( pResultSelector == null )
								{
									selectorClass = pResultSelectorSafari[1];
								}
								else
								{
									selectorClass = pResultSelector[1];
								}

								if ( selectorClass == pResultClassName[1] )
								{
									var pResultUrlSafari = pRegexBackground.exec(theRules[x].style.backgroundImage);
									var pResultUrl = pRegexBackground.exec(theRules[x].style.backgroundImage);
									
									
									if ( pResultUrlSafari != null )
									{
										imageHoverHref = pResultUrlSafari[1];
										break;
									} else if ( pResultUrl != null ) {
										imageHoverHref = pResultUrl[1];
										break;
									}
								}
							}
						}
						if ( imageHoverHref == "" )
							continue;
							
						var pResultFullUrl = pRegexFullUrl.exec(imageHoverHref);
						
						pDocument.MM_p[j] = new Image;
						
						if ( pResultFullUrl != null ) {
							
							pDocument.MM_p[j++].src = imageHoverHref;
						} else {
							pDocument.MM_p[j++].src = siteRoot+resourceRoot+imageHoverHref;
						}
						//alert( pDocument.MM_p[j-1].src );
						//document.successForm.alertText.value = document.successForm.alertText.value + pDocument.MM_p[j-1].src + "\r\n";
						//document.failedForm.alertText.value = document.failedForm.alertText.value + pDocument.MM_p[j-1].src + "\r\n";
					}
				}
			}
		}
	}


	/*//---------------------------------------------*/
	/*// Name: SetExternalLinkTargets()				 */
	/*// Desc: Modify External Links for Standards	 */
	/*//---------------------------------------------*/
	function SetExternalLinkTargets()
	{
		if ( !document.getElementsByTagName )
			return;

		var anchors = document.getElementsByTagName( "a" );
		for ( var i=0;i<anchors.length;i++ )
		{
			var anchor = anchors[i];
			if ( ( anchor.getAttribute( "href" ) ) && ( anchor.getAttribute( "rel" ) == "newWindow" ) )
				anchor.target = "_blank";
		}
	}

	/*//---------------------------------------------*/
	/*// Name: OpenWindow()							 */
	/*// Desc: Display Sized Popup					 */
	/*//---------------------------------------------*/
	function OpenWindow( cAddress, pTargetWnd, cTargetId, iWinWidth, iWinHeight, bBuffered, bDisplayScrollBars )
	{
		if ( pTargetWnd != null && !pTargetWnd.closed && 3 <= parseInt( navigator.appVersion ) ) {
			pTargetWnd.focus();
			return;
		}
		else
		{
			var iBufferSize = ( bBuffered ) ? 15 : 0;
			pTargetWnd = window.open( '',cTargetId,'toolbar=0,location=0,directories=0,scrollbars=' + ( ( bDisplayScrollBars ) ? '1' : '0' ) + ',status=0,resizable=0,width=' + ( iWinWidth + iBufferSize ) + ',height=' + ( iWinHeight + iBufferSize ) );
		}
	}


	/*//---------------------------------------------*/
	/*//////////////////////////////////////////////////////////////*/
	/*//---------------------------------------------*/

	
	/*//---------------------------------------------*/
	/*// Name: GetDataValue()						 */
	/*// Desc: Retrieves Form Data					 */
	/*//---------------------------------------------*/
	function GetDataValue( objectName )
	{
		var dataObject = document.getElementById( objectName );
		if ( dataObject == null )
			return null;

		var dataValue = '';
		switch ( dataObject.nodeName.toLowerCase() )
		{
			case "select":
				if ( dataObject.selectedIndex == -1 )
				{
					dataValue = '';
					break;
				}

				dataValue = dataObject.options[ dataObject.selectedIndex ].value;
				break;
			case "div":
				var checkInput = dataObject.firstChild;
				while ( checkInput != null )
				{
					if ( checkInput.nodeName.toLowerCase() == "input" )
					{
						if ( checkInput.checked )
						{
							dataValue = checkInput.value;
							break;
						}
					}
					checkInput = checkInput.nextSibling;
				}
				break;
			default:
				dataValue = ( dataObject.type == "checkbox" ) ? dataObject.checked : dataObject.value;
				break;
		}

		return dataValue;
	}

	/*//---------------------------------------------*/
	/*// Name: ValidateFormData()					 */
	/*// Desc: Validates Form Data					 */
	/*//---------------------------------------------*/
	function ValidateFormData()
	{
		if ( ( ValidateFormData.arguments == null ) || ( ValidateFormData.arguments.length % 2 ) )
			return false;

		var checkScan = new RegExp( "([^(]*)(\\(([^,]+),([^)]+)\\))?", "i" );
		var checkLabelScan = new RegExp( "(.*)-([^\\d]+)(\\d+)?", "i" );
		var checkSucceeded = true;
		var errorString = "The following errors have occurred\r\n";
		var additionalConjunction = ", ";
		var finalConjunction = ", and ";

		for ( var i = 0;i < ValidateFormData.arguments.length - 1;i += 2 )
		{
			var dataObject = document.getElementById( ValidateFormData.arguments[i] );
			if ( dataObject == null )
				continue;

			var dataObjectLabel = ValidateFormData.arguments[i];
			if ( document.getElementById( ValidateFormData.arguments[i]+"-label" ) != null )
			{
				dataObjectLabel = document.getElementById( ValidateFormData.arguments[i]+"-label" ).innerHTML;
			}
			else
			{
				var labelResult = checkLabelScan.exec( dataObjectLabel );
				if ( labelResult != null )
				{
					if ( document.getElementById( labelResult[1]+"-label" ) != null )
					{
						labelResult[3] += '';
						if ( ( labelResult[3] == null ) || ( labelResult[3] == '' ) || ( labelResult[3] == 'undefined' ) )
							dataObjectLabel = document.getElementById( labelResult[1]+"-label" ).innerHTML + " (" + labelResult[2] + ")";
						else
							dataObjectLabel = document.getElementById( labelResult[1]+"-label" ).innerHTML + " (" + labelResult[2] + " " + labelResult[3] + ")";
					}
				}
			}

			var dataValue = GetDataValue( ValidateFormData.arguments[i] );
			if ( ( ValidateFormData.arguments[i+1].search( /optional/i ) != -1 ) && ( dataValue == "" ) )
				continue;

			var checkList = ValidateFormData.arguments[i+1].split( ";" );
			var errorSet = "";
			var currentError = "";
			var conjunction = "";
			var currentSucceeded = true;
			for ( var j = 0;j < checkList.length;j++ )
			{
				var checkResult = checkScan.exec( checkList[j] );
				if ( checkResult != null )
				{
					var errorMessage = "";
					switch( checkResult[1] )
					{
						case "required":
						{
							if ( dataValue == "" )
								errorMessage = "is a required field";
							break;
						}

						case "length":
						{
							var min = checkResult[3]*1;
							var max = checkResult[4]*1;

							if ( ( min == max ) && ( dataValue.length != max ) )
								errorMessage = "must be "+max+" characters";
							else if ( ( dataValue.length < min ) || ( dataValue.length > max ) )
								errorMessage = "must be between "+min+" and "+max+" characters";
							break;
						}

						case "value":
						{
							var min = checkResult[3]*1;
							var max = checkResult[4]*1;
							var check = dataValue*1;

							if ( ( min == max ) && ( check != max ) )
								errorMessage = "must be "+max;
							else if ( ( check < min ) || ( check > max ) )
								errorMessage = "must be between "+min+" and "+max;
							break;
						}

						case "pattern":
						{
							var patternScan = new RegExp( document.getElementById( ValidateFormData.arguments[i]+"-dataPattern" ).innerHTML, "i" );
							var patternResult = patternScan.exec( dataValue );
							if ( patternResult == null && ValidateFormData.arguments[i] != 'email')
								errorMessage = "is not in a valid format";
							break;
						}

					}

					if ( errorMessage != "" )
					{
						if ( currentError != "" )
						{
							errorSet += conjunction + currentError;
							conjunction = additionalConjunction;
						}
						currentError = errorMessage;
						checkSucceeded = currentSucceeded = false;
					}

					if ( ( checkResult[1] == "required" ) && ( !currentSucceeded ) )
						break;
				}
			}

			if ( errorSet != "" )
				conjunction = finalConjunction;

			if ( currentError != "" )
				errorSet += conjunction + currentError;

			if ( !currentSucceeded )
				errorString += "- "+dataObjectLabel+" " + errorSet + ".\r\n";

		}

		if ( !checkSucceeded )
			alert( errorString );

		return checkSucceeded;
	}

	/*//---------------------------------------------*/
	/*// Name: newWidowPopup()						 */
	/*// Desc: Opens and resizes a window			 */
	/*//---------------------------------------------*/
	var pImage = null;
	function newWidowPopup( winLabel, winWidth, winHeight )
	{
		if ( pImage != null && !pImage.closed && 3 <= parseInt( navigator.appVersion ) ) {
			pImage.focus();
			return;
		}
		else
		{
			pImage = window.open( '',winLabel,'toolbar=0,location=0,directories=0,scrollbars=0,status=0,resizable=1,width=' + winWidth + ',height=' + winHeight );
		}
	}

	/*//---------------------------------------------*/
	/*// Name: createFlashObject()					 */
	/*// Desc: Creates A String That Embeds SWF File */
	/*//---------------------------------------------*/
	
	function createFlashObject()
	{
		if ( createFlashObject.arguments[0].match( /^http/i ) )
		{
			var fileLocation = createFlashObject.arguments[0];
		}
		else
		{
			var fileLocation = siteRoot + createFlashObject.arguments[0];
		}

		if ( siteRoot.match( /^https/i ) )
		{
			var linkBase = 'https';
		}
		else
		{
			var linkBase = 'http';
		}

		var fileWidth = createFlashObject.arguments[1];
		var fileHeight = createFlashObject.arguments[2];

		if (createFlashObject.arguments[3])
		{
			var embedBackgroundAtt = 'bgcolor="' + createFlashObject.arguments[3] + '"';
			var paramBackgroundTag = '<param name="bgcolor" value=" \/>' + createFlashObject.arguments[3] + '"';
		}
		else
		{
			var embedBackgroundAtt = 'style="background: transparent;"';
			var paramBackgroundTag = '<param name="wmode" value="transparent" \/>';
		}

		var flashObject = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + linkBase + '://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"'
		+ 'width="' + createFlashObject.arguments[1] + '"'
		+ 'height="' + createFlashObject.arguments[2] + '"' + '>'
		+ '<param name="movie" value="' + createFlashObject.arguments[0] + '" \/>'
		+ '<param name="quality" value="high" \/>'
		+ paramBackgroundTag
		+ '<embed src="' + createFlashObject.arguments[0] + '"' + 'pluginspage="' + linkBase + '://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"'
		+ 'width="' + createFlashObject.arguments[1] + '"'
		+ 'height="' + createFlashObject.arguments[2] + '"'
		+ embedBackgroundAtt + '><\/embed>'
		+ '<\/object>';

		document.write( flashObject );
	}
	
/**********************************************************************************************************/
	changeEntity = function(dropdown){
		var contactEntity = document.getElementById("contactEntity");
		if(dropdown.value == "personal"){
			contactEntity.style.display = "none";
		}else{
			contactEntity.style.display = "table";
		}
		
	}
	changeCapitalMuch = function(radio){
		var contactEntity = document.getElementById("contactCapitalMuch");
		if(radio.value == "no"){
			contactEntity.style.display = "none";
		}else{
			contactEntity.style.display = "table-row";
		}
	} 

	checkForm = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(name.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = name;
			}else if(!isWord(trim(name.value))){
				alert("Invalid Entry");
				myField = name;
			}else if(trim(grantWho.value) != "personal" && trim(entity.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = entity;
			}else if(trim(grantWho.value) != "personal" && !isWord(trim(entity.value))){
				alert("Invalid Entry");
				myField = entity;
			}else if(trim(dayPhone.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = dayPhone;
			}else if(!isNumber(trim(dayPhone.value))){
				alert("Invalid Entry");
				myField = dayPhone;
			}else if(trim(evePhone.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = evePhone;
			}else if(!isNumber(trim(evePhone.value))){
				alert("Invalid Entry");
				myField = evePhone;
			}else if(!isEmail(trim(email.value)) && trim(email.value) != ""){
				alert("Invalid Entry");
				myField = email;
			}else if(trim(state.value) == "default"){
				alert("Please choose a state");
				myField = state;
			}else if(!isNumber(trim(zip.value)) && trim(zip.value) != ""){
				alert("Invalid Entry");
				myField = zip;
			}else if(trim(funding.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = funding;
			}else if(!isMoney(trim(funding.value))){
				alert("Invalid Entry");
				myField = funding;
			}else if(!isWord(trim(fundingWhat.value)) && trim(fundingWhat.value) != ""){
				alert("Invalid Entry");
				myField = zip;
			}else{
				
			}
		}
		
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		
		if(myField){
			myField.focus();
			//myField.className = "textBoxError";
			myField.style.borderColor = "#FF6262"
		}else{
			myForm.submit();	
		}
		return false;
	}
	isMoney = function(str){
		var objRegExp = /^([0-9]+)([.]{0,1})([0-9]+)$/;
		
		return objRegExp.test(str);
	}
	isNumber = function(str){
		var objRegExp = /^[0-9]+$/;
		
		return objRegExp.test(str);
	}
	trim = function(str){
	   return str.replace(/^\s+|\s+$/g,'');
	}
	
	isEmail = function(str){
		var objRegExp = /(^[a-z]([a-z_\.0-9]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z_\.]*)@([a-z_\.]*)(\.[a-z]{3})(\.[a-z]{2})*$)/i;
		
		return objRegExp.test(str);
	}
	
	isURL = function(str){
		var objRegExp = /(^www.([a-zA-Z0-9]*).([a-z])*$)/i;
	
		return objRegExp.test(str);
	}
	
	isWord = function(str){
		var objRegExp = /^[a-zA-Z ]+$/;
		
		return objRegExp.test(str);
	}
	
	isAddress = function(str){
		var objRegExp = /^[a-zA-Z0-9.,#\- ]+$/;
		return objRegExp.test(str);
	}
	isDate = function(str) {
		var objRegExp = /^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/;
		return objRegExp.test(str);
		/*
		var re_date = /^(\d+)\-(\d+)\-(\d+)\s+(\d+)\:(\d+)\:(\d+)$/;
		if (!re_date.exec(str_datetime))
			return alert("Invalid Datetime format: "+ str_datetime);
		return (new Date (RegExp.$3, RegExp.$2-1, RegExp.$1, RegExp.$4, RegExp.$5, RegExp.$6));
		*/
	}
	
	checkFormContacts = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(fname.value) == ""){
				alert("Please enter your First Name");
				myField = fname;
			}else if(!isWord(trim(fname.value))){
				alert("Invalid First Name");
				myField = fname;
			}else if(trim(lname.value) == ""){
				alert("Please enter your Last Name");
				myField = lname;
			}else if(!isWord(trim(lname.value))){
				alert("Invalid Last Name");
				myField = lname;
			}else if(trim(business.value) != "" && !isWord(trim(business.value))){
				alert("Invalid Business Name");
				myField = business;
			}else if(trim(email.value) == ""){
				alert("Please enter your Email Address");
				myField = email;
			}else if(!isEmail(trim(email.value))){
				alert("Invalid Email Format");
				myField = email;
			}else if(trim(phone.value) == ""){
				alert("Please enter your Phone Number");
				myField = phone;
			}else if(!isNumber(trim(phone.value))){
				alert("Invalid Phone Number");
				myField = phone;
			}else{
				//return true;
			}
		}
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		
		if(myField){
			myField.focus();
			myField.style.borderColor = "#FF6262"
		}else{
			myForm.submit();	
		}
		return false;
	}
	checkRadio = function(radioName){
		var myForm = window.document.myForm;
		var currRadio = myForm[radioName];
		var isCheck = false;
		for(i=0;i<currRadio.length;i++){
			if(currRadio[i].checked){
				isCheck = true; 
			}
		}
		return isCheck;
	}
	checkFormProfile = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(name.value) == ""){
				alert("Please enter your Name");
				myField = name;
			}else if(!isWord(trim(name.value))){
				alert("Invalid entries in Name, No numbers.");
				myField = name;
			}else if(trim(date.value) == ""){
				alert("Please enter your date");
				myField = date;
			}else if(!isDate(trim(date.value))){
				alert("Invalid Date");
				myField = date;
			}else if(trim(other_contact.value) == ""){
				alert("Please enter your Other Contact");
				myField = other_contact;
			}else if(!isNumber(trim(other_contact.value))){
				alert("Invalid Other Contact");
				myField = other_contact;
			}else if(trim(business.value) == ""){
				alert("Please enter your Business Name");
				myField = business;
			}else if(!isWord(trim(business.value))){
				alert("Invalid Business Name");
				myField = business;
			}else if(trim(phone.value) == ""){
				alert("Please enter your Phone Number");
				myField = phone;
			}else if(!isNumber(trim(phone.value))){
				alert("Invalid Phone Number");
				myField = phone;
			}else if(trim(fax.value) == ""){
				alert("Please enter your Fax");
				myField = fax;
			}else if(!isNumber(trim(fax.value))){
				alert("Invalid Fax Number");
				myField = fax;
			}else if(trim(alt_number.value) == ""){
				alert("Please enter your Alternate Number");
				myField = alt_number;
			}else if(!isNumber(trim(alt_number.value))){
				alert("Invalid Alt. Number");
				myField = alt_number;
			}else if(!checkRadio("gender")){
				alert("Please make sure to choose your gender.");
				myField = "radio";
			}else if(trim(address.value) == ""){
				alert("Please enter your Address");
				myField = address;
			}else if(!isAddress(trim(address.value))){
				alert("Invalid entries in Address, No address.");
				myField = address;
			}else if(trim(email.value) == ""){
				alert("Please enter your Email Address");
				myField = email;
			}else if(!isEmail(trim(email.value))){
				alert("Invalid Email Format");
				myField = email;
			}else if(trim(website.value) == ""){
				alert("Please enter your Website Address");
				myField = website;
			}else if(!isURL(trim(website.value))){
				alert("Invalid Website Format");
				myField = website;
			}else if(!checkRadio("radEmail")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad1")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad2")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad3")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad3a")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad3b")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad4")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad6")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad7")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(missionstatement.value) == ""){
				alert("Please enter your Mission Statement");
				myField = missionstatement;
			}else if(!checkRadio("rad9")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(what_money_plan.value) == ""){
				alert("Please fill question 10");
				myField = missionstatement;
			}else if(!checkRadio("rad11")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(if_yes_other_programs.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = if_yes_other_programs;
			}else if(!checkRadio("rad12")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad13")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad14")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad15")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(country_of_business.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = country_of_business;
			}else if(trim(years_of_experience.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = years_of_experience;
			}else if(trim(type_of_industry_in.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = type_of_industry_in;
			}else if(trim(specific_prods_and_serv.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = specific_prods_and_serv;
			}else if(!checkRadio("rad20")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad21")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(how_many_employees.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = how_many_employees;
			}else if(trim(operating_annual_budget.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = operating_annual_budget;
			}else if(!checkRadio("rad23a")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad23b")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad23c")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad23d")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(age.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = age;
			}else if(!checkRadio("rad25")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad26")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(religion_specify.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = religion_specify;
			}else if(!isWord(trim(religion_specify.value))){
				alert("Invalid entries in Religion, No numbers.");
				myField = religion_specify;
			}else if(trim(ethnic_background.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = ethnic_background;
			}else if(!isWord(trim(ethnic_background.value))){
				alert("Invalid entries in Ethnic Background, No numbers.");
				myField = ethnic_background;
			}else if(!checkRadio("rad28")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad28a")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad29")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad30")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad30a")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(approximate_props.value) == ""){
				alert("Please make sure the required fields are not blank");
				myField = approximate_props;
			}else if(!checkRadio("rad31a")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("rad32")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(!checkRadio("radContact")){
				alert("Please make sure the required fields are not blank");
				myField = "radio";
			}else if(trim(fax2.value) == ""){
				alert("Please enter your Fax");
				myField = fax2;
			}else if(!isNumber(trim(fax2.value))){
				alert("Invalid Fax Number");
				myField = fax2;
			}else if(trim(email2.value) == ""){
				alert("Please enter your Email Address");
				myField = email2;
			}else if(!isEmail(trim(email2.value))){
				alert("Invalid Email Format");
				myField = email2;
			}else{
				//return true;
			}
		}
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		if(myField){
			if(myField != "radio"){
				myField.focus();
				myField.style.borderColor = "#FF6262";
			}
		}else{
			myForm.submit();	
		}
		
		return false;
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	checkFormProposal = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(name.value) == ""){
				alert("Please enter your Name");
				myField = name;
			}else if(!isWord(trim(name.value))){
				alert("Invalid entries in Name, No numbers.");
				myField = name;
			}else if(trim(company.value) == ""){
				alert("Please enter your Company Name");
				myField = company;
			}else if(!isWord(trim(company.value))){
				alert("Invalid Company Name");
				myField = company;
			}else if(trim(grantType.value) == ""){
				alert("Please enter your Grant Type");
				myField = grantType;
			}else if(!isAddress(trim(grantType.value))){
				alert("Invalid entries in Grant Type, No Grant Type.");
				myField = grantType;
			}else if(trim(foundations1.value) == ""){
				alert("Please enter your Foundations Submitted to");
				myField = foundations1;
			}else if(!isAddress(trim(foundations1.value))){
				alert("Invalid entries in Foundations Submitted to.");
				myField = foundations1;
			}else if(trim(foundations2.value) == ""){
				alert("Please enter your Foundations you plan to Submit to");
				myField = foundations2;
			}else if(!isAddress(trim(foundations2.value))){
				alert("Invalid entries in Foundations you plan to Submit to.");
				myField = foundations2;
			}else if(trim(deadline.value) == ""){
				alert("Please enter your deadline");
				myField = deadline;
			}else if(!isAddress(trim(deadline.value))){
				alert("Invalid entries in deadline.");
				myField = deadline;
			}else{
				//return true;
			}
		}
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		if(myField){
			if(myField != "radio"){
				myField.focus();
				myField.style.borderColor = "#FF6262";
			}
		}else{
			myForm.submit();	
		}
		
		return false;
	}
	
	
	
	
	
	checkFormNonProfit = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(name.value) == ""){
				alert("Please enter your Name");
				myField = name;
			}else if(!isWord(trim(name.value))){
				alert("Invalid entries in Name, No numbers.");
				myField = name;
			}else if(trim(mission.value) == ""){
				alert("Please enter your mission");
				myField = mission;
			}else if(!isAddress(trim(mission.value))){
				alert("Invalid entries in mission.");
				myField = mission;
			}else if(trim(serviceType.value) == ""){
				alert("Please enter your service type");
				myField = serviceType;
			}else if(!isAddress(trim(serviceType.value))){
				alert("Invalid entries in service type.");
				myField = serviceType;
			}else if(trim(grantImpact.value) == ""){
				alert("Please enter your grant impact");
				myField = grantImpact;
			}else if(!isAddress(trim(grantImpact.value))){
				alert("Invalid entries in grant impact.");
				myField = grantImpact;
			}else if(trim(fundType.value) == ""){
				alert("Please enter your fund type");
				myField = fundType;
			}else if(!isAddress(trim(fundType.value))){
				alert("Invalid entries in fund type.");
				myField = fundType;
			}else{
				//return true;
			}
		}
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		if(myField){
			if(myField != "radio"){
				myField.focus();
				myField.style.borderColor = "#FF6262";
			}
		}else{
			myForm.submit();	
		}
		
		return false;
	}
	checkFormClientContact = function(){
		var myField = null;
		var myForm = window.document.myForm;
		with(myForm){
			if(trim(name.value) == ""){
				alert("Please enter your Name");
				myField = name;
			}else if(!isWord(trim(name.value))){
				alert("Invalid entries in Name, No numbers.");
				myField = name;
			}else if(trim(email.value) == ""){
				alert("Please enter your Email Address");
				myField = email;
			}else if(!isEmail(trim(email.value))){
				alert("Invalid entry in email field");
				myField = email;
			}else if(!isNumber(trim(phone.value)) && trim(phone.value) != ""){
				alert("Invalid entries in Phone Number field, No letters or dashes.");
				myField = phone;
			}else{
				//return true;
			}
		}
		
		for(var i=0;i<myForm.length;i++){
			if(myForm[i].type != "radio" && myForm[i].type != "submit")
				myForm[i].style.borderColor = "#AAAAAA";
		}
		if(myField){
			if(myField != "radio"){
				myField.focus();
				myField.style.borderColor = "#FF6262";
			}
		}else{
			myForm.submit();	
		}
		
		return false;
	}	
	