<div id="changepassword" style="display: none;">

<div id="passworderror" class="passworderror" style="display: none;">

This is a password error box.

</div>

<form name="changepassword" method="get" style="margin: 0px; padding: 0px;" onsubmit="return submitchangepassword()" action="">

<table>

<tr>

<th class="orange" align="center" colspan="2" height="35">Change Password</th>

</tr>

<tr>

<td align="right">Old Password: </td><td><input type="password" name="txtoldpassword" id="txtoldpassword" class="changepassword" maxlength="25" /></td>

</tr>

<tr>

<td align="right">New Password: </td><td><input type="password" name="txtnewpassword" id="txtnewpassword" class="changepassword" maxlength="25" /></td>

</tr>

<tr>

<td align="right">Confirm Password: </td><td><input type="password" name="txtrepassword" id="txtrepassword" class="changepassword" maxlength="25" /></td>

</tr>

<tr>

<td align="right">&nbsp;</td><td><input type="image" name="submit" src="images/btnupdate.png" style="margin: 3px;"  /> <input type="image" name="reset" src="images/btncancel.png" style="margin: 3px;" id="resetbutton"  /></td>

</tr>

<tr>

<td colspan="2"><img src="images/line.png" alt=""  /></td>

</tr>

</table>

</form>

</div>

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="headeritems">

  <tr>

    <td width="32%" rowspan="3" style="padding-left:10px;"><img src="images/logo.png" alt="" border="0" /></td>

    <td width="68%" align="right" style="padding:10px;" class="white">Welcome <strong><?=$_SESSION['SUPER_USER_NAME']?></strong>, <a href="logout.php" class="orange">Logout</a> &nbsp;(<a href="#" class="colorboxpopup" id="changepasswordLink">Change Password</a>)&nbsp;</td>

  </tr>

  <tr>

    <td height="42">&nbsp;</td>

  </tr>

  <tr>

    <td align="right" style="padding-right:10px;" class="size14 bold white" valign="bottom"><table cellspacing="0" cellpadding="0" class="maintabtable" border="0" ><tr>

<?php

if ($_SESSION['IS_USER_CLIENT'] == 0)

{

	## ADD EXCEPTIONS

	$tabArray = array(

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='overview.php'\"> Overview </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='campaigns.php'\"> Campaigns </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='addressbook.php'\"> Contacts </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='reports.php'\"> Reports </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='managesmtp.php'\"> Administration </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='manageusers.php'\"> Manage Users </td>"

	);

}

else

{

	## ADD EXCEPTIONS

	$tabArray = array(

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='campaigns.php'\"> Campaigns </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='addressbook.php'\"> Contacts </td>",

		"<td nowrap=\"nowrap\" style=\"cursor:pointer;\" onclick=\"javascript:window.location.href='reports.php'\"> Reports </td>",

	);

}

foreach ($tabArray as $key => $val)

{

	$strpos = strpos($val, $activeTab);



	if ($strpos > 0)

	{

		$newString = str_replace('style="cursor:pointer;"','style="cursor:pointer;" class="active" ',$val);

		echo $newString;

	}

	else

	{

		echo $val;

	}	

}

?>

</tr></table></td></tr></table>