function check(frmObj) {
		//if(ValidateForm(frmObj)) 
		//{
			var pass = frmObj.TR_Password.value.trim();
			var passlen = pass.length;
			var cpass = frmObj.TR_Confirm_Password.value.trim();
			var email = frmObj.TREF_Email_address.value.trim();
			var timezone=frmObj.TR_Timezone.value;
			var country=frmObj.TR_Country.value;
			var other_country=frmObj.Other_Country.value;
			var sub_interest_1=frmObj.sub_interest.value;
			
			
			if(email == '')
			{
					alert("Please enter email address");
					frmObj.TREF_Email_address.focus();
					return false;
			}
			if(!ValidateEMail(frmObj.TREF_Email_address.value))
			{
				alert("Please enter valid email address");
				frmObj.TREF_Email_address.focus();
				return false;
			}
			if(email != '')
			{
				uemail = email.split('@');
				if(uemail[1] == 'eduwizards.com' )
				{
					alert('Please enter a current personal email-id. @eduwizards.com ids are not allowed.');
					return false;
				}	
				else if(uemail[1] == 'eduwizard.com' )
				{
					alert('Please enter a current personal email-id. @eduwizard.com ids are not allowed.');
					return false;
				}	
			}
			
			if(pass=='')
			{
				alert("Please enter password");
				frmObj.TR_Password.focus();
				return false;
			}
			if(cpass=='')
			{
				alert("Please enter confirm password");
				frmObj.TR_Confirm_Password.focus();
				return false;
			}
			for(i=0; i<=passlen; i++)
			{
				if(pass.charAt(i) == "/" || pass.charAt(i) == "'" || pass.charAt(i) == '"' || pass.charAt(i) == "\\")
				{
					alert("The password contains illegal characters.");
					frmObj.TR_Password.focus();
					return false;
				}
			}
			
			if(passlen < 6) 
			{
				alert("Please enter minimum 6 character for password");
				frmObj.TR_Password.focus();
				return false;
			} 
			
			if(cpass!=pass)
			{
				alert("Password Mismatch");
				frmObj.TR_Confirm_Password.focus();
				return false;
			}
			if(other_country=='' && country=='')
			{
				alert("Please Select Country");
				frmObj.TR_Country.focus();
				return false;
			}
			
			if(timezone=='')
			{
				alert("Please Select Timezone");
				frmObj.TR_Timezone.focus();
				return false;
			}
			
			if(other_country!='' && country!='')
			{
				frmObj.TR_Country.value=''
			}
			if(other_country!='')
			{
				if(sub_interest_1=='')
				{
					alert("Please enter the subjects you are interested in teaching");
					frmObj.sub_interest.focus();
					return false;
				}
				
			}
			// else {
				
				//return true;
			//}
			
		//} 
		//else 
		//{
			//return false;
		//}	
		frmObj.action = "tutor-registration.php?event=auth";
		return true;
}

var divToExpand = "";
	var divToCollapse = "";
	function expandAndCollapseDivs(divToExpand, divToCollapse){
		var expRelated = eval(document.getElementById(divToExpand));
		
		expRelated.style.display = "inline";
		expRelated.style.visibility = "visible";
		
		var collRelated = eval(document.getElementById(divToCollapse));
		collRelated.style.display = "none";
		collRelated.style.visibility = "hidden";
		
		if(divToExpand == 'ans_1'){
			//document.getElementById("tutor_info1").style.display = "none";
			//document.getElementById("tutor_info1").style.visibility = "hidden";
			document.getElementById("tutor_info2").style.display = "none";
			document.getElementById("tutor_info2").style.visibility = "hidden";
			document.getElementById("tutor_info3").style.display = "none";
			document.getElementById("tutor_info3").style.visibility = "hidden";
			document.getElementById("tutor_info4").style.display = "none";
			document.getElementById("tutor_info4").style.visibility = "hidden";
			document.getElementById("tutor_info5").style.display = "none";
			document.getElementById("tutor_info5").style.visibility = "hidden";
			document.getElementById("tutor_info6").style.display = "none";
			document.getElementById("tutor_info6").style.visibility = "hidden";
			document.getElementById("tutor_info7").style.display = "none";
			document.getElementById("tutor_info7").style.visibility = "hidden";
			document.getElementById("darkorange").style.display = "none";
			document.getElementById("darkorange").style.visibility = "hidden";
			document.getElementById("paypal").style.display = "none";
			document.getElementById("paypal").style.visibility = "hidden";
			
		}
		if(divToExpand == 'qus_1')
		{
			//document.getElementById("tutor_info1").style.display = "inline";
			//document.getElementById("tutor_info1").style.visibility = "visible";
			document.getElementById("tutor_info2").style.display = "inline";
			document.getElementById("tutor_info2").style.visibility = "visible";
			document.getElementById("tutor_info3").style.display = "inline";
			document.getElementById("tutor_info3").style.visibility = "visible";
			document.getElementById("tutor_info4").style.display = "inline";
			document.getElementById("tutor_info4").style.visibility = "visible";
			document.getElementById("tutor_info5").style.display = "inline";
			document.getElementById("tutor_info5").style.visibility = "visible";
			document.getElementById("tutor_info6").style.display = "inline";
			document.getElementById("tutor_info6").style.visibility = "visible";
			document.getElementById("tutor_info7").style.display = "inline";
			document.getElementById("tutor_info7").style.visibility = "visible";
			document.getElementById("darkorange").style.display = "inline";
			document.getElementById("darkorange").style.visibility = "visible";
			document.getElementById("paypal").style.display = "inline";
			document.getElementById("paypal").style.visibility = "visible";
			
			
		}
	}

