  //#/#/#/#/#/#/ Main Site Functions /#/#/#/#/#/#/#//
  // Created by: Gryphon, LLC (www.gryphonllc.com) //
  //#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#//
  function navConfirm(message, url)
  {
    if(confirm(message)) location.href = url;
  }

  function pop(mypage, myname, w, h, scroll)
  {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+'';
    win = window.open(mypage, myname, winprops);
    if (parseInt(navigator.appVersion) >= 4) {
      win.window.focus();
    }
  }

  function openirc(chan, server)
  {
    var popurl = '/ps/irc.php?server='+server+'&channel='+chan+'';
    winpops = window.open(popurl,"","width=730,height=510,")
  }

  function greet()
  {
    var today = new Date ();
    var hrs = today.getHours();
    if (hrs <= 11)
    document.write("Good Morning");
    else if (hrs <= 18)
    document.write("Good Afternoon");
    else
    document.write("Good Evening");
  }

  function moveText()
  {
    window.document.add_news.source_name.value = window.document.add_news.source_select.options[window.document.add_news.source_select.selectedIndex].value
  }
  //#/#/#/#/#/#/ Main Site Functions /#/#/#/#/#/#/#//
  // Created by: Gryphon, LLC (www.gryphonllc.com) //
  //#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#/#//

  function psu_log_out()
  {
  	ht = document.getElementsByTagName("html");
  	ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
  	if (confirm('Are you sure you want to log out?'))
  	{
  		return true;
  	}
  	else
  	{
  		ht[0].style.filter = "";
  		return false;
  	}
  }

  /*
  Select and Copy form element script- By Dynamicdrive.com
  For full source, Terms of service, and 100s DTHML scripts
  Visit http://www.dynamicdrive.com
  */

  //specify whether contents should be auto copied to clipboard (memory)
  //Applies only to IE 4+
  //0=no, 1=yes
  var copytoclip=1

  function HighlightAll(theField) {
    var tempval=eval("document."+theField)
    tempval.focus()
    tempval.select()
    if (document.all&&copytoclip==1){
      therange=tempval.createTextRange()
      therange.execCommand("Copy")
      window.status="Contents highlighted and copied to clipboard!"
      setTimeout("window.status=''",1800)
    }
  }
