function $(id) {
  return document.getElementById(id);
}
function r() {
  var c = $('cy');
  var t = $('ct');
  if(c.value == -1 || t.value == -1 || !$('tos').checked) {
    alert('Please select a city and contractor, and agree to the Terms of Service.');
    return false;
  }
  return true;
}
function showInquiryForm(contractorID) {
  var inqWin = window.open('http://www.nhcontractors.com/inquiryForm.php?contractorID=' + contractorID, 'inqWin',
    'toolbar=0,location=0,resizable=0,height=400px,width=550px');
  return false;
}