// JavaScript Document Quiz for PDF v HTML
function test_it(entry) {
if (entry.value!=null && entry.value.length!=0) {
entry.value=""+ eval(entry.value);
}
computeForm(entry.form);
}
function computeForm(form) {
var total=0
// How popular will the document be
for (var count=0; count<3; count++)
{
if (form.popular[count].checked){
var total=total+parseInt(form.popular[count].value);
}
}
// Is it a large document
for (var count=0; count<3; count++)
{
if (form.size[count].checked){
var total=total+parseInt(form.size[count].value);
}
}
// Will the document have links
for (var count=0; count<3; count++)
{
if (form.link[count].checked){
var total=total+parseInt(form.link[count].value);
}
}
// How do you perceive people will use this
for (var count=0; count<3; count++)
{
if (form.perceive[count].checked){
var total=total+parseInt(form.perceive[count].value);
}
}
/*/ fifth row long and complex merged
for (var count=0; count<3; count++)
{
if (form.e[count].checked){
var total=total+parseInt(form.e[count].value);
}
}*/
/* // sixth row interactive deleted
for (var count=0; count<3; count++)
{
if (form.f[count].checked){
var total=total+parseInt(form.f[count].value);
}
}*/
/*/  Accessibility
for (var count=0; count<3; count++)
{
if (form.g[count].checked){
var total=total+parseInt(form.g[count].value);
}
}*/
// Branding
for (var count=0; count<3; count++)
{
if (form.brand[count].checked){
var total=total+parseInt(form.brand[count].value);
}
}
// Consistency
for (var count=0; count<3; count++)
{
if (form.consist[count].checked){
var total=total+parseInt(form.consist[count].value);
}
}
// When design of the document is as important as the content
for (var count=0; count<3; count++)
{
if (form.design[count].checked){
var total=total+parseInt(form.design[count].value);
}
}
if (total<0){ window.location="pdfhtml/html.htm" }
else if (total==0){ window.location="pdfhtml/other.htm" }
else if (total>0){ window.location="pdfhtml/pdf.htm" }
else { window.location="pdfhtml/detail.htm" }
}