
	var loginlogin7Config = {
		moduleID : 'loginlogin7',
		newWindow : false,
		imagesFolder : "url(images/$.gif)".replace('url(','').replace('$.gif)',''),
		
		domName :
				{
					tL : 'loginlogin7_topL',
					tR : 'loginlogin7_topR',
					bL : 'loginlogin7_bottomL',
					bR : 'loginlogin7_bottomR',
					s : 'loginlogin7Marquee'
				},
				
		title : 
				{
					id : 'loginlogin7_topL',
					text : "请先登陆或先注册成为本商城会员"
				},
				
		linkInfo :
				{
					down : 
						{
							id   : 'loginlogin7_bottomR',
							type : 'none',
							text : "more",
							url  : '/',
							imgID : ['loginlogin7_linkdown_prev','loginlogin7_linkdown_next','loginlogin7_linkdown_first','loginlogin7_linkdown_last'],
							imgUrl  : ['','','',''] /*****/
						},
					up :
						{
							id   :'loginlogin7_topR',
							type : 'none',
							text : "more",
							url  : '/',
							imgID : ['loginlogin7_linkup_prev','loginlogin7_linkup_next','loginlogin7_linkup_first','loginlogin7_linkup_last'],
							imgUrl  : ['','','',''] /*****/
						}
				},
		
		loopNumber :
				{
					enable : false,
					content : ""
				},
				
		marquee :
				{
					id : 'loginlogin7_marquee',
					enable :  false,
					width : 860,
					height : 100,
					direction : 'top',
					step : 1,
					timer :50,
					delayTime : 0,
					waitTime : 3000,
					scrollStep : 52,
					margin : ['0px','0px','0px','0px']
				}
			
	};
	
	initModule(loginlogin7Config);
	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('usernameloginlogin7').value.length == 0 || document.getElementById('passwordloginlogin7').value.length == 0)
		{
			alert('用户名或密码未填写');
			return false;
		}
		
		var checkEnable = (document.getElementById('checkcodeLineloginlogin7').style.display == 'none')? false:true;
		if(checkEnable)
		{
			if(checkImgCode.check(document.getElementById('checkCode').value))
			{
				oginForms.submit();
				return true;
			}
		}
		loginForms.submit();
		return true;
	}