var count = 1;
function add_reading()
{
	document.getElementById('addmeter'+count).innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td width="30%"><input name="service_id_'+count+'" type="text" value="" /></td><td width="30%"><input name="color_reading_'+count+'" type="text" value="" /></td><td width="40%"><input name="black_white_reading_'+count+'" type="text" value="" /></td></tr></table>';
	if( count == 20) {
		document.getElementById('addlink').style.display='none';	
	}
	count++;
}
function checkForm(f)
{
	var a = f.contact_category.options[f.contact_category.selectedIndex].value;
	var error = '';
	
	if(a == 'Billing Inquiries' && f.invoice_number.value == '') {
		error = "Please enter invoice number.\n";
	}
	if(f.Name.value == '' || f.Company.value == '' || f.Zip.value == '' || f.Email.value == '') {
		error += "Please enter Your Name, Company, Zip Code, and Email.\n";
	}
	if( error == '') {
		return true;
	} else {
		alert(error);
		return false;
	}
}
