  document.write('<link rel="stylesheet" href="css/type_css_0.css" type="text/css">');
  
  document.write('<style>');
	document.write('<!--');
	document.write('	.botton_dg5{');
	document.write('	    border: 0px ridge;');
	document.write('	color: #2E5171;');
	document.write('	background-image: url("img/mathdg_bott5.gif");');
	document.write('	font-family: "ËÎÌå","Arial";font-size: 12px;');
	document.write('	height: 19px;');
	document.write('    width: 86px;');
	document.write('	cursor:hand');
	document.write('}');
	document.write('-->');
	document.write('</style>');

  function $(id){
		return document.getElementById(id);
	}
	String.prototype.ltrim = function() {
		return this.replace(/^\s+/,""); 
	}
	String.prototype.rtrim = function() {
		return this.replace(/\s+$/,"");
	}
	String.prototype.trim = function() { 
		return this.replace(/^\s+|\s+$/g,"") 
	}
	String.prototype.replaceAll = function(filter,text) {
		if ( !filter ) return this;
		
		//filter = filter.source ? new RegExp( filter.source, filter.global ? "gi" : "g" ) : filter;
		if (filter.source)
		{
			var s = filter.toString();
			if ((s.charAt(s.length - 1) == 'i') || (s.charAt(s.length - 2) == 'i'))
			{
				filter = new RegExp(filter.source, "gi");
			}
			else
			{
				filter = new RegExp(filter.source, "g");
			}
		}
		else {
			var exp = /([\/\\\.\*\+\?\|\(\)\[\]\{\}'])/g;
			newcrit = filter.replace(exp, "\\$1");
			filter = new RegExp(newcrit, "g")
		}
		return this.replace( filter, text );
	}
	
	function init_page(){
		
		try{
			document.body.oncontextmenu = function() {
				event.returnValue = false;		// Prevent display of standard right-click menu
			}
		}catch(e){}
		showData();
	}
	function clearAll(bAll){
		try{
				document.all("codes").value="";
				document.all("zhushu").value=0;
				Static_Money();
		}catch(e){}
		if(bAll){
				try{
					document.all("codes_").value="";
			}catch(e){}
		}
	}
	function toBuy(licenseID){
		if(licenseID==null)
			return;
		var w = window.open('../../?otherparam=buy_license_id='+licenseID,'_lottery_dlt');
		try{
			w.focus();
		}catch(e){}
	}
	var sNewString = '';
	function pastCodes(){
			clearAll();
			var v = window.clipboardData.getData("Text", sNewString);
			if(v==null||v==''){
				alert('Õ³ÌùµÄºÅÂëÎª¿Õ');
				return;
			}
			$('codes_').value=v;
	}