var usertip = "Enter User Name Here";
var pwdtip = "Enter Password Here";
function setTip(tip)
        {
        Tip(tip);
        }

function validate()
{
 e=document.loginform;
        if(e.username.value=="")
        {
                alert("Enter User Name");
                e.username.focus();
                return false;
        }
      //  if(e.pwd.value=="")
        // {
          //     alert("Enter Password");
           //    e.pwd.focus();
            //   return false;
        // }
        
return true;
}
function encode(text) {


Ref="1923786540ckjmonpqstuvrxydahgeilbfwzCKJMONPQSTUVRXYDAHGEILBFWZ";
       Result="";
      for (Count=0; Count<text.length; Count++) {

           Char=text.substring (Count, Count+1);
           Num=Ref.indexOf (Char);
           EncodeChar=Ref.substring(Num+1, Num+2);
           Result += EncodeChar;

      }

 document.form1.pwd.value=Result;
 }
function check()
{
       
        var val=document.getElementById("cmb1");
        if(val.value=="Nov08")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/nov2008/index.jsp';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="June09")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/june2009/index.jsp';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="Dec09")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/dec2009/index.jsp';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="June10")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/june2010/index.html';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="Dec10")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/dec2010/index.html';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="June11")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/june2011/index.html';
                document.mainform.submit();
              //  return true;
        }
        else if(val.value=="Dec11")
        {
                document.mainform.action = 'http://topsupercomputers-india.iisc.ernet.in/jsps/dec2011/index.html';
                document.mainform.submit();
        }

//return false;
}


