// JavaScript Document

function fnDisplayDate()
	{
    var this_month = new Array(12);
    var this_wday = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
    this_month[0]  = "January";
    this_month[1]  = "February";
    this_month[2]  = "March";
    this_month[3]  = "April";
    this_month[4]  = "May";
    this_month[5]  = "June";
    this_month[6]  = "July";
    this_month[7]  = "August";
    this_month[8]  = "September";
    this_month[9]  = "October";
    this_month[10] = "November";
    this_month[11] = "December";
    var today = new Date();
    var wday = today.getDay();
    var day   = today.getDate();
    var month = today.getMonth();
    var year  = today.getYear();
    if (year < 1900)
		{
        year += 1900;
		}
    document.write(this_wday[wday]+". "+this_month[month]+" "+day+", "+year+".");
	}

function fnTop()
	{
	var str="";
	str+="<table cellpadding='0' cellspacing='0' border='0' width='768' height='107' class='topbg'>";
	str+="<tr>";
	str+="	<td rowspan='2'><a href='" + linkPath + "index.asp'><img src='" + linkPath + "images/logo.gif' border='0' width='312' height='77' alt='Wise Financial Group Inc.'></a></td>";
	str+="	<td valign='top' align='right'><img src='" + linkPath + "images/toplinks.gif' border='0' width='286' height='15' alt='' usemap='#toplinks_Map'></td>";
	str+="</tr>";
	str+="<tr><td class='date'><script language='JavaScript' type='text/javascript'>fnDisplayDate();</script></td></tr>";
	str+="<tr><td colspan='2'><img src='images/menu.gif' border='0' width='768' height='30' alt='' USEMAP='#menu_Map'></td></tr>";
	str+="</table>";

	str+="<MAP NAME='toplinks_Map'>";
	str+="<AREA SHAPE='rect' ALT='Home' COORDS='6,0,43,14' HREF='" + linkPath + "index.asp'>";
	str+="<AREA SHAPE='rect' ALT='About Us' COORDS='73,0,129,14' HREF='" + linkPath + "about_us.html'>";
	str+="<AREA SHAPE='rect' ALT='FAQ' COORDS='157,0,186,14' HREF='" + linkPath + "faq.asp'>";
	str+="<AREA SHAPE='rect' ALT='Contact Us' COORDS='214,0,278,14' HREF='" + linkPath + "contact_us.html'>";
	str+="</MAP>";	
	document.write(str);
	}


function fnBottom()
	{
	var str="";
	str+="<table cellpadding='0' cellspacing='0' border='0' width='100%' height='62' align='center'>";
	str+="<tr><td class='tdWhite' align='center' colspan='2'>";
	str+="<a href='" + linkPath + "privacy_policy.html' class='btmlnks' title='Privacy Policy'>Privacy Policy</a> &nbsp; | &nbsp; <a href='" + linkPath + "terms_of_use.html' class='btmlnks' title='Terms of Use'>Terms of Use</a> &nbsp; | &nbsp; <a href='" + linkPath + "legal.html' class='btmlnks' title='Legal'>Legal</a> &nbsp; | &nbsp; <a href='" + linkPath + "services_and_products.asp' class='btmlnks' title='Services & Products'>Services & Products</a> &nbsp;|&nbsp;<a href='" + linkPath + "news.asp' class='btmlnks' title='News'>News</a> &nbsp;|&nbsp;<a href='" + linkPath + "special_offers.asp' class='btmlnks' title='Special Offers'>Special Offers</a>&nbsp;|&nbsp;<a href='https://wisefinancial.com/commercial_programs1.asp' class='btmlnks' title='Commercial Application'>Commercial Application</a>";
	str+="<br><a href='http://wisefinancial.elliemae.net/' target='_blank' class='btmlnks' title='Residential Application'>Application Form 2</a> &nbsp;|&nbsp;<a href='" + linkPath + "resources.asp' class='btmlnks' title='Resources'>Resources</a> &nbsp;| &nbsp;<a href='" + linkPath + "contact_us.html' class='btmlnks' title='Contact Us'>Contact Us</a> &nbsp;|&nbsp; <a href='" + linkPath + "faq.asp' class='btmlnks' title='FAQ'>FAQ</a> &nbsp;|&nbsp;<a href='" + linkPath + "about_us.html' class='btmlnks' title='About Us'>About Us</a>";
	str+="</td></tr>";
	str+="<tr><td align='left' class='copyrights'>&copy; 2006 Wise Financial Inc.<sup><font style='font-size:8px;'>TM</font></sup> All rights reserved.</td>";
	str+="<td align='right' class='copyrights'>site by: DAY Vision Marketing</a>&nbsp;&nbsp;</td>";
	str+="</tr>";
	str+="</table>";
	document.write(str);
	}
	
	
	
