function printcontact(){ var errormsg = 0; var output_arr = new Array(); var displayName='Associate Professor Y.S. (Steve) Lee'; var role_primary=''; var role_other=''; var phone='+61 2 9351 0474'; var fax ='+61 2 9351 0200'; var email_1 ='steve.lee'; var email_2 ='usyd.edu.au'; var location='Room 641 Sydney Law School'; var researchArea=''; var teachingArea=''; //above is the variables //PRINT IT OUT if (errormsg == 0) { //PLAIN TEXT VERSION OF CONTACT DETAILS // document.write(displayName + "
"); document.write(""); if (role_primary != "") { document.write(""); } if (role_other != "") { document.write(""); } document.write(""); document.write(""); document.write(""); document.write(""); /* NOT SURE TO INGTEGRATE THIS SECTION YET. if (teachingArea != "") { document.write("Currently teaching: " + teachingArea + "
"); } if (researchArea != "") { document.write("Research expertise: " + researchArea + "
"); } */ document.write("
"+role_primary + "
"+role_other + "
Phone: " + phone + "
Fax: " + fax + "
Email: " + email_1); document.write("@" + email_2 + "
Location: " + location + "
"); }else{ document.write("Error: " + errormsg + "
"); } }//function