/* font size changer */
function doZoom(obj_target,size){
document.getElementById(obj_target).style.fontSize=size+"px";
}



function selectTag(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tags").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContent"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}



function selectTagB(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tagsB").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContentB"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}



function selectTagC(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tagsC").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContentC"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}



function selectTagD(showContent,selfObj){
	// 操作标签
	var tag = document.getElementById("tagsD").getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "";
	}
	selfObj.parentNode.className = "selectTag";
	// 操作内容
	for(i=0; j=document.getElementById("tagContentD"+i); i++){
		j.style.display = "none";
	}
	document.getElementById(showContent).style.display = "block";
	
	
}




function encode(datastr, bassnum) {
	var tempstr;
	var tchar;
	var newdata = "";

	for (var i = 0; i < datastr.length; i++)
	{
		tchar = 65535 + bassnum - datastr.charCodeAt(i);
		tchar = tchar.toString();

		while(tchar.length < 5)
		{
			tchar = "0" + tchar;
		}

		newdata = newdata + tchar;
	}

	return newdata;
}
function gook() {

	if (usernameshow.value == "")
	{
		alert("用户名不可为空");
		usernameshow.focus();
		return ;
	}

	if (pwshow.value == "")
	{
		alert("密码不可为空");
		pwshow.focus();
		return ;
	}


	
	f1.username.value = usernameshow.value;

	
	f1.pwhidden.value = encode(pwshow.value, parseInt(f1.picnum.value));

	f1.submit();
}
function openWindow()
{
	window.open("http://WWW.HUIZHOU.CN");
	window.open("http://search.huizhou.cn/was40/sign.jsp");
}
function onfocu()
{
	frmLogin.username.focus();
	
}
function checkIt()
{
	if(document.all.username.value=="") 
		{	alert("请输入您的用户名！");
			document.all.username.focus();
			return false;	
		}
	else
		{
			document.frmLogin.screenwidth.value=document.body.clientHeight;
			document.frmLogin.submit;
			return true;
		}
}
function forget_pass()
{
	window.open("http://mail.dayawan.gov.cn/forgetbf.asp?GRSN=8882366");
}
function check()
{
	if(myform.keyword.value == "")
	{
		alert("关键字不能为空");
		return false;
	}
	myform.submit()
	return true;
 } 
 /*function popad()
 {
 	//window.open("http://www.sina.com.cn");
 } */
