/*---\\\ CHECK USER FUNCTIONS ///---*/
function chkUser_request(eml,sid){
var httpParam = new Object();
	httpParam.eml = eml;
	httpParam.sid = sid;
	http( "POST" , "CFC/pfyAJAX.cfc?method=chkUser" , chkUser_response , httpParam );

}	
	
function chkUser_response(obj){
	if((document.Volunteer1.volLoginID.value==0)&&(obj.stat)&&(obj.worp)) {//&&(document.login.password.value.length)
		alert("This email is already registered. Please login.");
		location.href="volunteer1.cfm?eml="+obj.eml;
	}
}
/*---\\\ CHECK USER FUNCTIONS ///---*/

/*---\\\ CHECK USER FUNCTIONS ///---*/
function chkUser2_request(form){
	if((form.volLoginID.value)
		 	&&(form.emlH.value.length)
			&& (form.FirstName.value.length)
			&& (form.LastName.value.length))			
	http( "POST" , "CFC/pfyAJAX.cfc?method=chkUser2" , chkUser2_response , form );

}	
	
function chkUser2_response(obj){
	if((obj.stat)&&(!obj.worp)) {
		showLogin("newAcct");
		document.Volunteer1.newAcct.value = 1;
		document.Volunteer1.newPass.style.backgroundColor = 'lightYellow';
		alert("This user is already registered. Please create a new password.");
		document.Volunteer1.newPass.focus();
	}
}
/*---\\\ CHECK USER FUNCTIONS ///---*/
