<script type="text/javascript">
function adminPasswordResponse(response) {
if (response.responseText == "true") {
$('adminPasswordStatus').innerHTML = okString;
$('nextTabButton').disabled = false;
} else {
$('adminPasswordStatus').innerHTML = errorImage +
$('nextTabButton').disabled = true;
}
}
function validateAdminPasswords() {
var link = "?actionLink=checkPasswords";
var cValue = "confirm=" + encodeURIComponent($('adminConfirm').value);
var aValue = "&password=" + encodeURIComponent($('adminPassword').value);
var oValue = "&otherPassword=x";
var type = "&type=admin";
ie7fix++;
var iefix = "&ie7fix=" + ie7fix;
field = "adminPassword";
AjaxUtils.doPost(null, "$context$path" + link + iefix,
cValue + aValue + oValue + type, adminPasswordResponse, null, null);
}
function initStep1() {
$('nextTabButton').disabled = true;
}
YAHOO.util.Event.onDOMReady(initStep1);
</script>
<div style="margin-left:10px;">
<h1>$page.getLocalizedString("step1.title")<img class="pointer" src="$context/assets/images/message.gif"/></h1>
<div class="summaryPanel" style="width:610px">
<b class="xtop"><b class="xt1"></b><b class="xt2"></b><b class="xt3"></b><b class="xt4"></b></b>
<div class="bodyBox" style="height:180px">
<span>
<table class="temp">
<tr>
<tr>
<td>
<input id="adminPassword" name="adminPassword"
type="password" value=""
width="40" class="text"
onkeyup="APP.callDelayed(this,validateAdminPasswords)"
onchange="APP.callDelayed(this,validateAdminPasswords)" >
<span id="adminPasswordStatus"></span>
</td>
</tr>
<tr>
<td>
<input id="adminConfirm" name="adminConfirm"
type="password" value=""
width="40" class="text"
onkeyup="APP.callDelayed(this,validateAdminPasswords)"
onchange="APP.callDelayed(this,validateAdminPasswords)">
</td>
</tr>
</table>
</span>
</div>
<b class="xbottom"><b class="xbGray1"></b><b class="xbGray2"></b><b class="xbGray3"></b><b class="xbGray4"></b></b>
</div>
</div>