function NewWindow(mypage, myname, w, h, scroll, toolbar, location) {
var winl = (screen.width - w) / 2;
var wint = ((screen.height - h) / 2) - 70;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar='+toolbar+',location='+location+',resizable'
win = window.open(mypage, myname, winprops)
try
{
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
catch(e){}
}

function NewWindow2(mypage, myname, w, h, scroll, toolbar, location) {
//var winl = (screen.width - w) / 4;
var winl = 1;
//var wint = ((screen.height - h) / 4) - 70;
var wid = w / 2
var hei = h / 2
var wint = ((screen.height - hei)) - 120;
winprops = 'height='+hei+',width='+wid+',top='+wint+',left='+winl+',scrollbars='+scroll+',toolbar='+toolbar+',location='+location+',resizable'
win = window.open(mypage, myname, winprops)
try
{
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
catch(e){}
}


function checkWord(readersEntry) {

   //To adapt this script to another site, change MANRAY below to the password you want. USE

   //ALL UPPERCASE letters, as in the example. TO change where the correct password takes the 

   //reader, change pword2.htm to the URL of the page you want to go to.

	myDate = new Date();
	myDateOut = new String();
	myYear = new String();
	myYear = "32"
	myDateOut = String(myYear) + String(myDate.getMonth()+1) + String(myDate.getDate())

   if (readersEntry.toUpperCase() == myDateOut) {

      location.href="http://www.redto.com/Home.aspx" 

   }else{

      //alert ("Bad password, access denied!!!" + myDateOut + " - " + myDate)
      alert ("Incorrect password, access denied!!!")

   }

}