
function email_Submit() 
{
  document.password.pword.focus();
  return false;
}

function password_Submit() 
{
  document.password.email.value = document.login.email.value;
  return true;
}

function openhelp(page)
{
	window.open(page, "", "width=275, height=500");
}

function switchit(filename)
{
document.maptitle.src="images/map/" + filename;
}




function addtherest()
{
var pattern = new RegExp('@');
//if (document.password.email.value!= "" && document.password.email.value.length <= 12)
if (document.password.email.value!= "" && !pattern.test(document.password.email.value))
	{
	document.password.email.value = (document.password.email.value + "@pennswoods.net");
	}
//document.password.submit();
}

function clearpwusername()
{
	document.implogin.user.value = "";
	addedpw=0;
}

function clearpwpassword()
{
	document.implogin.pass.value = "";
	addedpw=0;
}

function clearpostiniemail()
{
	document.password.email.value = "";
	addedpw=0;
}

function clearpostinipassword()
{
	document.password.pword.value = "";
	addedpw=0;
}



function dontpanic()
{
    document.implogin.gobutton.disabled = true;
    document.implogin.gobutton.value = 'Logging in...';
    setTimeout("okaypanicnow();",120000); //1000 milliseconds is 1 seconds
}

function okaypanicnow()
{
    document.implogin.gobutton.disabled = false;
    document.implogin.gobutton.value = 'Go';
}



	var months=new Array(13);
	months[1]="January";
	months[2]="February";
	months[3]="March";
	months[4]="April";
	months[5]="May";
	months[6]="June";
	months[7]="July";
	months[8]="August";
	months[9]="September";
	months[10]="October";
	months[11]="November";
	months[12]="December";
	
	var stuff=new Date();
	var lmonth=months[stuff.getMonth() + 1];
	var date=stuff.getDate();
	var year=stuff.getFullYear();

	
	
function resetstuff()
{
document.password.email.value = "";
document.password.pword.value = "";
document.implogin.user.value = "";
document.implogin.pass.value = "";
document.implogin.user.focus()
	
netscape = (navigator.appName.indexOf("Netscape") != -1);
opera = (navigator.appName.indexOf("Opera") != -1);
version4 = (navigator.appVersion.indexOf("4.") != -1);

if ((netscape == false) || (version4 == false)) 
{ 
	document.implogin.user.size=15;
	document.implogin.pass.size=15;
	document.password.email.size=15;
	document.password.pword.size=15;	
}

}
