//Script Done by Konga 1999 messy i know but it's my first...
var a=(0);

function openresult() {
  myWin= open("result.html", "displayWindow", 
    "width=400,height=300,status=no,toolbar=no,menubar=no");
}
function Clearit( value )
{
a=(0);
}

function summa( value ) {
   if( value == 1 )
      a=a+(12);
   else if ( value == 2 ) 
      a=a+(8);
   else if ( value == 3 )
 a=a+(-3);
   return true;

}
function summa1( value ) {
   if( value == 1 )
      a=a+(8);
   else if ( value == 2 ) 
      a=a+(-4);
   else if ( value == 3 )
 a=a+(12);
   return true;

}


function summa2( value ) {
   if( value == 1 )
      a=a+(-7);
   else if ( value == 2 ) 
      a=a+(12);
   else if ( value == 3 )
 a=a+(8);
   return true;

}

function skrivut(a) {
  myWin= open("result.html", "displayWindow", 
    "width=400,height=300,status=no,toolbar=no,menubar=no");
 myWin.document.open();
  myWin.document.write("<html><head><title>Result");
  myWin.document.write("</title></head><body>");
if (a > 100 )
myWin.document.write("<center><font size=+2> Im amazed that you are able to read you got </font><font size=+3><br>" + a +"<br></font><font size=+2>You are probably talking like a mummie and walking like a dummie rigth now");
else
if (a > 82  )  
myWin.document.write("<center><font size=+2> Well hello mr drinker you got an</font><font size=+3><br><br>" + a +"<br><br></font><font size=+2>that means you are probably loaded rigth now, but you sure do have fun dont ya");
else
if (a > 61 )
myWin.document.write("<center><font size=+2>according to Dr.lindholms scale you are just rigth, not too much, not to little </font><font size=+3><br>" + a +"<br></font><font size=+2>but u got the average result and that's boring");
else
if (a < 0 )
myWin.document.write("<center><font size=+2>Hello, chairman of<br> people against having fun<br>you got</font><br><font size=+3>"+ a +"<br></font><font size=+2> on the drugscore<br> you know relaxing and having fun aint a fellony!!");
else
if ( a < 39 )
myWin.document.write("<center><font size=+2>You got</font><br><br><font size=+3>"+ a +"<br><br></font><font size=+2> on the drugscore thats nothing, you are probably gonna die in a heartattack cause yer venes are blocked consume some alcohol now rigthy away!!");  
else
if ( a < 50 )
myWin.document.write("<center><font size=+2>You got<br><br></font><font size=+3>"+ a +"<br><br></font><font size=+2> thats a little lower than average,<br>C'mon you really should go out party more often");  
myWin.document.write("</font></center></body></html>"); 
return true;
}
