function printcontact(){ var errormsg = 0; var output_arr = new Array(); var displayName='Dr Brett Williams'; var role_primary='Senior Lecturer'; var role_other=''; var phone='+61 2 9351 0312'; var fax ='+61 2 9351 0200'; var email_1 ='Brett.Williams'; var email_2 ='usyd.edu.au'; var location='Room 633 Sydney Law School'; var researchArea='International trade regulation, World trade organisation, International business law, Public international law, International intellectual property, Competition law, International economic law, Economic analysis of law'; 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