<!--
document.forms[0].NirvanaID.focus();

if (navigator.appName == 'Netscape') 
{
    window.captureEvents(Event.KEYPRESS);
    window.onKeyPress = netscapeKeyPress;
}

function netscapeKeyPress(e) 
{
     if (e.which == 13)
     {
	 	if (Validate()) document.forms[0].submit();
	 }
}

function microsoftKeyPress()
{
    if (window.event.keyCode == 13) 
	{
		if (Validate()) document.forms[0].submit();
	}
}

function Validate()
{
	var i;
	var j;
	var sText_Value;
	var sError_Message = '';

	//Simple Stuff first:)
	// If IE make all tables cells grey (except headings).
	
	if (navigator.appName != 'Netscape')
	{
		for (i=1; i<4; i++)
		{
			for (j=0; j<document.all.tabCustData.rows(i).cells.length; j++)		
			{
				document.all.tabCustData.rows(i).cells(j).bgColor = '';
			}
		}	
	}
	
	// VALIDATION STARTS NOW!
	//Checking the Name on Card field value for entry.
	sText_Value = document.forms[0].NirvanaID.value; 

	if (sText_Value.length < 1)
	{
		sError_Message = 'The form could not be submitted due to the following:  ';
		sError_Message = sError_Message + '\nThe Nirvana ID field has no value entered.  Please re-enter.';
		
		//Highlight the row Microsoft ONLY!
		if (navigator.appName != 'Netscape')
		{
			for (j=0; j<document.all.tabCustData.rows(1).cells.length; j++)		
			{
				document.all.tabCustData.rows(1).cells(j).bgColor = '#FFFF99';
			}
		}
	}
	
	// VALIDATION STARTS NOW!
	//Checking the Name on Card field value for entry.
	sText_Value = document.forms[0].NirvanaPW.value; 

	if (sText_Value.length < 1)
	{
		if (sError_Message.length == 0)
		{
			sError_Message = 'The form could not be submitted due to the following:  ';
			sError_Message = sError_Message + '\nThe Password field has no value entered.  Please re-enter.';
		}
		else
		{
			sError_Message = sError_Message + '\nThe Password field has no value entered.  Please re-enter.';
		}
		
		//Highlight the row Microsoft ONLY!
		if (navigator.appName != 'Netscape')
		{
			for (j=0; j<document.all.tabCustData.rows(2).cells.length; j++)		
			{
				document.all.tabCustData.rows(2).cells(j).bgColor = '#FFFF99';
			}
		}
	}
	
	//Submit Form or Not?
	if (sError_Message.length > 1)
	{
		//Sorry did not pass:(
		alert(sError_Message);
		return false; 
	}
	else //SUCCESS!
	{
		return true;
	}

} 

function OpenWindow()
{
	if (navigator.appName != 'Netscape')
	{
		window.open('forgot.asp','PopUp','toolbars=0,scrollbars=0,location=0,statusbars=0,menubars=0,resizable=1,width=450,height=200,left=190,top=42');
	}
	else
	{
		window.open('forgot.asp','PopUp', 'resizable=1,outerWidth=450,outerHeight=230,screenX=190,screenY=42');
	}
}

// -->