/*·Î¶Ç¹øÈ£ ·£´ý Àç»ý±â*/
	ie = ((document.all) && (window.offscreenBuffering)) ? true : false;
	ns = ((document.captureEvents) && (!document.getElementById)) ? true : false;
	mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false;
	op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ? true : false;

	check=0;

	function contetnAlter(Name,Txt) {
		if (ns) {
			var divName=document.Name.document
			divName.write(Txt)
			divName.close()
		}
		if (ie) document.all[Name].innerHTML=Txt

		if ((mz)  || (op)) mzop=document.getElementById(Name);
		if ((mz) || (op)) mzop.innerHTML=Txt;
	}

	function lotto(getValue) {

		check=getValue;

		if (ie && ns && mz && op) return;

		for (j=1;j<45;j++) {
			var a=Math.round(Math.random()*j+1);
			var b=Math.round(Math.random()*j+1);
			var c=Math.round(Math.random()*j+1);
			var d=Math.round(Math.random()*j+1);
			var e=Math.round(Math.random()*j+1);
			var f=Math.round(Math.random()*j+1);
		}

		var x=new Array(a,b,c,d,e,f);
		
		if ((x[0] == x[1]) || (x[0] == x[2]) || (x[0] == x[3]) || (x[0] == x[3]) || (x[0] == x[5]) || (x[1] == x[2]) || (x[1] == x[3]) || (x[1] == x[4]) || (x[1] == x[5]) || (x[2] == x[3]) || (x[2] == x[4]) || (x[2] == x[5]) || (x[3] == x[4]) || (x[3] == x[5]) || (x[4] == x[5]) || (x[5] == x[4])) {
			lotto(check);
		}
		else {
			var y=x.toString();
			var z=y.split(',');

			for (i=0;i<z.length;i++) {
				z[i]=z[i]+" ";
				if (z[i].length < 3) {
					z[i]="0"+z[i]+" ";
				}
			}
			
			z=z.sort();
			Nos="<font style='font-family:±¼¸²; font-size:9pt; color:skyblue'>" + z[0]+z[1]+z[2]+z[3]+z[4]+z[5] + "</b></font>";

			contetnAlter('layer1',Nos)

			if(check < 30)T=setTimeout('lotto(check)',10);
			else clearTimeout(T);
		}
		check++;
	}

/*È­¸é¿¡ º¸ÀÌ´Â ºÎºÐ*/
document.write("<table width=150 height=18 cellpadding=0 cellspacing=0><tr><form name=form>")
document.write("<td width=100 height=18><span id=layer1 style='font-family:±¼¸²; font-size:9pt; color:skyblue'>lotto 645 game !!</span></td>")
document.write("<td width=50 height=18><a onclick=lotto(0); style='font-family:±¼¸²; font-size:9pt; color:limegreen; cursor:hand;'>go(click)</a></td>")
document.write("</form></tr></table>")
