﻿    // JScript File

    function OpenPage(URL){
    window.location= URL;
    }

    function Delete(URL, Message){
    if(confirm(Message)){
    window.location= URL;
    }
    }

    function Edit(td1, td2){        
    document.getElementById(td1).style.display ="none";
    document.getElementById(td2).style.display = "block";
    }

    function CancelEdit(td1, td2){        
    document.getElementById(td1).style.display ="block";
    document.getElementById(td2).style.display = "none";
    }

    var newwindow = ''
    function popitup(url) {
    if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url; 
    newwindow.focus(); } 
    else { 
    newwindow=window.open(url,'Map','width=404,height=316,resizable=1,top=200,left=300');} 
    }


    function tidy() {
    if (newwindow.location && !newwindow.closed) { 
    newwindow.close(); } 
    }
    
    function scroll(seed )
{
     var msg  = "..::Welcome to Lincolns Group of Colleges Website::..";
     var out   = " "
     var i     = 1
     if (seed > 100) {
          seed--;
          var cmd  = "scroll(" + seed + ")";
          timerTwo = window.setTimeout(cmd,100);
     }
     else if (seed <= 100 && seed > 0) {
          for (i = 0 ; i < seed ; i++) {
               out += " ";
          }
          out += msg;
          seed--;
          var cmd = "scroll(" + seed + ")";
          window.status=out;
          timerTwo=window.setTimeout(cmd,100);
     }
     else if (seed <= 0) {
          if (-seed < msg.length) {
               out += msg.substring(-seed,msg.length);
               seed--;
               var cmd="scroll(" + seed + ")";
               window.status=out;
               timerTwo=window.setTimeout(cmd,100);
          }
          else {
               window.status=" ";
               timerTwo=window.setTimeout("scroll(100)",75);

          }

     }

 }

