
/* Base_HeaderFooter_Href variable is used for setting domain for OUTGOING links. 
Primarily to make teamsite testing stay in teamsite */
if (window.location.host.indexOf('team') != -1 ||
    window.location.host.indexOf('inftw') != -1) {
	var Base_HeaderFooter_Href = "";
} else {
	var Base_HeaderFooter_Href = "http://www.geappliances.com";
}

/* Base_Support variable is used for SUPPORT FILE CALLS. Images, css, js files.
Maintains proper protocol whether http or https */
if (window.location.host.indexOf('team') != -1 ||
    window.location.host.indexOf('inftw') != -1) {
	var Base_Support = "";
} else {
	var Base_Support = document.location.protocol + "//www.geappliances.com";
}




//so we maintain autonomy
//this is for opening Privacy Policy/Options popup
var ppWin;
ppUrl = Base_HeaderFooter_Href + "/privacy/privacy_policy.htm";
ppFeatures = "width=640,height=500,scrollbars,resizable"
function openPrivacyPolicy() {
	if (!ppWin || ppWin.closed){ ppWin = window.open(ppUrl, '',ppFeatures); }
	else { ppWin.focus(); }
}
//and this is for opening Terms of Use popup
var termsWin;
termsUrl = Base_HeaderFooter_Href + "/plcy/tandc2.htm";
termsFeatures = "width=640,height=500,scrollbars,resizable"
function openTerms() {
	if (!termsWin || termsWin.closed){ termsWin = window.open(termsUrl, '',termsFeatures); }
	else { termsWin.focus(); }
}

//for use as copyright year
curDate = new Date();
var curYear = curDate.getFullYear();

var startingMessage = "Enter E-Mail Address";

function fnClrfldcheck(fld) {
	if(fld.value == startingMessage) {
		fld.value = "";
	}
}

function validEmailFooter(fld) {
	if(fld.value.search(/^\w+((-\w+)|(\.\w+)|(\+\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9][A-Za-z0-9]+$/) == -1) {
		alert("This does not appear to be a valid e-mail address. Please try again.");fld.select();return false;
	}
	return true;
}

//build styles to write to page
//so we maintain COMPLETE autonomy, fonts are fixed pt size
footerCSS = '<style type="text/css">';
footerCSS += '#footerDiv1 { padding:13px 0; font-size:8pt; font-family:Arial,Helvetica,sans-serif; font-weight:normal; color:#666666;}';
footerCSS += '#footerDiv1 a, #footerDiv1 a:link, #footerDiv1 a:active, #footerDiv1 a:visited { font-size:8pt; color:#666666; font-family:Arial,Helvetica,sans-serif; font-weight:normal; text-decoration:none; }';
footerCSS += '#footerDiv1 a:hover { font-size:8pt; color:#666666; font-family:Arial,Helvetica,sans-serif; font-weight:normal; text-decoration:underline;}';
footerCSS += '#footerDiv2 { color:#666666; font-size:8pt; font-family:Arial,Helvetica,sans-serif; font-weight:normal; }';
footerCSS += '#footerDiv3 { float:left; padding:13px 6px 13px 10px; color:#666666; font-size:8pt; font-family:Arial,Helvetica,sans-serif; font-weight:normal; }';
footerCSS += '#footerDiv3 a, #footerDiv3 a:link, #footerDiv3 a:active, #footerDiv3 a:visited { font-size:8pt; color:#3b73b9; font-family:Arial,Helvetica,sans-serif; font-weight:normal; text-decoration:underline; }';
footerCSS += '#footerDiv4 { padding: 11px 0; }';
footerCSS += '#footerDiv3 a:hover { color:#89abd5; }';
footerCSS += '</style>';
document.writeln(footerCSS);


//build html to write to page
footerHTML =  '<div style="width:756px;margin-top:10px;">';
footerHTML += '<div style="margin-left:25px;padding-bottom:8px;border-top:1px solid #cccccc;">';
footerHTML += '<table width="730" cellpadding="0" cellspacing="0" border="0">';
footerHTML += '<tr>';
footerHTML += '<td width="115" valign="middle">';
footerHTML += '<a target="_top" href="http://www.ge.com/olympicgames/"><img width="87" height="49" border="0" alt="GE - Olympic Worldwide Partner" src="'+Base_Support+'/images/olympic_ge_logos_footer.gif" /></a>';
footerHTML += '</td>';
footerHTML += '<td width="295" valign="top" style="border-right:1px solid #cccccc;">';
footerHTML += '<div id="footerDiv1">';
footerHTML += '<a href="http://www.ge.com/" target="_top">Corporate</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="http://www.gecareers.com/" target="_top">Careers</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="http://www.geconsumerproducts.com/pressroom/" target="_top">Press Room</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/products/recall/" target="_top">Recall Information</a><br />';
footerHTML += '<a href="http://www.ge.com/accessibility.html" target="_top">Accessibility Statement</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/service_and_support/contact/" target="_top">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/plcy/stmp.htm" target="_top">Site Map</a><br />';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/privacy/privacy_policy.htm" onclick="openPrivacyPolicy(); return false;">Privacy Policy</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/plcy/tandc2.htm" onclick="openTerms(); return false;">Terms of Use</a></div>';
footerHTML += '</div>';
footerHTML += '</td>';
footerHTML += '<td width="320" valign="top">';
footerHTML += '<form name="footerSignupForm" action="http://genet.geappliances.com/emailafriend/Dispatcher" method="post" onsubmit="return validEmailFooter(this.Email)" style="margin:0;padding:0" target="_top">';
footerHTML += '<input type="hidden" name="REQUEST" value="ENEWSLETTER">';
footerHTML += '<div id="footerDiv3">';
footerHTML += 'Sign up for our e-Newsletter:<br />';
footerHTML += '<a href="'+Base_HeaderFooter_Href+'/email/newsletter/newsletter.htm" target="_top">View current issue</a>';
footerHTML += '</div>';
footerHTML += '<div id="footerDiv4">';
footerHTML += '<input type="text" name="Email" size="9" maxlength="100" style="font-size:8pt;width:115px;color:#666666;display:inline;" value="';
footerHTML += startingMessage+'" onfocus="fnClrfldcheck(this)" />';
footerHTML += '<input type="image" src="'+Base_Support+'/images/btn_go_new_blue.gif" name="go" alt="go" width="27" height="19" border="0" align="top" style="margin-left:6px;display:inline;" />';
footerHTML += '</div>';
footerHTML += '</form>';
footerHTML += '</td>';
footerHTML += '</tr>';
footerHTML += '</table>';
footerHTML += '<div style="border-top: solid 1px #cccccc; border-bottom: solid 1px #cccccc; padding: 2px 0; text-align: center;">';
footerHTML += '<div id="footerDiv2">Copyright '+curYear+' General Electric Company</div>';
footerHTML += '</div>';
footerHTML += '</div>';
footerHTML += '</div>';
document.writeln(footerHTML);
