function focusOTP() {
    document.forms[0].otp.focus();
}

function focusPIN() {
    document.forms[0].pin.focus();
}

function focusInput() {
    document.forms[0][0].focus();
}

function focusInputx(x, y) {
    document.forms[x][y].focus();
}

function popup (url, h, w)
{
  //Create a new window
  var newWin = window.open(url, "",
   'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' +
   w + ',height=' + h);
  newWin.focus();
}

function clearInput(id, prefix)
{
    var v = document.getElementById(id).value;
    if (prefix.length > 1 && v.indexOf(prefix) < 0) { // Don't clear this
        return;
    }
    document.getElementById(id).value='';
}

