function wzzz_login()
{
	var user_name = $("#user_name").val();
	var user_pwd = $("#user_pwd").val();
	var flag = true;
	if(user_name == '' || user_pwd == '')
	{
		alert('请填写账号密码！');
		flag = false;
	}

	if(flag == true)
	{
		$("#login_form").submit();
	}
}



function newbiecard_login_check()
{
	var flag = true;
	var newbie_user_name = $("#newbie_user_name").val();
	var newbie_user_pwd = $("#newbie_user_pwd").val();
	var verify_code = $("#verify_code").val();

	if(newbie_user_name =='' || newbie_user_pwd =='' || verify_code == '')
	{
		alert('请填写完整信息');
		$("#user_name").focus();
		return false;
	}
	else
	{
		return true;
	}
}

function closeWin()
{
	$("#msgTitle").click();
}

function swTags(a)
{
	var tmp=a.id.split("_");
	var sid=tmp[0];
	var snum=tmp[1];
	for(i=1;i<3;i++)
	{
		if(i == snum)
		{
			document.getElementById(sid+'_'+i).src = "http://"+document.location.host+"/wzzz/images/text_title_"+i+"_01.jpg";
			document.getElementById("newslist_"+i).className = "contenton";
		}
		else
		{
			document.getElementById(sid+'_'+i).src = "http://"+document.location.host+"/wzzz/images/text_title_"+i+"_02.jpg";
			document.getElementById("newslist_"+i).className = "contentout";
		}
	}
}
