// footer include file: Matt

// FUNCTIONS: Ron

function subscribePg(form) { // Ron
 if (form.email.value == "") { 
   alert("Please enter a valid email address");
   return false;
 } else if (form.firstname.value == "") {
   alert("Please enter a valid name");
   return false;
 } else if (form.zipcode.value == "") {
   alert("Please enter a valid zip code");
   return false;
 }

 // Get datestamp: Ron
datetoday = new Date();
var datestring;
var month = datetoday.getMonth()+1;
if (month < 10) {
 month = '0' + month;
}
var day = datetoday.getDate();
if (day < 10) {
 day = '0' + day;
}
var year = datetoday.getFullYear();
datestring = month + '/' + day + '/' + year;


var emailName = form.email.value;
var fName = form.firstname.value;
var zCode = form.zipcode.value;
//location.href = 'http://www.you-click.net/ProfileSubmit?pid=10800&pname=northerntool&i=5&email=' + emailName + '&firstname=' + fName + '&zipcode=' + zCode + '&url=http://secure.clickaction.net/partner/northerntool/survey5.html%3femail=' + emailName + '%26firstname=' + fName + '%26zipcode=' + zCode + '';
location.href = 'http://www.you-click.net/ProfileSubmit?pid=10800&pname=northerntool&i=5&email=' + emailName + '&firstname=' + fName + '&zipcode=' + zCode + '&subscriber_date=' + datestring + '&url=http://secure.clickaction.net/partner/northerntool/survey5.html%3femail=' + emailName + '%26firstname=' + fName + '%26zipcode=' + zCode + '&Subscriber_Date=' + datestring + '';

return false;
}

function eraseEmailFld() {
 document.EmailSubscribe.email.value="";
 return false;
}

function eraseNameFld() {
 document.EmailSubscribe.firstname.value="";
 return false;
}

function eraseZipFld() {
 document.EmailSubscribe.zipcode.value="";
 return false;
}

// END OF FUNCTIONS

///////////////////////////////////////////////////////////////////////////////////////////////

document.write('</td></tr></table>');

document.write('<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\"><tr><td><img src=\"'+imageServer+'/images/footer/footerbar.gif\" width=\"780\" height=\"1\" alt=\"\" border=\"0\"></td></tr><tr><td>');

// email sign-up test begin: matt
document.write('<!-- mbox begin -->');
document.write('<div class=\"mboxDefault\">');
// email deals sign up
document.write('<table border=\"0" cellpadding=\"0" cellspacing=\"0" width=\"100%\"><form action=\"http://www.you-click.net/ProfileSubmit?pid=10800&pname=northerntool&i=5\" name=\"EmailSubscribe\" method=\"get\" onSubmit=\"return subscribePg(this)\"><tr><td><img src=\"'+imageServer+'/images/footer/emaildealstext.gif\" width=\"343\" height=\"28\" alt=\"Email Deals\" border=\"0\"></td><td background=\"'+imageServer+'/images/footer/emaildealsbkgrd.gif\" width=\"100%\"><table cellpadding=\"2\" cellspacing=\"0\" border=\"0\"><tr><td><input type=\"text\" name=\"email\" size=\"30\" maxlength=\"60\" value=\"Email Address\" class=\"inputtypetext\" onFocus=\"eraseEmailFld()\"></td><td><input type=\"text\" name=\"firstname\" size=\"15\" maxlength=\"25\" VALUE=\"First Name\" class=\"inputtypetext\" onFocus=\"eraseNameFld()\"></td><td><input type=\"text\" name=\"zipcode\" size=\"5\" maxlength=\"7\" VALUE=\"ZipCode\" class=\"inputtypetext\" onFocus=\"eraseZipFld()\"></td></tr></table></td><td align=\"right\"><input type=\"image\" src=\"'+imageServer+'/images/footer/emaildealssignup.gif\" border=\"0\"><input type=\"hidden\" name=\"func\" value=\"S_survey_submit"><INPUT type=\"hidden\" name=\"pid\" VALUE=\"10800"><input type=\"hidden\" name=\"pname\" VALUE=\"northerntool\"><input type=\"hidden\" name=\"u\" VALUE=\"0\"><input type=\"hidden\" name=\"i\" VALUE=\"1"></td></tr></form></table>');
document.write('</div>');

