function ValidateNewPassword(str1, str2, str3)
{
		xmlHttpCourses=GetXmlHttpObject();
		if (xmlHttpCourses==null)
		{
		alert ("Browser does not support HTTP Request");
		return;
		}

		document.getElementById("LoadingMsg").innerHTML = 'Loading&hellip;';
		document.getElementById("LoadingBar").style.display="";
		document.getElementById("OldPasswordErrorText").innerHTML = "&nbsp;";
		document.getElementById("NewPasswordErrorText").innerHTML = "&nbsp;";
		document.getElementById("RetryPasswordErrorText").innerHTML = "&nbsp;";
		document.getElementById("InvalidErrorText").innerHTML =  "&nbsp;";

		var url="http://www.indb2b.com/Ajax.php";
		var parameters="fuse=4&OldPassword="+str1+"&NewPassword="+str2+"&RetryPassword="+str3;

		xmlHttpCourses.onreadystatechange= function ()
			{
			if (xmlHttpCourses.readyState==4 || xmlHttpCourses.readyState=="complete")
				{
					if (xmlHttpCourses.responseText == 1)
					{
					document.getElementById("OldPasswordError").className="fld_ERROR";
					document.getElementById("OldPasswordErrorText").innerHTML = 'Enter a Valid Old Password.';
					}
					else if (xmlHttpCourses.responseText == 2)
					{
					document.getElementById("NewPasswordError").className="fld_ERROR";
					document.getElementById("NewPasswordErrorText").innerHTML = 'Enter a Your New Password.';
					}
					else if (xmlHttpCourses.responseText == 3)
					{
					document.getElementById("RetryPasswordError").className="fld_ERROR";
					document.getElementById("RetryPasswordErrorText").innerHTML = 'Enter a Your Retry New Password.';
					}
					else if (xmlHttpCourses.responseText == 4)
					{
					document.getElementById("RetryPasswordError").className="fld_ERROR";
					document.getElementById("NewPasswordError").className="fld_ERROR";
					document.getElementById("InvalidErrorText").innerHTML = 'The Re-Entered password does not match the first password.';
					}
					else if (xmlHttpCourses.responseText == 5)
					{
					document.getElementById("OldPasswordError").className="fld_ERROR";
					document.getElementById("OldPasswordErrorText").innerHTML = 'Invalid Old Password.';
					}
					else if (xmlHttpCourses.responseText == 6)
					{
							alert ("Password Updated Successfully.\n\nKindly Login Again. Please Click OK");
							window.location='logout.html';
					}
					else if (xmlHttpCourses.responseText == 7)
					{
							alert ("Oops Unknown Error Occurs.. Please Close your Browser and Try After Some Time");
							window.location='logout.html';
					}
					document.getElementById("LoadingBar").style.display="none";
					document.getElementById("LoadingMsg").innerHTML = '';
				}
			}

		xmlHttpCourses.open('POST', url, true);
		xmlHttpCourses.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xmlHttpCourses.setRequestHeader("Content-length", parameters.length);
		xmlHttpCourses.setRequestHeader("Connection", "close");
		xmlHttpCourses.send(parameters);
}