if ($newmail_changetitle) {
echo "<script type=\"text/javascript\">\n" .
- "function ChangeTitleLoad() {\n";
+ "function ChangeTitleLoad() {\n" .
+ "var BeforeChangeTitle;\n";
echo 'window.parent.document.title = "' .
sprintf(ngettext("%s New Message","%s New Messages",$totalNew), $totalNew) .
"\";\n";
* @param string the name of the checkbox that should be (un)checked
*/
function row_click(chkboxName) {
- chkbox = document.getElementById(chkboxName);
+ var chkbox = document.getElementById(chkboxName);
if (chkbox) {
// initialize orig_row_color if not defined already
if (!orig_row_colors[chkboxName]) {
*/
function getCSSClass (theRow)
{
+ var rowClass;
// 3.1 ... with DOM compatible browsers except Opera that does not return
// valid values with "getAttribute"
if (typeof(window.opera) == 'undefined'
* need to predefine the entire array
*/
function rowOver(chkboxName) {
- chkbox = document.getElementById(chkboxName);
+ var chkbox = document.getElementById(chkboxName);
+ var rowClass, rowNum, overClass, clickedClass;
if (chkbox) {
if (!orig_row_colors[chkboxName]) {
rowClass = getCSSClass(chkbox.parentNode.parentNode);
* @param string new color of the checked rows
*/
function toggle_all(formname, fancy) {
- TargetForm = document.getElementById(formname);
- j = 0;
+ var TargetForm = document.getElementById(formname);
+ var j = 0;
for (var i = 0; i < TargetForm.elements.length; i++) {
if (TargetForm.elements[i].type == 'checkbox' && TargetForm.elements[i].name.substring(0,3) == 'msg') {
if (fancy) {
}
if (!iWidth) iWidth = 640;
if (!iHeight) iHeight = 550;
- sArg = "width=" + iWidth + ",height=" + iHeight + ",scrollbars=yes,resizable=yes,status=yes";
+ var sArg = "width=" + iWidth + ",height=" + iHeight + ",scrollbars=yes,resizable=yes,status=yes";
var newwin = window.open(comp_uri, "_blank", sArg);
}
* Reload the read_body screen on sending an mdn receipt
*/
function sendMDN() {
- mdnuri=window.location+'&sendreceipt=1';
+ var mdnuri=window.location+'&sendreceipt=1';
window.location = mdnuri;
}