
/*
show PI name and email address when a group is select 
*/

function showPIandEmail() {
    var mygroup;
    var position;
    var fn;
	var ln;
    var vunetid;
    var vudept;
	var vuschool;
    var email;
	var tel;
    var title;
	var primary;
    var application;
    var applicationName;
    var applicationType;
    var numCpus;
    var numJobs;
	var linuxExperience;
	var compilers;
    var libraries;
	var bluearc;
	var extrastuf;

	mygroup = document.facultystatus.group.value;

	document.getElementById("printPINameandEmail1").style.display = 'none';
	document.getElementById("printPINameandEmail2").style.display = 'none';

	if (document.facultystatus.group.value!="") {
		document.getElementById("printPINameandEmail1").style.display = "";
		document.getElementById("printPINameandEmail2").style.display = "";
    }
    else{
	 	  document.getElementById("printPINameandEmail1").style.display = 'none';
	 	  document.getElementById("printPINameandEmail2").style.display = 'none';
	    
	}
    position = document.getElementById('position').value;
	fn = document.getElementById('fn').value;
	ln = document.getElementById('ln').value;
	vunetid = document.getElementById('vunetid').value;
	vudept = document.getElementById('vuDept').value;
	vuschool = document.getElementById('vuSchool').value;
	email = document.getElementById('email').value;
	tel = document.getElementById('tel').value;
	title = document.getElementById('title').value;
	primary = document.getElementById('primary').value;
	application = document.getElementById('application').value;
	applicationName = document.getElementById('applicationName').value;
	applicationType = document.getElementById('applicationType').value;
	numCpus = document.getElementById('numCpus').value;
	numJobs = document.getElementById('numJobs').value;
	linuxExperience = document.getElementById('linuxExperience').value;
	compilers = document.getElementById('compilers').value;
	libraries = document.getElementById('libraries').value;
    bluearc = document.getElementById('bluearc').value;
	extrastuf = document.getElementById('extrastuf').value;

	location.href="request_account_option_1.php?position="+ position + "&&title=" + title + "&&emailAddress=" + email + "&&tel=" + tel +  "&&vuDept=" + vudept + "&&vuSchool=" + vuschool + "&&vuNetID=" + vunetid + "&&firstName="+ fn +"&&lastName="+ ln +"&&mygroup=" + mygroup + "&&researcharea=" + primary +"&&application=" + application + "&&applicationName=" + applicationName + "&&applicationType=" + applicationType + "&&numCpus=" + numCpus + "&&numJobs=" + numJobs + "&&linuxExperience=" + linuxExperience + "&&compilers=" + compilers + "&&libraries=" + libraries +  "&&bluearc=" + bluearc + "&&extrastuf=" + extrastuf +  "#form"; 
}
