// JavaScript Document
function show_tel(){
	document.getElementById("sms_tel_bg_1").style.display="block";
	document.getElementById("sms_tel_bg_2").style.display="block";
}
function hidden_tel(){
	document.getElementById("sms_tel_bg_1").style.display="none";
	document.getElementById("sms_tel_bg_2").style.display="none";
}
function show_soft(obj){
	var id = obj;
	document.getElementById("softs_list_" + id).style.display="block";
	document.getElementById("news_list_" + id).style.display="none";
	document.getElementById("soft_title_" + id).style.fontWeight="bold";
	document.getElementById("news_title_" + id).style.fontWeight="";
	document.getElementById("soft_title_" + id).style.backgroundColor="#F6F6F6";
	document.getElementById("news_title_" + id).style.backgroundColor="";
}
function show_news(obj){
	var id = obj;
	document.getElementById("softs_list_" + id).style.display="none";
	document.getElementById("news_list_" + id).style.display="block";	
	document.getElementById("news_title_" + id).style.fontWeight="bold";
	document.getElementById("soft_title_" + id).style.fontWeight="";
	document.getElementById("news_title_" + id).style.backgroundColor="#F6F6F6";
	document.getElementById("soft_title_" + id).style.backgroundColor="";
}
function check()
{	
	var temp = document.getElementById("email");//对电子邮件的验证
	var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
	if(!myreg.test(temp.value)){
		alert('请输入有效的EMAIL信息！');		
		temp.focus();
		temp.value = '';
		return false;
	}
}
function check1()
{
	if (document.form1.mobile.value==''){
		alert('为了能够尽快帮您解决问题\n\n请填写正确的联系方式！');
		document.form1.mobile.focus();
		return (false);
	}
	if (isNaN(document.form1.mobile.value))	{
		alert('请填写合法的联系方式类型！');
		document.form1.mobile.focus(); 
		return (false);
	}	
}

