// External script file - is referenced in head of all preview pages
// this script blocks access to the page and redirects to the login form, unless 
// user has already logged in and has the login cookie written to his computer

// Angela, to insure unlimited access to all preview pages while you are working with them locally, just 
// comment out all the code below in the copy of this file which resides on your own computer
// make sure you leave this script intact (not commentted out) in the copy of this file which resides on 
// the remote server

reCookieLogin = /ripsych/;

	//if(document.cookie != "") {
	
		//userName = document.cookie.split("=")[1];
	
		//if(!reCookieLogin.test(userName)) {
			//not a valid cookie, so redirect to preview login page
			//document.location.replace('previewlogin.html');
		//}
	
	//} else {
		//no cookie, so redirect to preview login page
    	//document.location.replace('previewlogin.html');
	//}
	
