
function valForm() {
var wqform = document.submitContact;
var varAlso = "";
var varPrintItems = "";
	for (var b=0; b<wqform.printItems.length; b++) {
		if (wqform.printItems[b].checked) {
			varPrintItems = varPrintItems + wqform.printItems[b].value + ", ";
		}
	}
	wqform.hprintItems.value = varPrintItems;
	for (var i=0; i<wqform.alsoInterested.length; i++) {
		if (wqform.alsoInterested[i].checked) {
			varAlso = varAlso + wqform.alsoInterested[i].value + ", ";
		}
	}
	wqform.halsoInterested.value = varAlso;

	if (wqform.fname.value == "" || wqform.fname.value == null) {
		alert("Please enter your Name.");
		wqform.fname.focus();
		return false;
	}
	if (wqform.company.value == "" || wqform.company.value == null) {
		alert("Please enter your Company Name.");
		wqform.company.focus();
		return false;
	}
	if (wqform.phone.value == "" || wqform.phone.value == null) {
		alert("Please enter your phone.");
		wqform.phone.focus();
		return false;
	}

	var str = wqform.email.value;
	var at = "@";
	var dot = ".";
	var lat = str.indexOf(at);
	var lstr = str.length;
	var ldot = str.indexOf(dot);
	if (str.indexOf(at) == -1) {
		alert("Please enter a valid E-mail Address.")
		wqform.email.focus();
		return false;
	}
	var myPrintItems = 0;
	for (var c=0; c<wqform.printItems.length; c++) {
		if (wqform.printItems[c].checked) {
			myPrintItems = 1;
		}
	}
	if (myPrintItems == 0) {
		alert("Please select at least one item that you need.");
		wqform.printItems[0].focus();
		return false;
	}
	if (wqform.howMany.value == "" || wqform.howMany.value == null) {
		alert("Please enter how many you need.");
		wqform.howMany.focus();
		return false;
	}
	
	if (wqform.comments.value == "" || wqform.comments.value == null) {
		alert("Please enter your Printing Details.");
		wqform.comments.focus();
		return false;
	}
	var detailsSize;
	var detCount;
	detCount = wqform.comments.value
	detailsSize = detCount.length;
	if (detailsSize > 7000) {
		alert("Please limit the comments to 7000 characters.");
		wqform.comments.focus();
	return false;
	}

}