function newsms() {
        var wdh = 460; hgt = 300;

        var helpName = "sms.php?func=newsms";

        helpWin = open('' + helpName + '', '', 'width=' + wdh + ',height=' + hgt+',left=50,top=40,scrollbars=no,sizeable=yes');
}

function opencompose(to,cc,bcc,target) {

        if(!to) {
        var to = ''
        }

        if(!cc) {
        var cc = ''
        }

        if(!bcc)        {
        var bcc = ''
        }

        if(!target)     {
        var target = ''
        }

        // Open the compose screen in the current window, or popup a new window
        if(target == 1)      {
        location.href='compose.php?func=new&To=' + to + '&Cc=' + cc + '&Bcc=' + bcc;
        } else  {
        var wdh = 640; hgt = 535;
        open('compose.php?func=new&To=' + to + '&Cc=' + cc + '&Bcc=' + bcc + '', '', 'width='
        + wdh + ',height=' + hgt + ',left=10,top=10,scrollbars=no,resizable=yes');
        }

}

function cleanup() {
  exec('logout', '', 'exit()')
}

function logout(unload) {

if (unload || confirm(['Are you sure you want to log-off?']))    {
<!-- if($this->EmptyTrash) { -->
parent.location.href='util.php?func=logout';
//top.FramePage.location.href='util.php?func=logout';
<!-- } -->

<!-- if(!$this->EmptyTrash) { -->
parent.location.href='index.php?func=logout';
//top.FramePage.location.href='index.php?func=logout';
<!-- } -->

												}
}

function exec(op, mboxname) {
  var s = msgHREF + 'cmd.msc?sid=' + sid + '&security=' + security +
    '&mbox=' + encode(mboxname) + '&cmd=' + op

  for (i = 2; i < exec.arguments.length - 1; i++)
    s += '&argv=' + encode(exec.arguments[i])
  s += get_charset()
  cmdOp = exec.arguments[i]
  load(cmdFrame, s)
}


function help(currFile, lang) {
var wdh = 700; hgt = 500;

if(!currFile)
currFile = 'file.html'

helpWin = open('parse.php?file=html/' + lang + '/help/filexp.html&FirstLoad=1&HelpFile=' + currFile +  '', '', 'width=' + wdh + ',height=' + hgt + ',left=100,top=100,status=no,resizable=yes,scrollbars=yes');
}

function calander() {
top.FramePage.location.href='html/$this->Language/calander/index.html';
}
