image1 = new Image();
image2 = new Image();
image3 = new Image();
image4 = new Image();
image5 = new Image();
image6 = new Image();
image7 = new Image();
image8 = new Image();
image9 = new Image();
image1.src = "images/buttonsover/commercial.jpg";
image2.src = "images/buttonsover/variable.jpg";
image3.src = "images/buttonsover/blackwhite.jpg";
image4.src = "images/buttonsover/largeformat.jpg";
image5.src = "images/buttonsover/color.jpg";
image6.src = "images/buttonsover/utilities.jpg";


function doOverImage(imageName){
	document.images[imageName].src = 'images/buttonsover/'+imageName+'.jpg';
}

function doNormalImage(imageName){
	document.images[imageName].src = 'images/buttonsnormal/'+imageName+'.jpg';
}

function CheckInt(entry){
	if(isNaN(entry.value)){
		entry.value = "";
		entry.focus();
		window.alert("This value must be a number");

    	return false;
	}
}

function verifyUploadForm(){

	if(document.uploadForm.CompanyName.value == ""){
		document.uploadForm.CompanyName.focus();
		window.alert("Please enter a company name.");
		
		return false;
	}
	
	if(document.uploadForm.CompanyName.value.length > 100){
		document.uploadForm.CompanyName.focus();
		window.alert("Company name can be no more than 100 characters.");
		
		return false;
	}
	
	if(document.uploadForm.ContactName.value == ""){
		document.uploadForm.ContactName.focus();
		window.alert("Please enter a contact name for this order.");
		
		return false;
	}

	if(document.uploadForm.ContactName.value.length > 100){
		document.uploadForm.ContactName.focus();
		window.alert("Contact name can be no more than 100 characters.");
		
		return false;
	}
	
	if(document.uploadForm.Email.value == ""){
		document.uploadForm.Email.focus();
		window.alert("Please enter an email address. Your email address will only be used to contact you about your order.");
		
		return false;
	}

	if(document.uploadForm.Email.value.length > 100){
		document.uploadForm.Email.focus();
		window.alert("Email address can be no more than 100 characters.");
		
		return false;
	}
	
	if(document.uploadForm.Area.value == "" || document.uploadForm.Area.value.length < 3){
		document.uploadForm.Area.focus();
		window.alert("Please enter a full area code.");
		
		return false;
	}
	
	if(document.uploadForm.Phone3.value == "" || document.uploadForm.Phone3.value.length < 3){
		document.uploadForm.Phone3.focus();
		window.alert("Please enter a full phone number.");
		
		return false;
	}
	
	if(document.uploadForm.Phone4.value == "" || document.uploadForm.Phone4.value.length < 4){
		document.uploadForm.Phone4.focus();
		window.alert("Please enter a full phone number.");
		
		return false;
	}
	
	if(document.uploadForm.FILE1.value == ""){
		document.uploadForm.FILE1.focus();
		window.alert("You must select a file in order to upload.");
		
		return false;
	}
	
	return ShowProgress();
}