mboxCreate('Footer_EmailSignUpTest');
document.write('<!-- mbox end -->');
// email sign-up test end: matt

// bottom text links
document.write('<tr><td align=\"center\" height=\"46\">');
document.write('<a href=\"/custhelp/productrecalls.htm\"><span style=\"font: bold 10px verdana,arial,sans-serif; color: #ffffff; text-decoration: underline; background: #660000; padding:4px;\">Product Recall</span></a>&nbsp;&nbsp;');
document.write('<a class=\"details\" href=\"/\">Home</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/affiliates/\">Affiliates</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/careers/\">Careers</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/companyinfo/\">Company Info</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/contactus/\">Contact Us</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/gov/\">Government</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/custhelp/privacypolicy.htm">Privacy Policy</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/racing/">Racing</a><br>');
document.write('<a class=\"details\" href=\"/custhelp/ordersecurity.htm\">Security</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/sitemap.htm\">Site Map</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/custhelp/terms.htm\">Terms + Conditions</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"http://www.northerntooluk.com/\">UK</a>&nbsp;|&nbsp;');
document.write('<a class=\"details\" href=\"/espanol/ventas.htm">Espaņol</a>');
document.write('</td></tr>');

document.write('<tr><td align=\"center\" valign=\"top\"><table cellpadding=\"8\" cellspacing=\"0\" border=\"0\"><tr>');

// years in business
document.write('<td valign=\"bottom\"><a href=\"/companyinfo/\"><img src=\"'+imageServer+'/images/footer/26yearsinbusiness.gif\" width=\"112\" height=\"58\" alt=\"26 Years in Business!\" border=\"0\"></a></td>');

// hacker safe
document.write('<td align=\"center\" width=\"100%\"><!-- START SCANALERT CODE --><a target=\"_blank\" href=\"https://www.scanalert.com/RatingVerify?ref=northerntool.com\"><img width=\"115\" height=\"32\" border=\"0\" src=\"//images.scanalert.com/meter/northerntool.com/12.gif\" alt=\"HACKER SAFE certified sites prevent over 99.9% of hacker crime.\" oncontextmenu=\"alert(\'Copying Prohibited by Law - HACKER SAFE is a Trademark of ScanAlert\'); return false;\"></a><!-- END SCANALERT CODE --></td>');

// verisign
document.write('<td align=\"right\" valign=\"bottom\"><a href=\"https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.NORTHERNTOOL.COM&lang=en\" target=\"_blank\"><img src=\"'+imageServer+'/images/footer/verisign.gif\" width=\"112\" height=\"58\" alt=\"Click to Verify\" border=\"0\"></a></td></tr>');

// order info
document.write('<tr><td colspan=\"3\" align=\"center\"><table cellpadding=\"0\" cellspacing=\"0\" border=\"0\"><tr><td align=\"center\" style=\"padding-bottom: 12px;\"><img src=\"'+imageServer+'/images/footer/buyonlineorcall.gif\" width=\"221\" height=\"14\" alt=\"Buy Online or Call 1-800-221-0516\" border=\"0\"></td></tr><tr><td align=\"center\"><img src=\"'+imageServer+'/images/footer/creditcards.gif\" width=\"351\" height=\"25\" alt=\"Visa, MasterCard, Discover, American Express, SmartPay, Northern Power Card, Northern Net 30 Card, Northern Gift Card\" border=\"0\"></td></tr></table></td></tr>');

// copyright info
document.write('<tr><td align=\"center\" colspan=\"3\" class=\"details\">Copyright &#169; 1996 &#150; 2008 Northern Tool + Equipment Catalog Co. All Rights Reserved.</td></tr></table></td></tr></table>');