/* function homeTab(n) {
	tabf = document.getElementById('tab-featured');
	tabn = document.getElementById('tab-news');
	contf = document.getElementById('featured-content');
	contn = document.getElementById('news-content');
	
	tabf.src = (n == "featured") ? "images/global/globalgraphics/tab-featured1.gif" : "images/global/globalgraphics/tab-featured2.gif";
	tabn.src = (n == "news") ?  "images/global/globalgraphics/tab-news1.gif" : "images/global/globalgraphics/tab-news2.gif";
	contf.style.display = (n == "featured") ? "block" : "none";
	contn.style.display = (n == "news") ? "block" : "none";
	return;
} */

function homeAlertTabs(n) {
	tabl = document.getElementById('tab-login');
	tabs = document.getElementById('tab-signup');
	tbodyl = document.getElementById('tbody-login');
	tbodys = document.getElementById('tbody-signup');
	tabl.src = (n == "login") ? "../IMG/local/localgraphics/tab-login1.gif" : "../IMG/local/localgraphics/tab-login2.gif";
	tabs.src = (n == "signup") ? "../IMG/local/localgraphics/tab-signup1.gif" : "../IMG/local/localgraphics/tab-signup2.gif";
	tbodyl.style.display = (n == "login") ? "" : "none";
	tbodys.style.display = (n == "signup") ? "" : "none";
	return;
}

function searchTabs(n) {
	tabh = document.getElementById('tab-home');
	tabm = document.getElementById('tab-map');
	tabmar = document.getElementById('tab-market');
	tbodyh = document.getElementById('tbody-home');
	tbodym = document.getElementById('tbody-map');
	tbodyd = document.getElementById('divMap1');
	tabh.src = (n == "home") ? "../IMG/local/localgraphics/tab-searchhome1.gif" : "../IMG/local/localgraphics/tab-searchhome2.gif";
	tabm.src = (n == "map") ? "../IMG/local/localgraphics/tab-searchmap1.gif" : "../IMG/local/localgraphics/tab-searchmap2.gif";
	tabmar.src = (n == "market") ? "../IMG/local/localgraphics/newtomarket_on.gif" : "../IMG/local/localgraphics/newtomarket_off.gif";
	tbodyh.style.display = (n == "home" || n=="market") ? "" : "none";
	tbodym.style.display = (n == "map") ? "" : "none";
	tbodyd.style.display = (n == "map") ? "" : "none";
	if (n=="map")
	{
		tbodyd.style.width='552px';	
		tbodyd.style.height='276px';	
	}else
	{
		tbodyd.style.width='552px';	
		tbodyd.style.height='0px';
	}
	//tbodyd.style.display = (n == "map") ? "" : "none";
	return;
}

function clearinput (sid, text) {
	sinput = document.getElementById(sid);
	sinput.value = (sinput.value == text) ? '' : sinput.value;
	return;
}

function fillinput (sid, text) {
	sinput = document.getElementById(sid);
	sinput.value = (empty(sinput.value)) ? text : sinput.value;
	return;
}

function goTo(loc) {
	window.location=loc;
}

function empty(val) {
	return (val == '');
}


/*
function scheduleShow(MLNumber, LAEmail) {
   window.open('schedule_showing.php?MLNumber=' + MLNumber + '&LAEmail=' + LAEmail,'EANITHING','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=545,height=335,top=100,left=100');
   return;	
}
*/

function scheduleShow(MLNumber, LAEmail, isFHA) {
   window.open('schedule_showing.php?isFHA='+ isFHA+'&MLNumber=' + MLNumber + '&LAEmail=' + LAEmail,'EANITHING','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=545,height=335,top=100,left=100');
   return;	
}

function openTips(l) {
   window.open(l,'EANITHING','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=yes,width=500,height=500,top=100,left=100');
   return;
}

function mortgageCalc() {
   window.open('/mortgagecalc.html','EANITHING','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=610,height=565,top=100,left=100');
   return;
}

function emailFriend(MLNumber) {
   window.open('../Others/email_friend.php?MLNumber='+MLNumber,'EANITHING','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=545,height=530,top=100,left=100');
   return;
}

function forgotPassword() {
   window.open('../Others/forgotPassword.php','ForgotPassword','toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,width=520,height=280,top=100,left=100');
   return;
}


