// JavaScript Document

function validate()
		{
		if (document.search.searcharg.value == "Find books, movies, music and more") {
		alert( "Please enter a search term." ); 
		return false ;

		}
		  else
		
		if (document.search.searcharg.value == "") {
		alert( "Please enter a search term." ); 
		return false ;

		}
		else 
    {
    return true;
    }


		}

function clearDefault(el) {
		if (el.defaultValue==el.value) el.value = ""
		}

function displayText(iid,value,display)
		{
			if(document.getElementById(iid).value =="")
			{
				document.getElementById(iid).value=display;
			}
		}
		

NumberOfImagesToRotate = 4;
FirstPart = '<img style="border:none;" src="/images/contact/ContactUs';
LastPart = '.jpg">';

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + LastPart);
}
