function popit(url,name,param) {
 window.open(url, name, param)}

window.status = "Welcome to South Florida Federal Credit Union";

function show() {
document.getElementById('stocks').style.display = 'inline';
document.getElementById('close').style.display = 'inline';
document.getElementById('open').style.display = 'none';
document.getElementById('search').style.display = 'none';
}

function hide() {
document.getElementById('stocks').style.display = 'none';
document.getElementById('close').style.display = 'none';
document.getElementById('open').style.display = 'inline';
document.getElementById('search').style.display = 'inline';
}


function ticker_quote() {
go = 'scripts/quote.php?tickersymbol=' + document.quote.tickersymbol.value;
window.open(go,'quoteWin','width=445,height=275,top=0,left=0');
}


function fullforecast(num){
window.open('/scripts/weather/details.php?zip=' + num,'weather','menubar=0,toolbar=0,personalbar=0,status=0,scrollbars,width=600,height=600,top=0,left=0')
}

function extforecast(num){
window.open('/scripts/weather/forecast.php?zip='+ num,'weather','menubar=0,toolbar=0,personalbar=0,status=0,scrollbars,width=600,height=600,top=0,left=0')
}


function weather() {
var zip = zipcode.zip.value;
var go = "/scripts/weather/details.php?zip=" + zip; 
window.open(go, 'weather','location=0,menubar=0,toolbar=0,personalbar=0,status=0,scrollbars,width=600,height=600,top=50,left=50')
}


function show_weather() {
document.getElementById('weather').style.display = 'inline';
document.getElementById('open-weather').style.display = 'none';
document.getElementById('close-weather').style.display = 'inline';
document.getElementById('weatherform').style.display = 'none';
}

function hide_weather() {
document.getElementById('weather').style.display = 'none';
document.getElementById('open-weather').style.display = 'inline';
document.getElementById('close-weather').style.display = 'none';
document.getElementById('weatherform').style.display = 'inline';
}

function verify_field()
{
	var first_name = contact.FirstName;
	var last_name = contact.LastName;
	//var email_address = contact.Email;
	var contact_number = contact.HomePhone;
	//var contact_number2 = contact.WorkPhone;
	var comments = contact.Comments;	
	var submit_OK = true;
	

	if (! first_name.value )
	{
		alert("Please enter your First Name!");
                contact.FirstName.focus();
                submit_OK = false;
		return false;
	}
	
	if (! last_name.value )
	{
		alert("Please enter your Last Name!");
		contact.LastName.focus();
		submit_OK = false;
		return false;
	}
	
	if (! contact_number.value )
	{
		alert("Please enter your Home Contact Number!");
		contact.HomePhone.focus();
		submit_OK = false;
		return false;
	}

	//if (! contact_number2.value )
	//{
	//	alert("Please enter your Work Contact Number!");
	//	contact.WorkPhone.focus();
	//	submit_OK = false;
	//	return false;
	//}
	
	//if (! email_address.value )
	//{
	//	alert("Please enter your Email Address!");
	//	contact.Email.focus();
	//	submit_OK = false;
	//	return false;
	//}

	if (document.contact.MemberofSFFCU[0].checked == false && document.contact.MemberofSFFCU[1].checked == false)
	{
		alert("Are you a member of SFFCU?");
		contact.MemberofSFFCU[0].focus();
		submit_OK = false;
		return false;
	}


	if (! comments.value )
	{
		alert("Please enter Your Inquiry!");
		contact.Comments.focus();
		submit_OK = false;
		return false;
	}

	
	if (submit_OK == true)
	{
		return true;
	}
	else
	{
		return false;
	}
}