
function help(UrlAddress) { window.open(UrlAddress,"HelpWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=10,left=10,width=400,height=250")
}

function directions(UrlAddress) { window.open(UrlAddress,"DirectionsWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=30,left=30,width=800,height=350")
}

function directory(UrlAddress) { window.open(UrlAddress,"DirectoryWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=30,left=30,width=650,height=350")
}

function chat(UrlAddress) { window.open(UrlAddress,"ChatWindow","toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,top=10,left=10,width=500,height=250")
}

// following function will be used to validated the information entered
  // by the user

  // to make sure that info entered is a real e-mail address

  function isEmail(str) {
  // are regular expressions supported?
  var supported = 0;
  if (window.RegExp) {
    var tempStr = "a";
    var tempReg = new RegExp(tempStr);
    if (tempReg.test(tempStr)) supported = 1;
  }
  if (!supported)
    return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
  var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)");
  var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
  return (!r1.test(str) && r2.test(str));
  }

  function p_clue(str)
  {
     
     if (str == "")
     {
        return true;
     }
  }
  
  // function to be called when user clicks on the submit button

  function submitIt(pform)
  {
     if (!isEmail(pform.email.value))
     {
        alert("Invalid email address entered");
        pform.email.focus();
        pform.email.select();
        return false;
     }

     if (p_clue(pform.cue_answer.value))
     {
       alert("You must enter information in the password clue field");
       pform.cue_answer.focus();
       pform.cue_answer.select();
       return false;
     }

     // If we made it to here, everything's valid, so return true
     return true;
  }



// THESE VARIABLES CAN BE CHANGED //

var myMainMessage="This is your message! ----- (http://www.wyka-warzecha.com) ";
var speed=150;
var scrollingRegion=50;

// END CHANGEABLE VARIABLES //

var startPosition=0;

function mainTextScroller() {

        var mainMessage=myMainMessage;
        var tempLoc=(scrollingRegion*3/mainMessage.length)+1;
        if (tempLoc<1) {tempLoc=1}
        var counter;

        for(counter=0;counter<=tempLoc;counter++)
           mainMessage+=mainMessage;


document.mainForm.mainTextScroller.value=mainMessage.substring(startPosition,startPosition+scrollingRegion);

        startPosition++;
        if(startPosition>scrollingRegion) startPosition=0;

        setTimeout("mainTextScroller()",speed); }

