function checkProtocol(protocol){ if(location.pathname.indexOf("/~temp/") == 0) return if(location.hostname != "www.mskcc.org") return if(protocol == location.protocol) return location.replace(protocol + "//" + location.hostname + location.pathname + location.search + location.hash) } checkProtocol("http:")