function applicant(id,date,first,last,address,city,state,zip,homePhone,cellPhone,email,gpa,highSchool,major,orentation,awards,service,activities,why) {
this.id=id;
this.date=date;
this.first=first;
this.last=last;
this.address=address;
this.city=city;
this.state=state;
this.zip=zip;
this.homePhone=homePhone;
this.cellPhone=cellPhone;
this.email=email;
this.gpa=gpa;
this.highSchool=highSchool;
this.major=major;
this.orentation=orentation;
this.awards=awards;
this.service=service;
this.activities=activities;
this.why=why;
this.printApplicant = printApplicant;
this.printTable = printTable;
}

function printApplicant() {
line1 = "Id: " + this.id + "<br/>\n";
line2 = "date: " + this.date + "<br/>\n";
line3 = "first: " + this.first + "<br/>\n";
line4 = "last: " + this.last + "<br/>\n";
line5 = "address: " + this.address + "<br/>\n";
line6 = "city: " + this.city + "<br/>\n";
line7 = "state: " + this.state + "<br/>\n";
line8 = "zip: " + this.zip + "<br/>\n";
line9 = "home: " + this.homePhone + "<br/>\n";
line10 = "cell: " + this.cellPhone + "<br/>\n";
line11 = "email: " + this.email + "<br/>\n";
line12 = "gpa: " + this.gpa + "<br/>\n";
line13 = "High School: " + this.highSchool + "<br/>\n";
line14 = "major: " + this.major + "<br/>\n";
line15 = "orentation: " + this.orentation + "<br/>\n";
line16 = "awards: " + this.awards + "<br/>\n";
line17 = "service: " + this.service + "<br/>\n";
line18 = "activities: " + this.activities + "<br/>\n";
line19 = "why: " + this.why + "<br/>\n";
document.write(line1, line2, line3, line4, line5, line6, line7, line8, line9, line10, line11, line12, line13, line14, line15, line16, line17, line18, line19);
}
function printTable() {
line1 = "<td>" + this.id + "</td>\n";
line2 = "<td>" + this.first + "</td>\n";
line3 = "<td>" + this.last + "</td>\n";
line4 = "<td>" + this.email + "</td>\n";
line5 = "<td>" + this.homePhone + "</td>\n";
line6 = "<td>" + this.cellPhone + "</td>\n";
line7 = "<td>" + this.address + "</td>\n";
line8 = "<td>" + this.city + "</td>\n";
line9 = "<td>" + this.state + "</td>\n";
line10 = "<td>" + this.zip + "</td>\n";
line11 = "<td>" + this.highSchool + "</td>\n";
line12 = "<td>" + this.gpa + "</td>\n";
line13 = "<td>" + this.major + "</td>\n";
line14 = "<td>" + this.orentation + "</td>\n";
line15 = "<td>" + this.awards.substring(0,15) + "</td>\n";
line16 = "<td>" + this.service.substring(0,15) + "</td>\n";
line17 = "<td>" + this.activities.substring(0,15) + "</td>\n";
line18 = "<td>" + this.why.substring(0,15) + "</td>\n";
line19 = "<td>" + this.date.substring(0,15) + "</td>\n";
document.write(line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + line14 + line15 + line16 + line17 + line18 + line19);
}

