﻿function reg_form(){
	var html = '<style>.fanchenmi{width:520px;background:#FCF5E9;position:absolute;top:50%;left:50%;margin-top:-130px;margin-left:-200px;z-index:201102}';	
	html += '#bg{width:100%;height:100%;top:0px;left:0px;position:absolute;filter: Alpha(opacity=60);opacity:0.6;background:#000; display:none;z-index:201101;}';
	html += '.msgx{background:url(/images/paytishi.png) no-repeat;height:22px; line-height:22px;font-size:12px; color:#000; position:absolute; padding-left:22px;}';
        html += '.msgA{ background-position:0px -26px;}';
        html += '.msgB{ background-position:0px -68px;}';
        html += '.msgC{ background-position:0px -111px;}';
        html += '.msgD{ background-position:0px -153px;}';
        html += '.msgE{ background-position:0px 3px;}';
	html += '.lo_code_reg{top:255px; left:40px;}</style>';
	//html += '.lo_code_reg{top:180px; left:40px;}</style>';
	html += '<div id="bg"></div>';
	html += '<div class="fanchenmi">';
	html += '<form id="reg_form" onsubmit="return check_all()" action="/lmsj/lmsj/reg_action.php" method="post" target="_self" name="myform"><input type="hidden" name="game_src" value=lmsj" /> <input type="hidden" name="topage" value="'+window.location+'" /> <input type="hidden" name="cid" value="3000" />';
	html += '<div class="reg_01">';
	html += '<div class="reg_02">';
	html += '<div class="reg_03">账号注册</div>';
   	html += '<div class="reg_04"><a href="javascript:"><img onclick="$(\'#bg\').remove();$(\'.fanchenmi\').remove();" src="/images/reg_02.png" width="17" height="17" /></a></div>';     
    html += '</div>';         
    html += '<div class="reg_05">';
	html += '<div class="reg_06">用户名：</div>';
	html += '<div class="reg_07"><input type="text" class="reg_08"  name="login_name" id="login_name" /></div><span id="u_info" class="msgx msgE">用户名为6-20位字母或者数字的组合</span></div>';
	html += '<div class="reg_05"><div class="reg_06">密码：</div>';
	html += '<div class="reg_07">';
	html += '<input type="password" name="login_password" id="login_password" class="reg_08" /></div><span id="w_info" class="msgx msgE">6位以上的字符组合</span></div>';
	html += '<div class="reg_05">';
	html += '<div class="reg_06">确认密码：</div>';
	html += '<div class="reg_07">';
	html += '<input type="password" name="relogin_pwd" id="relogin_pwd" class="reg_08" /></div>';
	
	html += '<span id="p_info"></span></div>';
	html += '<div class="reg_05">';
	html += '<div class="reg_06">电子邮箱：</div>';
	html += '<div class="reg_07"><input type="text" name="email" id="email" class="reg_08" /></div>';
	
	html += '<span id="e_info" class="msgx msgE">忘记密码时可以通过邮箱找回密码。</span></div>';
	
	html += '<div class="reg_12">';
	html += '<input type="image" src="/images/reg_07.png" />';
	html += '</div>';
	html += '</div>';
	
	html += '</form>';
	
	
	html += '</div>';

	$("body").append(html);
	document.getElementById("bg").style.display="block";
	document.getElementById("bg").style.height = Math.max(document.documentElement.clientHeight,document.documentElement.scrollHeight) + "px";
	$(".fanchenmi").css('top',$(window).height()/2 + $(document).scrollTop());

	$("#login_name").blur( function () { check_user_name('no'); } );
	$("#login_password").blur( function () { check_user_pwd('no'); } );
	$("#relogin_pwd").blur( function () { check_user_repwd('no'); } );
	$("#email").blur( function () { check_user_mail('no'); } );
	
	//$("#chk_code").blur( function () { check_code('no'); } );
	//$("#ture_name").blur( function () { check_user_real_name('no'); } );
	//$("#sfz").blur( function () { check_user_sfz('no'); } );
}

