// JavaScript Document

// Add event listener to perform tasks after page load
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
addLoadEvent(alterSearchSubmit);
addLoadEvent(function() {
  /* more code to run on page load */ 
});

function alterSearchSubmit(){
	var search_submit=document.getElementById('dnn_dnnSEARCH_cmdSearch');
	search_submit.innerHTML='&nbsp;';
	search_submit.style.display='block';
}

// Homepage tabs
function swapTabs(tabNum){
	for(i=0; document.getElementById('tab'+(i+1)); i++){
		document.getElementById('tab'+(i+1)).className='';
		document.getElementById('tab'+(i+1)+'_content').className='hide';
	}
	document.getElementById('tab'+tabNum).className='selected';
	document.getElementById('tab'+tabNum+'_content').className='show';
}

//my functions made from the scripts without said functions

// Date/time scripts
	function showDate() {
		var now = new Date();
    var days = new Array(
      'Sun.','Mon.','Tues.',
      'Wed.','Thurs.','Fri.','Sat.');
    var months = new Array(
      'Jan.','Feb.','Mar,','Apr.','May',
      'June','July','Aug.','Sept.','Oct.',
      'Nov.','Dec.');
    var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
    function fourdigits(number)	{
      return (number < 1000) ? number + 1900 : number;}
    today =  days[now.getDay()] + " " +
       months[now.getMonth()] + " " +
       date + ", " +
       (fourdigits(now.getYear()));
     document.write(today);
	}

<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var timerID = null;
var timerRunning = false;
function stopclock (){
        if(timerRunning)
                clearTimeout(timerID);
        timerRunning = false;
}

function startclock () {
        stopclock();
        showtime();
}

function showTime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >12) ? hours -12 :hours)
        timeValue += ((minutes < 10) ? ":0" : ":") + minutes
        //timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        timeValue += (hours >= 12) ? " PM" : " AM"
        document.getElementById('time').innerHTML=timeValue;
        timerID = setTimeout("showTime()",1000);
        timerRunning = true;
}
//-->

// Get page title
function getTitle(){
	if(document.title.length>0)
		document.write('<h1>'+document.title+'</h1>');
}
