function checkNameDetails(form)
{
	if(document.theformname.storeName.value == "")
                                                          {
		alert("Please enter store name");
		document.theformname.storeName.focus();
		return false;
	}
	return true;
}

function checkCityDetails(form)
{
	if(document.theformcity.city.value == "" && document.theformcity.state.selectedIndex == 0)
	{
		alert("Please enter city to find a florist");
		document.theformcity.city.focus();
		return false;
	}
	if(document.theformcity.state.selectedIndex != 0 && document.theformcity.city.value == "")
	{
		alert("Please enter city to find a florist");
		document.theformcity.state.focus();
		return false;
	}
	if(document.theformcity.state.selectedIndex == 0 && document.theformcity.city.value != "")
	{
		alert("Please select a state to find a florist");
		document.theformcity.state.focus();
		return false;
	}
	return true;
}

function checkzipDetails(form)
{
	if(document.theformzip.zipcode.value == "")
	{
		alert("Please enter zip code");
		document.theformzip.zipcode.focus();
		return false;
	}
	return true;
}
var theImages = new Array() // do not change this

theImages[0] = 'rot_img1.jpg'
theImages[1] = 'rot_img2.jpg'
theImages[2] = 'rot_img3.jpg'

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src=images/'+theImages[whichImage]+'>');
}