function goTo_product_page () {
	
	if(document.getElementById("product_box").options[1].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
	document.getElementById("product_box").value="0";<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
	location.href = "construction_financing.php";
	}
		if(document.getElementById("product_box").options[2].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "permanent_financing.php";
	}
		if(document.getElementById("product_box").options[4].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "small_building_loan_program.php";
	}
			if(document.getElementById("product_box").options[5].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "freddie_mac.php";
	}
			if(document.getElementById("product_box").options[6].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "special_needs_financing.php";
	}
			if(document.getElementById("product_box").options[7].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "special_programs.php";
	}
			if(document.getElementById("product_box").options[8].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "additional_services.php";
	
			if(document.getElementById("product_box").options[3].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "energy_efficient.php";
	}
	}


			if(document.getElementById("product_box").options[9].selected){
	document.getElementById("product_box").options.value=document.getElementById("product_box").options.defaultValue;
	document.getElementById("product_box").value="0";
	location.href = "faith_based_development.php";
	}
}

function goTo_product_page2 () {
	
	if(document.getElementById("product_box2").options[1].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
	document.getElementById("product_box2").value="0";<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
	location.href = "construction_financing.php";
	}
		if(document.getElementById("product_box2").options[2].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "permanent_financing.php";
	}
		if(document.getElementById("product_box2").options[4].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "small_building_loan_program.php";
	}
			if(document.getElementById("product_box2").options[5].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "freddie_mac.php";
	}
			if(document.getElementById("product_box2").options[6].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "special_needs_financing.php";
	}
			if(document.getElementById("product_box2").options[7].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "special_programs.php";
	}
			if(document.getElementById("product_box2").options[8].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "additional_services.php";
	}

			if(document.getElementById("product_box2").options[9].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "faith_based_development.php";
	}


			if(document.getElementById("product_box2").options[3].selected){
	document.getElementById("product_box2").options.value=document.getElementById("product_box2").options.defaultValue;
	document.getElementById("product_box2").value="0";
	location.href = "energy_efficient.php";
	}


}


function goTo_area () {
	
	if(document.getElementById("product_box3").options[1].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "HQ_office_biography.php";
	}
	
	if(document.getElementById("product_box3").options[2].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "buffalo_office.php";
	}
	/*if(document.getElementById("product_box3").options[2].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "rochester_office.php";
	}*/
		if(document.getElementById("product_box3").options[3].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "central_region_office.php";
	}
		if(document.getElementById("product_box3").options[4].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "eastern_region_office.php";
	}
			if(document.getElementById("product_box3").options[5].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "hudson_valley_office.php";
	}
			if(document.getElementById("product_box3").options[6].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "ny_bronx_office.php";
	}
			if(document.getElementById("product_box3").options[7].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "ny_brooklyn_office.php";
	}
			if(document.getElementById("product_box3").options[8].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "jersey_city_office.php";
	}
			if(document.getElementById("product_box3").options[9].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "connecticut_office.php";
	}
	
				if(document.getElementById("product_box3").options[10].selected){
	document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;
	document.getElementById("product_box3").value="0";
	location.href = "connecticut_office.php";
	}

}


function successStoryView (url){

document.getElementById("product_box3").options.value=document.getElementById("product_box3").options.defaultValue;<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
document.getElementById("product_box3").value="0";<!-- I USED TWO LINES OF CODE TO SET THE OPTION TO DEFAULT -->
location.href = url;

}


function emptySearch (){

document.getElementById("search_text").value="";

}

function fillSearch (){

document.getElementById("search_text").value="Type in a keyword";

}

drop_menu_timer="";
product_box=""; <!-- TEMPORARY -->

<!-- DROP MENU 1 -->
function drop_menu1 () {
	
	document.getElementById('hack_drop_menu1').style.visibility="visible";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
}

function hide_drop_menu1 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu1").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
}




<!-- DROP MENU 2 -->
function drop_menu2 () {
	
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="visible";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
}

function hide_drop_menu2 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu2").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
}



<!-- DROP MENU 3 -->
function drop_menu3 () {
	
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="visible";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
}

function hide_drop_menu3 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu3").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
}




<!-- DROP MENU 4 -->
function drop_menu4 () {
	
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="visible";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
}

function hide_drop_menu4 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu4").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
}











<!-- DROP MENU AREAS PAGE 1 -->
function drop_menu_areas1 () {
	
	if(document.getElementById('areas_we_serve_form')){
	
	document.getElementById('hack_drop_menu1').style.visibility="visible";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	document.getElementById('areas_we_serve_form').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}else {
	document.getElementById('hack_drop_menu1').style.visibility="visible";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}
}

function hide_drop_menu_areas1 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu1").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
	document.getElementById('areas_we_serve_form').style.visibility="visible";
}




<!-- DROP MENU AREAS PAGE 2 -->
function drop_menu_areas2 () {
	
	if(document.getElementById('areas_we_serve_form')){
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="visible";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	document.getElementById('areas_we_serve_form').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}else {
		document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="visible";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}
}

function hide_drop_menu_areas2 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu2").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
	document.getElementById('areas_we_serve_form').style.visibility="visible";
}



<!-- DROP MENU AREAS PAGE 3 -->
function drop_menu_areas3 () {
	
	if(document.getElementById('areas_we_serve_form')){
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="visible";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	document.getElementById('areas_we_serve_form').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}else {
		document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="visible";
	document.getElementById('hack_drop_menu4').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}
}

function hide_drop_menu_areas3 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu3").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
	document.getElementById('areas_we_serve_form').style.visibility="visible";
}




<!-- DROP MENU AREAS PAGE 4 -->
function drop_menu_areas4 () {
	
	if(document.getElementById('areas_we_serve_form')){
	document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="visible";
	document.getElementById('areas_we_serve_form').style.visibility="hidden";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}else {
			document.getElementById('hack_drop_menu1').style.visibility="hidden";
	document.getElementById('hack_drop_menu2').style.visibility="hidden";
	document.getElementById('hack_drop_menu3').style.visibility="hidden";
	document.getElementById('hack_drop_menu4').style.visibility="visible";
	clearTimeout(drop_menu_timer);
	
	document.getElementById("product_selection_form_home").style.visibility="hidden"; <!-- TEMPORARY -->
	clearTimeout(product_box);<!-- TEMPORARY -->
	}
}

function hide_drop_menu_areas4 () {
	drop_menu_timer=setTimeout('document.getElementById("hack_drop_menu4").style.visibility="hidden"', 100);
	product_box=setTimeout('document.getElementById("product_selection_form_home").style.visibility="visible"', 100); <!-- TEMPORARY -->
	document.getElementById('areas_we_serve_form').style.visibility="visible";
}

function emailSubscribe(){

document.getElementById("email_subscribe").value="";


}
function clearFormItem(fieldID){

document.getElementById(fieldID).value="";
document.getElementById(fieldID).style.color="black";


}
function checkEmailSubscribe( form ){



  if (form.email.value == "" || form.email.value == "Enter email here") {
    
    
    	alert("Please fill in all required fields.");
		 return false ;
      
   
    
  	}else{

	return true ;
  
  	}
  

}