<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>VIZOR</title>
	
	<!--MqRelPath--><link rel="stylesheet" type="text/css" href="theme/css/censusmain.css" /><!--/MqRelPath--><!--MqAbsPath><link rel="stylesheet" type="text/css" href="<BASE_VD>/theme/css/censusmain.css" /></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="js/mqsysutils.js"></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/mqsysutils.js"></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="js/cmqhttprequest.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/cmqhttprequest.js" ></script></MqAbsPath-->
	<!--MqRelPath--><script type="text/javascript" src="js/cmqsysmsg.js" ></script><!--/MqRelPath--><!--MqAbsPath><script type="text/javascript" src="<BASE_VD>/js/cmqsysmsg.js" ></script></MqAbsPath-->
	<script type="text/javascript" src="js/jquery/jquery-1.7.1.js"></script>

	<script type="text/javascript" src="js/themes.js"></script>
	
	
	<script type="text/javascript">
		var m_objMqButton= new MqButton;
		var m_blnShowLogonUI=false;
		var objRequest= new CMqHTTPRequest_js();
		
		var strCurrentLocation=location.protocol+"//"+location.hostname + ":" + location.port+getPath(location.pathname)
			
		function onLoad()
		{
			g_MqRef.ResMgr.ProcessAll();
			
		}
		
		function resetPwd()
		{
			var strUserName=document.getElementById("UserName").value;
			var strEmail=document.getElementById("Email").value;
			
			var co=objRequest.Post(strCurrentLocation + "WebAPI/UserService.asmx/ResetPassword", 
												"userName=" + g_MqRef.MqStr.MqEncodeURIComponent(strUserName) + 
												"&emailAddress=" + g_MqRef.MqStr.MqEncodeURIComponent(strEmail));
			
			if (co!=objRequest.CANCEL_PROCESS){
								
				var objResponse=objRequest.Response(co);
									
				if (objResponse){
					if (objResponse.HasErrors()){
						objResponse.ProcessErrors("",true,window);
					}else{
						var objStartDiv=document.getElementById("resetPwdStart");
						var objEndDiv=document.getElementById("resetPwdDone");
						if(objStartDiv){
							objStartDiv.style.display="none";
							
							if(objEndDiv){
								var objEmailSentTo=document.getElementById("emailSentTo"); 
								if(objEmailSentTo){
									objEmailSentTo.innerHTML=strEmail;
								}
								objEndDiv.style.display="";
							}
						}			
					}
				}
			}
		}
		
	</script>
</head>
<body class="LogonBody" onload="onLoad();">

	<div class="TopBar">
			<table width="100%" class="TopBar">
				<tr>
					<td align="left" width="200">
						<img src="theme/images/logos/logo.jpg" />
					</td>
					<td>
						&#160;
					</td>
					<td align="right" width="200">	
						&#160;
					</td>
				</tr>
			</table>
		</div>
		


	<div class="loginDiv" id="loginScreen">
		
		<div id="resetPwdStart">
        <div class="personaLinks" style="padding-top:30px; padding-left:70px; font-size:12px;color:#666666;cursor:default;">
		<label id="userLabel" for="UserName" class="logonInput">Password Reset</label>
		<br /><br />Enter the username and e-mail address for your Vector Issue Tracker account.
		<br />An e-mail will be sent to you with further instructions to reset your password.</div>
			<div class="loginDivInner" id="loginDivInner" style="margin-top:30px;padding-left:70px">
			<table id="loginDivInnerTable" style="padding:0px;border-spacing:0px" >
			<tr><td style="padding-left:3px">
				<label id="userLabel" for="UserName" class="logonInput" translate="yes" data-res="CAPTION_USERNAME"></label>
			</td></tr>
			<tr><td>
				<table style="border-spacing:0px;padding:0px;margin:0px" >
				<tr>
					<td >
					    <input type="text" name="UserName" id="UserName" class="logonInput" ></td>
				</tr>
					<tr><td style="padding-top:20px">
					<label id="pwdLabel" for="Email"  class="logonInput" translate="yes" data-res="RESETPWD.CAPTION_EMAIL"></label>
				</td></tr>
				<tr>
					<td>						        
					    <input type="text" name="Email" id="Email" class="logonInput" /></td>
				</tr></table></td>
				
			</tr>
			<tr>
			<td style="padding-top:20px;">
					<script type="text/javascript">
						m_objMqButton.WriteButtonHTML("ResetPwd","resetPwd();","Logon",false,m_objMqButton.STATE_1,
													"","",document,g_MqRef.RESX["RESETPWD.RESET_BUTTON"]);
					</script></td>
			</tr>
			<tr>
				<td style="padding-top:20px;">
					<a href="logon.asp" class="LogonWithNet" id="returnToLogon" name="returnToLogon">Return to logon page</a>
				</td>
			</tr>
			</table>
			</div>
		</div>
			<div id="resetPwdDone" style="display:none">
        <div class="personaLinks" style="padding-top:30px; padding-left:70px; font-size:12px;color:#666666">
		<label id="userLabel" for="UserName" class="logonInput">Password Reset</label>
		<br /><br />An e-mail has been sent to <span style="font-weight:900" id="emailSentTo"></span>. <br /><br />
		Please follow the instructions in the e-mail to reset your password.
		<br /><br /><a href="logon.asp" class="LogonWithNet" id="returnToLogon" name="returnToLogon">Return to logon page</a>
								
		
		</div>
			
			</div>
			
			<div class="CopyrightMsg" id="divCopyrightMsg" translate="yes" data-res="MSG_COPYRIGHT"></div>

    </div>
    
	</body>
</html>







