var index = 0;
var obj = new Array();
function preload(name, first, second) {
    obj[index] = new Array(3);
    obj[index][0] = new Image();
    obj[index][0].src = first;
    obj[index][1] = new Image();
    obj[index][1].src = second;
    obj[index][2] = name;
    index++;
}
function Roll(name, onswitch){
	if (document.images) {
		for (i = 0; i < index; i++) {
			if (name == obj[i][2]) {
      			if (onswitch == "true") { document.images[obj[i][2]].src = obj[i][1].src; }
        		else { document.images[obj[i][2]].src = obj[i][0].src; }		
       		}}}}
       		
if (document.images) {
preload("product","/img/but/product_1.jpg","/img/but/product_2.jpg");
preload("services","/img/but/services_1.jpg","/img/but/services_2.jpg");
preload("debsays","/img/but/debsays_1.jpg","/img/but/debsays_2.jpg");
preload("askdeb","/img/but/askdeb_1.jpg","/img/but/askdeb_2.jpg");
preload("testimonial","/img/but/testimonial_1.jpg","/img/but/testimonial_2.jpg");
preload("press","/img/but/press_1.jpg","/img/but/press_2.jpg");
preload("links","/img/but/links_1.jpg","/img/but/links_2.jpg");
}

function validateFields(){
	var errormsg = ""
	if (document.SubmitInfo.FirstName.value=="") errormsg += "You must enter your first name.\n"
	if (document.SubmitInfo.email.value=="") errormsg += "You must enter an email address.\n"
	if (errormsg != "") {
		alert(errormsg)
		return false
	} else return true
}