/*
function check1(){
if (top.frames.length!=0) top.location=self.document.location;
}
*/


function frontpage(){
	alert("If you previously created a Code Name"
	+" it WILL NOT work properly.\n\n"
	+" You will need to GET an ID CARD.");
	}



function showDate(){
	day = new Date();
	month = day.getMonth();
	date = day.getDate();
	year = day.getYear();
	monthName = new makeArray('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December');
	document.write(monthName[month] + " " +date+", 19"+year);
}

function validate() {
 
     if (document.frontgate.code_name.value =="")
	{
	alert ("You did not enter a Code Name! Please fill it in");
        return false;
        }
}

function winopen1(URLToOpen) {
        var newWindow
        windowHandle = window.open(URLToOpen,'helpwin','toolbar=No,location=No,directories=No,status=No,menubar=No,scrollbars=Yes,resizable=Yes,copyhistory=No,width=425,height=300,Screenx=200,Screeny=100');
	if (windowHandle.ONBLUR) {
		setTimeout('windowHandle.close()',7000);
	}
}

function CloseMe() {
	parent.window.close();
	}

// From ID CARD SECTION

function reloaded(){
     if (document.idcard.code_name.value == document.idcard.code_name1.value)
	{
	document.idcard.codename.value=document.idcard.code_name.value
        }
}

  function verifyPW(){
     if (document.idcard.code_name.value != document.idcard.code_name1.value)
	{
	alert ("Your Code Name and the Verify Code Name fields do NOT match. Please re-enter.");
        return false;
        }
     if (document.idcard.code_name.value == document.idcard.code_name1.value)
	{
	document.idcard.codename.value=document.idcard.code_name.value
        }

  }

 function id_validate() {
 
     if (document.idcard.first_name.value =="")
	{
	alert ("Your First Name is blank! Please fill it in");
        return false;
        }
     if (document.idcard.last_name.value =="")
	{
	alert ("Your Last Name is blank! Please fill it in");
        return false;
        }
}




// STOP ID CARD SECTION

