//股票代码
var defaultMessage=new Array('输入股票/基金的代码或简称')

function clearShuru(my_obj)
	{
		var ret=false;

			if(my_obj.value==defaultMessage[0])
			ret=true;
			
		

		if(ret)
			my_obj.value="";
	}

function submitForma()
	{
		//alert("test")
		var submit_info=document.getElementById("textMessage").value
		var my_form=document.hexunsearch
		var myNum=0;
         my_form.action="http://data.stock.hexun.com/search/default.aspx";
				document.getElementById("stockid").value=submit_info;
				checkSubmit ( myNum,submit_info,my_form);
	}
function changeAction(myNum,submit_info,my_form)
	{
		if(myNum==0)
			{ 
				//my_form.action="http://data.stock.hexun.com/search/default.aspx";
				my_form.action="http://data.stock.hexun.com/search/default.aspx";
				document.getElementById("stockid").value=submit_info;
			}	

	}
function checkSubmit(myNum,submit_info,my_form)
	{
		if(submit_info=="" || submit_info=="输入股票/基金的代码或简称")
			{ alert('请填写查询信息');return false;}
		
		
				my_form.submit();
			
	}

//手机号码

function checkMobile(){

	var sMobile = document.mobileform.mobile.value

	if(!(/^1[3|5][0-9]\d{4,8}$/.test(sMobile))){

		alert("不是完整的11位手机号或者正确的手机号前七位");

		document.mobileform.mobile.focus();

		return false;

	}

	window.open('', 'mobilewindow', 'height=197,width=350,status=yes,toolbar=no,menubar=no,location=no')

}