function writeSignup() {
  document.write('<p>To become a member, please fill the ');
  document.write('<a class="simple" href="iap_signup.whtml">sign up form</a>, ');
  document.write('giving us the information we need to set up an account for your company.');

}

function writeNavbar() {
  document.write('<table class="navbar">');
  document.write('<tr>');
  document.write('<td><a href="iap.whtml">IAP</a></td>');
  document.write('<td><a href="iap_members.whtml">Members</a></td>');
  document.write('<td><a href="iap_affiliate.whtml">Affiliate</a></td>');
  document.write('<td><a href="iap_associate.whtml">Associate</a></td>');
  document.write('<td><a href="iap_partner.whtml">Partner</a></td>');
  document.write('<td><a href="iap_internships.whtml">Internships</a></td>');
  document.write('<td><a href="iap_jobs.whtml">Jobs</a></td>');
  document.write('<td><a href="iap_events.whtml">Events</a></td>');
  document.write('</tr>');
  document.write('</table>  ');
}

function writeIAPHeader() {
  document.write('<center><h2>INDUSTRIAL&nbsp;&nbsp;AFFILIATES&nbsp;&nbsp;PROGRAM</h2></center>');
}

function writeMemberInfo(mtype,logo,refname,bizname,bizlink,bizdescr,
			 con1name,con1mail,con1phone,con2name,con2mail,con2phone,event,internship,job) {
  var spanclass = "part";
  if (mtype == "associate") {
    spanclass = "assoc";
  } else if (mtype == "affiliate") {
    spanclass = "aff";
  }
  document.write('<a name="' + refname + '"></a>');
  document.write('<table>');
  document.write('<tr>');
  if (logo.length != 0) {
      document.write('<td><img src="' + logo + '"></td>');
  } else {
      document.write('<td>&nbsp;</td>');
  }
  document.write('<td class="member">');
  var space=false;

  if (event) {
    document.write('<a href="iap_events.whtml#' + refname + '"><span class="' + spanclass + '">Events &gt;&gt; </span></a>');
    space=true;
  }
  if (internship) {
    if (space) {
      for (i=0;i < 8;i++) {
	document.write('&nbsp;');
      }
    }
    document.write('<a href="iap_internships.whtml#' + refname + '"><span class="' + spanclass + '">Internships &gt;&gt; </span></a>');
    space=true;
  }
  if (job) {
    if (space) {
      for (i=0;i < 8;i++) {
	document.write('&nbsp;');
      }
    }
     document.write('<a href="iap_jobs.whtml#' + refname + '"><span class="' + spanclass + '">Jobs &gt;&gt; </span></a>');
  }

  document.write('</td>');
  document.write('</tr>');
  document.write('<tr><td colspan=2 class="name"><a href="' + bizlink + '">');
  document.write('<span class="' + spanclass + '">' + bizname + '</span></a></td></tr>');
  document.write('<tr>');
  document.write('<tr>');
  document.write('<td colspan=2 class="descr">');
  document.write(bizdescr);
  document.write('</td>');
  document.write('<tr>');
  document.write('<td class="contact">');
  document.write('<a class="simple" href="mailto:' + con1mail + '">' + con1name + '</a><br>' + con1phone);
  document.write('</td>');
  document.write('<td class="contact">');
  document.write('<a class="simple" href="mailto:' + con2mail + '">' + con2name + '</a><br>' + con2phone);
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
}

function writeEventHeader(mtype,refname,bizname) {

  var spanclass = "part";
  if (mtype == "associate") {
    spanclass = "assoc";
  } else if (mtype == "affiliate") {
    spanclass = "aff";
  }

  document.write('<div class="' + spanclass + 'bartop">&nbsp;</div>');
  document.write('<div class="' + spanclass + 'barbandsmall">');
  document.write('<table class="jobhdr">');
  document.write('<a name="' + refname + '"></a>');

  document.write('<tr><td><span class="white">' + bizname + '</span></td>');
  document.write('<td class="jobhdrlink"><a href="iap_members.whtml#' + refname + '"><span class="white">Member Page&nbsp;&gt;&gt;</span></a></td></tr></table>');
  document.write('</div>');
}
