if(top.frames.length < 4 || top.frames.length > 4 || parent.location.hostname != "www.tricotronic.de") top.location= "http://www.tricotronic.de";


var pw= null; var windowopened= 0;

function ow(fn, title, sx, sy)
{
	if(windowopened!=0){pw.close();}
	pw= window.open("","Screenshot","width="+sx+",height="+sy+",resizable=no,scrollbars=no,screenX="+((screen.width-sx)/2)+",screenY="+((screen.height-sy)/2)+",top="+((screen.height-sy)/2)+",left="+((screen.width-sx)/2));
	pw.opener= self;
	pw.document.write ("<html><head><title>"+title+"</title></head><body bgcolor=#000000 topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 onLoad='self.opener.windowopened=1;' onUnload='self.opener.windowopened=0;'><a href='javascript:close();'><img src="+fn+".jpg width="+sx+" height="+sy+" alt='close!' border=0></a></body></html>");
	pw.document.close();
}

function evlt(w1, w2, w3, w4, w5, w6, w7, w8, w9, w10, stxt1, stxt2, stxt3, stxt4, stxt5, correct, about)
{
	var sum= 0;
	if(w1==true) sum+= 1; if(w2==true) sum+= 1; if(w3==true) sum+= 1; if(w4==true) sum+= 1; if(w5==true) sum+= 1; if(w6==true) sum+= 1; if(w7==true) sum+= 1; if(w8==true) sum+= 1; if(w9==true) sum+= 1; if(w10==true) sum+= 1;
	var result= "ergebnis= " + sum;
   	if(sum==10){ res_txt= "perfect score! you are a " + about + " expert!"; res_pic= "indian"; }
	else if(sum > 6){ res_txt= "well done!! you already know quite a lot about " + about + "!"; res_pic= "ok"; }
	else if(sum > 3){ res_txt= "not bad! try again to improve your score!";	res_pic= "well"; }
	else{ res_txt= "congratulations! it seems that you spend your time with more important things than " + about + " ;-)"; res_pic= "sad"; }
	window.document.write(stxt1 + res_pic + stxt2 + sum + stxt3 + res_txt + stxt4 + correct + stxt5);
}

