initModule({
	moduleID : 'loginneiyelogin',
	newWindow : false,
	imagesFolder : function(){
		return document.scripts[document.scripts.length - 1];
	}(),
		
	domName :
			{
				tL : 'loginneiyelogin_topL',
				tR : 'loginneiyelogin_topR',
				bL : 'loginneiyelogin_bottomL',
				bR : 'loginneiyelogin_bottomR',
				s : 'loginneiyeloginMarquee'
			},
				
	title : 
			{
				id : 'loginneiyelogin_topL',
				text : "注册/登录"
			},
				
	linkInfo :
			{
				down : 
					{
						id   : 'loginneiyelogin_bottomR',
						type : 'none',
						text : "more",
						url  : '/',
						imgID : ['loginneiyelogin_linkdown_prev','loginneiyelogin_linkdown_next','loginneiyelogin_linkdown_first','loginneiyelogin_linkdown_last'],
						imgUrl  : ['','','',''] /*****/
					},
				up :
					{
						id   :'loginneiyelogin_topR',
						type : 'none',
						text : "more",
						url  : '/',
						imgID : ['loginneiyelogin_linkup_prev','loginneiyelogin_linkup_next','loginneiyelogin_linkup_first','loginneiyelogin_linkup_last'],
						imgUrl  : ['','','',''] /*****/
					}
			},
		
	loopNumber :
			{
				enable : false,
				content : ""
			},
				
	marquee :
			{
				id : 'loginneiyelogin_marquee',
				enable :  false,
				width : 860,
				height : 100,
				direction : 'top',
				step : 1,
				timer :50,
				delayTime : 0,
				waitTime : 860,
				scrollStep : 100,
				margin : ['0px','0px','0px','0px']
			}
			
});
initLogin(
	true,
	'loginneiyelogin'
);



	var checkImgCode = {
		imgPath : 'http://www.shopxg.com/checkImage.aspx',
		imgID : 'checkCodeImg',
		c : 
			{
				code : '',
				imgPath : ''
			},
		randNum : 
				function(){
					return parseInt(Math.random() * 10);
				},
		code :  
				function(){
					return [checkImgCode.randNum(),checkImgCode.randNum(),checkImgCode.randNum(),checkImgCode.randNum()].join(''); 
				},
		refCode :
				function(){
					checkImgCode.c.code = checkImgCode.code();
					checkImgCode.c.imgPath = checkImgCode.imgPath + '?k=' + checkImgCode.c.code;
					document.getElementById(checkImgCode.imgID).src = checkImgCode.c.imgPath;
				},
		check :
				function(){
					if(arguments[0] != checkImgCode.c.code){
						alert('验证码错误!');
						return false;
					}
					return true;
				}
	};
	checkImgCode.refCode();		
	function checkLoginForm()
	{
		if(document.getElementById('usernameloginneiyelogin').value.length == 0 || document.getElementById('passwordloginneiyelogin').value.length == 0)
		{
			alert('用户名或密码未填写');
			return false;
		}
		
		var checkEnable = (document.getElementById('checkcodeLineloginneiyelogin').style.display == 'none')? false:true;
		if(checkEnable)
		{
			if(checkImgCode.check(document.getElementById('checkCode').value))
			{
				oginForms.submit();
				return true;
			}
		}
		loginForms.submit();
		return true;
	}
/*模块*/