function jsubmitcontactus(){
	frm = document.frmContactUs
	var iError = -1
	cssNormal = "textnormal"
	cssRequired =  'textred'
	cssInvalid =  'textblue'

	sAlpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz- '()"


	// First Name //
	if (frm.txtName.value ==""){
		if ( iError == -1 ){ frm.txtName.focus()}
		iError = 1
		document.getElementById( 'tr_1' ).className = cssRequired
		alert("Please enter your first name.")
		return;
	}
	else if (frm.txtName.value.length < 3){
		if ( iError == -1 ){ frm.txtName.focus()}
		iError = 1
		document.getElementById( 'tr_1' ).className = cssInvalid
		alert("Your first name must be greater than 3 characters in length.")
		return;
	}
	else if (jfIsValid (frm.txtName.value, sAlpha) == false){
		if ( iError == -1 ){frm.txtName.focus()}
		iError = 1
		document.getElementById( 'tr_1' ).className = cssInvalid
		alert("Your first name must contain alphabetic characters only.")
		return;
	}
	else {
		document.getElementById( 'tr_1' ).className = cssNormal
	}


	// Email Address //
	if ( frm.txtEmail.value == ""){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		document.getElementById( 'tr_4' ).className = cssRequired
		alert("Please enter your email address.")
		return;
	}
	else if ( jfIsEmail(frm.txtEmail.value) == false){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		document.getElementById( 'tr_4' ).className = cssInvalid
		alert("Please enter a valid email address.")
		return;
	}
	else {
		document.getElementById( 'tr_4' ).className = cssNormal
	}

//===Submit form if no errors found ===/

	if ( iError == -1 ){
		frm.submit();
	}

}


function jLaunchWindow( sURL, sWidth, sHeight ){
	sParams = "'directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,width=" + sWidth + ",height=" + sHeight + ",toolbar=no'"
	 newWin = window.open( sURL,'Help', sParams);
}

function jsend(){

	frm = document.frmNews
	iError = -1

	// Email Address //
	if ( frm.txtTo.value == ""){
		if ( iError == -1 ){ frm.txtTo.focus()}
		iError = 8
		alert("Please enter a valid email address.")
		return;
	}
	else if ( jfIsEmail(frm.txtTo.value) == false){
		if ( iError == -1 ){ frm.txtTo.focus()}
		iError = 8
		alert("Please enter a valid email address.")
		return;
	}
	
	// First Name //
	if (frm.txtFromName.value ==""){
		if ( iError == -1 ){ frm.txtFromName.focus()}
		iError = 1
		alert("Please enter your name.")
		return;
	}
	else if (frm.txtFromName.value.length < 3){
		if ( iError == -1 ){ frm.txtFromName.focus()}
		iError = 1
		alert("Your name must be greater than 3 characters in length.")
		return;
	}
	//else if (jfIsValid (frm.txtFromName.value, sAlpha) == false){
	//	if ( iError == -1 ){frm.txtFromName.focus()}
	//	iError = 1
	//	alert("Your name must contain alphabetic characters only.")
	//	return;
	//}


	// Email Address //
	if ( frm.txtFrom.value == ""){
		if ( iError == -1 ){ frm.txtFrom.focus()}
		iError = 8
		alert("Please enter your email address.")
		return;
	}
	else if ( jfIsEmail(frm.txtFrom.value) == false){
		if ( iError == -1 ){ frm.txtFrom.focus()}
		iError = 8
		alert("Please enter a valid email address.")
		return;
	}


//===Submit form if no errors found ===/

	if ( iError == -1 ){
		frm.submit();
	}
}


function jcomment(){

	frm = document.frmComment
	iError = -1

	// Full Name //
	if ( frm.txtFullname.value == ""){
		if ( iError == -1 ){ frm.txtFullname.focus()}
		iError = 8
		alert("Please enter your name.")
		return;
	}
	else if (frm.txtFullname.value.length < 3){
		if ( iError == -1 ){ frm.txtFullname.focus()}
		iError = 1
		alert("Your name must be greater than 3 characters in length.")
		return;
	}

	// Email Address //
	if ( frm.txtEmail.value == ""){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		alert("Please enter your email address.")
		return;
	}
	else if ( jfIsEmail(frm.txtEmail.value) == false){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		alert("Please enter a valid email address.")
		return;
	}

	// City //
	//if ( frm.txtCity.value == ""){
	//	if ( iError == -1 ){ frm.txtCity.focus()}
	//	iError = 8
	//	alert("Please enter your city/town.")
	//	return;
	//}
	//else if (frm.txtCity.value.length < 3){
	//	if ( iError == -1 ){ frm.txtCity.focus()}
	//	iError = 1
	//	alert("Your city/town must be greater than 3 characters in length.")
	//	return;
	//}
	
	// County //
	//if ( frm.txtCounty.value == ""){
	//	if ( iError == -1 ){ frm.txtCounty.focus()}
	//	iError = 8
	//	alert("Please enter your county.")
	//	return;
	//}
	//else if (frm.txtCounty.value.length < 3){
	//	if ( iError == -1 ){ frm.txtCounty.focus()}
	//	iError = 1
	//	alert("Your county must be greater than 3 characters in length.")
	//	return;
	//}	

//===Submit form if no errors found ===/

	if ( iError == -1 ){
		frm.submit();
	}
}


function jcomplain(){

	frm = document.frmComplain
	iError = -1

	// Email Address //
	if ( frm.txtEmail.value == ""){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		alert("Please enter your email address.")
		return;
	}
	else if ( jfIsEmail(frm.txtEmail.value) == false){
		if ( iError == -1 ){ frm.txtEmail.focus()}
		iError = 8
		alert("Please enter a valid email address.")
		return;
	}

//===Submit form if no errors found ===/

	if ( iError == -1 ){
		frm.submit();
	}
}