

var pintgo = 0;
var uintgo = 0;

function checkLogin(uname, paword)

{
for ( var useri=0; useri<userID.length; useri++ ) {


	if  (userID[useri]==uname)
	  
		
		
	{
	
	//user exists so we set a flag for the password loop
			
		uintgo = 1;
		break
		//end of outside if clause	
	}
}


//close for loop above


//for loop for password checking
//***************************************************************************************
//password section

if ( uintgo>0 ) {
   
	for ( var userpwi=0; userpwi<uwpwwID.length; userpwi++ ) {

		if  (userpwi==useri)


		if ( paword==uwpwwID[userpwi]) {

			//load the page
			pintgo = 0
			uintgo = 0
			
			//open the hidden members file
			Loadmembersareafile();
			
			//document.location='downloadyogadocs.htm'
			//document.forms[0].reset();

			break
			//end of inner if clause
			}
			else {
			
   			alert('The Password is NOT Correct or BLANK \n\n Also Note:  - Passwords are CASE Sensitive');
   			document.forms[0].reset();

		}



	//end of for loop for password checking
	}
}
else {

   alert('The User Name is NOT Correct, was NOT FOUND or was BLANK\n\n Also Note:  - User Names are CASE Sensitive');
   document.forms[0].reset();

}


}



