I would create a hidden text field and add the following script as a Custom calculation script to this hidden text field:
var v = this.getField("Project Type").value; // change radio button group name as needed
var pn = this.getField("Project Name");
var an = this.getField("Account Number");
pn.required = false;
an.required = false;
if (v == "New Construction") {
pn.required = true;
}
else if (v == "Retrofit") {
an.required = true;
}

I would use the hidden text field to consolidate the scripts in one field and to make both "Project Name" and "Account Number" fields not required if the form is reset and no option is selected.