//This is hidden.js, a simple text file containing code //that normally goes between the tags. //Position cursor to text field. document.pform.pword.focus() //Function to check password. function checkWord() { //If you remove .toUpperCase() from line below, visitor must type password //in all uppercase letters, or it won't be accepted. switch (document.pform.pword.value) { case "Master": // entrance for the CAFT directors and staff alert ("Welcome, CAFT staff member!"); location.href="http://caft.rutgers.edu/caftreport/passwArea.html"; break; // case "science": removed as of Sept 17 // entrance for the members having access to everything // location.href="http://foodsci.rutgers.edu/caftreport/main.htm"; // break; // case "culturelle": removed as of April 15, 2008 //entrance for ConAgra, access to everything // location.href="http://foodsci.rutgers.edu/caftreport/conagra_access.htm"; // break; // case "kumarone":removed as of April 28, 2008 // entrance for IFF, access to flavor cluster data only location.href="http://foodsci.rutgers.edu/caftreport/IFF_access.htm"; break; case "screener": // entrance for Wellgen, access to everything location.href="http://caft.rutgers.edu/caftreport/wellgen_access.htm"; break; // case "mmmPrego": removed as of April 19, 2006 // entrance for Campbell Soup, access to everything // location.href="http://foodsci.rutgers.edu/caftreport/campbell_access.htm"; // break; // case "cochleates": removed as of April 15, 2008 // entrance for BioDelivery Sciences, access to everything // location.href="http://foodsci.rutgers.edu/caftreport/bdsi_access.htm"; // break; case "algida": // entrance for Unilever, access to everything location.href="http://caft.rutgers.edu/caftreport/unilever_access.htm"; break; // case "miller": removed as of October 29, 2008 // entrance for General Mills, access to materials // location.href="http://caft.rutgers.edu/caftreport/gm_access.htm"; // break; // case "gustducin": removed as of Jan 15th, 2004 // entrance for Linguagen, access to everything // location.href="http://foodsci.rutgers.edu/caftreport/linguagen_access.htm"; // break; case "peanut": // entrance for M&M Mars, access to everything location.href="http://caft.rutgers.edu/caftreport/m_m_access.htm"; break; case "transport": // entrance for Natick, access to everything location.href="http://caft.rutgers.edu/caftreport/natick_access.htm"; break; // case "friskies": removed as of April 15, 2008 // entrance for Nestle Purina, access to everything // location.href="http://foodsci.rutgers.edu/caftreport/nestle_access.htm"; // break; // case "resistant": // entrance for National Starch, access to material // location.href="http://caft.rutgers.edu/caftreport/national_access.htm"; // break; // case "tokyo": // entrance for Takasago, access to flavor cluster data only // location.href="http://caft.rutgers.edu/caftreport/takasago_access.htm"; // break; default: alert ("Bad password, access denied!!!"); } } //The script tags that read this code into an html page are //at the bottom of the page named hidden01.htm. //You can use a simple text editor, like Windows' Notepad, to //create and edit this .js file.