function processForm(){

var total=0;

if (document.forms[0].elements[0].checked){
    total++;
  }
if (document.forms[0].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[0].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[0].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[1].elements[0].checked){
    total++;
  }
if (document.forms[1].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[1].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[1].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[2].elements[0].checked){
    total++;
  }
if (document.forms[2].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[2].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[2].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }


if (document.forms[3].elements[0].checked){
    total++;
  }
if (document.forms[3].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[3].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[3].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[4].elements[0].checked){
    total++;
  }
if (document.forms[4].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[4].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[4].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[5].elements[0].checked){
    total++;
  }
if (document.forms[5].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[5].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[5].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[6].elements[0].checked){
    total++;
  }
if (document.forms[6].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[6].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[6].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[7].elements[0].checked){
    total++;
  }
if (document.forms[7].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[7].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[7].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[8].elements[0].checked){
    total++;
  }
if (document.forms[8].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[8].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[8].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[9].elements[0].checked){
    total++;
  }
if (document.forms[9].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[9].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[9].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[10].elements[0].checked){
    total++;
  }
if (document.forms[10].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[10].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[10].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[11].elements[0].checked){
    total++;
  }
if (document.forms[11].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[11].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[11].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[12].elements[0].checked){
    total++;
  }
if (document.forms[12].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[12].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[12].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[13].elements[0].checked){
    total++;
  }
if (document.forms[13].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[13].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[13].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if (document.forms[14].elements[0].checked){
    total++;
  }
if (document.forms[14].elements[1].checked){
    total++;
    total++;
  }
if (document.forms[14].elements[2].checked){
    total++;
    total++;
    total++;
  }
if (document.forms[14].elements[3].checked){
    total++;
    total++;
    total++;
    total++;
  }

if(total<15)
{
alert('Please answer all the questions.' );
}

if((total<=20) && (total>=15))
{
alert('You have a terribly poor and pathetic attitude toward life. \n You need to change your way of thinking completely to tackle the miseries \n that exist. Regular practice of Yoga can lessen your woes.' );
}

if((total<=30) && (total>20))
{
alert('You have an unenthusiastic approach to things that happen in \n your day to day life. Practice of Yoga can refresh your mood \n and let you face the world more enthusiasticly.');
}

if((total<=40) && (total>30))
{
alert('You are a person who likes to lead a normal and a comfortable life, \n though your negative approach towards life does not let you do so. \n Practice of Yoga can strengthen your aims and ability to strive for them.' );
}

if((total<=50) && (total>40))
{
alert('You are a strong personality who is not easily moved by minor \n  disturbances in life. Can be described as a happy and cheerful person. \n the aims you have set. Yoga can help you discover these shortcomings and further \n develop your personality.' );
}

if((total<=60) && (total>50))
{
alert('You are a very stubborn personality who is rarely moved or inspired. \n You have a positive attitude towards life which can sometimes \n be a subject of argument among your co-workers. But as a whole you can be \n described as an ideal personality by the Yogic science.');
}
}