function Trim(nStr){return nStr.replace(/(^\s*)|(\s*$)/g, "");}
	function fnNewsletterValidate()
		{
			if(Trim(thisFormNews.txtName.value)=="") {alert("Enter name"); thisFormNews.txtName.focus(); return false;}
			if(Trim(thisFormNews.txtNews.value)=="") {alert("Enter Email ID"); thisFormNews.txtNews.focus(); return false;}
			else
				{
					var exp=/^(.)+@{1,1}((.)+\.(.)+)+$/;
					if (!exp.test(thisFormNews.txtNews.value)) {alert("Invalid Email Address"); thisFormNews.txtNews.value=""; thisFormNews.txtNews.focus(); return false;}
				}
		return true;
		}

	
function fnNewsletter()
	{
	var str="";
	str+="<br><table cellpadding='0' cellspacing='0' border='0'>";
	str+="<tr><td colspan='2'><img src='" + linkPath + "images/client_properties1.gif' border='0' width='216' height='22' alt='Client properties'></td></tr>";
	str+="<tr bgcolor='#F9F7F1'><td colspan='2'>&nbsp;</td></tr>";
	str+="<tr bgcolor='#F9F7F1'><td valign='top' height='40'><img src='" + linkPath + "images/bullet.gif' border='0' width='3' height='5' alt='' vspace='6' align='right'></td><td style='padding-left:10px;' height='40' valign='top'><a href='http://www.hair-replace.com' target='_blank'>Advanced Hair Replacement in Allentown, PA</a></td></tr>";
str+="<tr bgcolor='#F9F7F1'><td valign='top' height='40'><img src='" + linkPath + "images/bullet.gif' border='0' width='3' height='5' alt='' vspace='6' align='right'></td><td style='padding-left:10px;' height='40' valign='top'> <a href='http://www.sittlergolf.com' target='_blank'>Sittler's Golf Center</a></td></tr>";
str+="<tr bgcolor='#F9F7F1'><td valign='top' height='40'><img src='" + linkPath + "images/bullet.gif' border='0' width='3' height='5' alt='' vspace='6' align='right'></td><td style='padding-left:10px;' height='40' valign='top'><a href='http://www.gregoryssteakhouse.com' target='_blank'>Gregory's Steakhouse</a></td></tr>";
str+="<tr bgcolor='#F9F7F1'><td valign='top' height='40'><img src='" + linkPath + "images/bullet.gif' border='0' width='3' height='5' alt='' vspace='6' align='right'></td><td style='padding-left:10px;' height='40' valign='top'><a href='http://www.touronabrasa.com' target='_blank'>NaBrasa Brazilian Steakhouse</a></td></tr>";
str+="<tr bgcolor='#F9F7F1'><td valign='top' height='30'><img src='" + linkPath + "images/bullet.gif' border='0' width='3' height='5' alt='' vspace='6' align='right'></td><td style='padding-left:10px;' height='30' valign='top'><a href='http://www.grille3501.com' target='_blank'>Grille 3501</a></td></tr>";
	str+="</table>";
	document.write(str);
	}

