// JavaScript Document

promoCode = "reuse";
promoLocation = "http://www.thirstclencher.com/order_RA.html";


function enterCode(){
	
var userCodeRaw=prompt("Please enter promotion code.","");

var userCode=userCodeRaw.toLowerCase(); 

if (userCode!=null && userCode!="" && userCode == promoCode)
  {
  window.location = promoLocation;
  } else {
	  alert("Invalid code. Please try again.");
  }
}


