function isHomePage() { loc = document.location.href + " "; if ((-1 < loc.indexOf("servlet/com.deere.u90257.agportal.view.servlets.HomePageServlet")) || (-1 < loc.indexOf("servlet/AgHomePageServlet")) || (-1 < loc.indexOf("de_DE/ag/agindex.jsp"))) { return true; } else { return false; } } function loggedin() { return false; } function getSMMyInfo() { return "https://registration.deere.com/StandardRegistrationEditServlet?EM_SELECTAPPNAME=AG"; } function getSMRegistrationURL() { return "https://registration.deere.com/servlet/com.deere.u90950.webregistration.view.servlets.StandardRegistrationAddServlet?EM_SelectLanguage=en&EM_SelectCountry=US&EM_SelectAppname=AG&EM_SelectColor=GREEN&TARGET=https%3A%2F%2Fregistration.deere.com%2Fservlet%2Fcom.deere.u90950.webregistration.view.servlets.ProtectedOptinServlet%3Fuseraction%3Dag%26TARGET%3Dhttp%3A%2F%2Fwww.deere.com%2Fservlet%2Fsiteminder%2Fenglish_login.jsp%3Ftarget%3Dhome"; } function getUserName() { return " "; } function goToJDParts() { if(loggedin()) { window.location = "http://jdparts.deere.com/servlet/com.deere.u90.jdparts.view.servlets.maincontroller.SessionStartup"; } else { window.location = "http://jdparts.deere.com/"; } } function openConfigurator(configUrl) { var height; var width; var top; var left; if(window.screen.availHeight > 600) { height = 600; width = 800; } else if(window.screen.availHeight > 480) { height = 520; width = 790; } else { height = 405; width = 630; } if(window.screen.availHeight > height) top = (window.screen.availHeight - height) / 2; else top = 0; if(window.screen.availWidth > width) left = (window.screen.availWidth - width) / 2; else left = 0; winDims = 'width='+width+',height='+height+',screenX='+left+',screenY='+top+',left='+left+',top='+top; newWindow = window.open(configUrl, "configuratordeerecom", winDims+',resizable=yes,scrollbars=yes,menubar=no,toolbar=no,directories=no,location=no,status=yes'); }