	/* ####################### begins list of images to be used   ####################### */
	currentIndx=0;
	MyImages=new Array();
	MyImages[0]='images/top_img1.jpg';
	MyImages[1]='images/top_img2.jpg';
	MyImages[2]='images/top_img3.jpg';
	MyImages[3]='images/top_img4.jpg';	
	MyImages[4]='images/top_img5.jpg';
	MyImages[5]='images/top_img6.jpg';
	MyImages[6]='images/top_img7.jpg';
	
	/* ####################### now we preload the images ####################### */
	
	imagesPreloaded = new Array(7);
	for (var i = 0; i < MyImages.length ; i++) {
		imagesPreloaded[i] = new Image(120,120);
		imagesPreloaded[i].src=MyImages[i];
	}
	/* ####################### this function loads a random image ####################### */
	
	function newImage() {
		currentIndx=Math.round(Math.random()*6);
		document.theImage.src=imagesPreloaded[currentIndx].src;
	}

	function uniqueString() {
		var mydate = new Date;
		var myday = mydate.getDate();
		var mymonth = mydate.getMonth()+1;
		var myhour = mydate.getHours();
		var myminutes = mydate.getMinutes();
		var myseconds = mydate.getSeconds();
		if(mymonth < 10) mymonth = "0" + mymonth;
		if(myday < 10) myday = "0" + myday;
		if(myhour < 10) myhour = "0" + myhour;
		if(myminutes < 10) myminutes = "0" + myminutes;
		if(myseconds < 10) myseconds = "0" + myseconds;
		uniq = 1 + mymonth + myday + myhour + myminutes + myseconds;
		document.getElementById('transid').value = uniq;
		document.getElementById('redirect').value = "http://www.perioartsinstitute.com/contact-thanks.html?transid=" + uniq;
	}