﻿function boxexpand()
{
    // Code to make the script easier to use //
    boxValue=document.all.thebox.value.length
    boxSize=document.all.thebox.size
    minNum=20 // Set this to the MINIMUM size you want your box to be.
    maxNum=100 // Set this to the MAXIMUM size you want your box to be.

    // Starts the main portion of the script //
    if (boxValue > maxNum)
    {
    }
    else
    {
        if (boxValue > minNum)
        {
          document.all.thebox.size = boxValue
        }
        else if (boxValue < minNum || boxValue != minNum)
        {
          document.all.thebox.size = minNum
        }
    }
}
function randomNumber()
{
    random_num = (Math.round((Math.random()*7)+5))
    document.write(random_num);
}
function switchMenu(obj,expandLink) {
	var el = document.getElementById(obj);
	var e2 = document.getElementById(expandLink)
	
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
		e2.innerHTML = "- Show quoted text -";
	} else {
		el.style.display = '';
		e2.innerHTML = "- Hide quoted text -<br />";
	}
}
function switchMenu1(obj,expandText,collapseText) {
	var el = document.getElementById(obj);
	var e2 = document.getElementById("aRef-"+obj)
	
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
		e2.innerHtml=expandImg;
	} else {
		el.style.display = '';
		e2.src=collapseImg;
	}
}