function regulate() { if (document.pass.pass.value == 'icmcgear') { window.location = "http://www.cafepress.com/icmc_store"; } else { window.location = "incorrect.htm"; } }