function GoTo()
{if(document.getElementById("txtSearch").value=="")
{alert("Please enter one or more words or a phrase for the search.");
return false;}
var txtval=document.getElementById("txtSearch").value;                
window.location.replace("Search.aspx?val="+txtval);}

function SetFocus()
{document.getElementById("txtSearch").focus();}

function Clear()
{document.getElementById("txtSearch").value="";}	

// Select an image
function SelectRandom() {
	Collection = new Array();
	Collection[1] = "<img src=\"Images/Sec01.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[2] = "<img src=\"Images/Sub08.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[3] = "<img src=\"Images/Sub02.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[4] = "<img src=\"Images/Sec04.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[5] = "<img src=\"Images/Sec06.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[6] = "<img src=\"Images/Sub09.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[7] = "<img src=\"Images/Sec08.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[8] = "<img src=\"Images/Sec09.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[9] = "<img src=\"Images/Sec10.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[10] = "<img src=\"Images/Sec11.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[11] = "<img src=\"Images/Sec12.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[12] = "<img src=\"Images/Sec13.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[13] = "<img src=\"Images/Sec14.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[14] = "<img src=\"Images/Sub01.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[15] = "<img src=\"Images/Sub02.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[16] = "<img src=\"Images/Sub03.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[17] = "<img src=\"Images/Sub06.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[18] = "<img src=\"Images/Sub11.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[19] = "<img src=\"Images/Sub05.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[20] = "<img src=\"Images/Sec15.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[21] = "<img src=\"Images/Sub07.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[22] = "<img src=\"Images/Sub10.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[23] = "<img src=\"Images/Sub12.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	
	Now = new Date();
	lng = (Now.getSeconds()) % 23;
	lng = lng + 1;
	document.write(Collection[lng]);}

function SelectRandom02() {
	Collection = new Array();
	Collection[1] = "<img src=\"Images/Sec01.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[2] = "<img src=\"Images/Sub08.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[3] = "<img src=\"Images/Sub02.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[4] = "<img src=\"Images/Sec06.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[5] = "<img src=\"Images/Sub09.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[6] = "<img src=\"Images/Sec08.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[7] = "<img src=\"Images/Sec09.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[8] = "<img src=\"Images/Sec10.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[9] = "<img src=\"Images/Sec12.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[10] = "<img src=\"Images/Sec13.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[11] = "<img src=\"Images/Sec14.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[12] = "<img src=\"Images/Sub02.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[13] = "<img src=\"Images/Sub07.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	
	Now = new Date();
	lng = (Now.getSeconds()) % 13;
	lng = lng + 1;
	document.write(Collection[lng]);}

function SelectRandom03() {
	Collection = new Array();
	Collection[1] = "<img src=\"Images/SecFra0101.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[2] = "<img src=\"Images/SecFra0201.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[3] = "<img src=\"Images/SecFra0301.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[4] = "<img src=\"Images/SecFra0401.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[5] = "<img src=\"Images/SecFra0501.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[6] = "<img src=\"Images/SecFra0601.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[7] = "<img src=\"Images/SecFra0701.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	
	Now = new Date();
	lng = (Now.getSeconds()) % 7;
	lng = lng + 1;
	document.write(Collection[lng]);}

function SelectRandom04() {
	Collection = new Array();
	Collection[1] = "<img src=\"Images/SecFra0601.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[2] = "<img src=\"Images/SecFra0501.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[3] = "<img src=\"Images/SecFra0401.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[4] = "<img src=\"Images/SecFra0301.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[5] = "<img src=\"Images/SecFra0201.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[6] = "<img src=\"Images/SecFra0101.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[7] = "<img src=\"Images/SecFra0601.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[8] = "<img src=\"Images/SecFra0501.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[9] = "<img src=\"Images/SecFra0401.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[10] = "<img src=\"Images/SecFra0301.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[11] = "<img src=\"Images/SecFra0201.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	Collection[12] = "<img src=\"Images/SecFra0101.jpg\" width=\"520\" height=\"220\" border=\"0\" alt=\"\">"
	
	Now = new Date();
	lng = (Now.getSeconds()) % 12;
	lng = lng + 1;
	document.write(Collection[lng]);}


