function popup(earl,title,sx,sy)
{
    if ( sx == '' || sy == '' )
    {
        window.open(earl,title,'menubar=0,location=0,resizable=1,titlebar=0,scrollbars=1');
    }
    else
    {
        window.open(earl,title,'width='+sx+',height='+sy+',menubar=0,location=0,resizable=1,titlebar=0,scrollbars=1');
    }
}
function windowopen(earl,title,feat){window.open(earl,title,feat);}
function entersubmit(e) {
  var whichcode = 0;
  var MSIE = 0;
  if (window.event){
    MSIE=1;whichcode=window.event.keyCode;
  }
  else
  {whichcode=e.which;}

   if (whichcode == 13)
   {
     if(!MSIE)
       {submitform(e.target.form.name);}
     else{
       submitform(e.srcElement.form.name);}
     return false;
    }
    else
      return true;
}
var winHelp;
var sysname='Learning Place';
function openHelp (page,winName,opts) {
                winHelp=window.open(page,winName,opts);
                winHelp.focus();
                return false;}

function closeHelp () {
                if (winHelp && !winHelp.closed) {
                        winHelp.close();
                        return true;}
                return false;}

function submitform(fn){
document.forms[fn].submit();
// return true;
}
function s_status(str){
this.status=str;
}
function help_load(){window.resizeTo(529,680);}
function supa_load(){window.resizeTo(479,500);}
function loginfocus() {document.form000001.username.focus();}
function resetform(fn){
document.forms[fn].reset();
//return true;
}

function addbookmark()
{
bookmarkurl="http://test.clickforcourses.com/"
bookmarktitle="Welcome To Click for Courses"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
function rldPg(init) {if (init==true) with (navigator){if ((appName=="Netscape")&&(parseInt(appVersion)==4)){document.pgW=innerWidth; document.pgH=innerHeight; onresize=rldPg; }}else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();}
rldPg(true);

