function equitySubmit(){
	var count = 0;
	if(!checkBoxCount()){
		return;
	}
	var equity = document.getElementsByName("equity");
	if(equity!=null){
		for(var i=0;i<equity.length;i++){
			if(equity[i].checked){
				count++;
			}
		}
	}
	if(count<=0){
		alert("请您至少选择一项股本对比项.");
		return;
	}
	document.form1.action = "/stockaction.do?method=capitalCompare";
	document.form1.submit();
}
function businessSubmit(){
	var count = 0;
	if(!checkBoxCount()){
		return;
	}
	var business = document.getElementsByName("business");
	if(business!=null){
		for(var i=0;i<business.length;i++){
			if(business[i].checked){
				count++;
			}
		}
	}
	if(count<=0){
		alert("请您至少选择一项业务对比项.");
		return;
	}
	document.form1.action = "/stockaction.do?method=businessCompare";
	document.form1.submit();	
}
function otherItemSubmit(){
	var count = 0;
	if(!checkBoxCount()){
		return;
	}
	var otherItem = document.getElementsByName("otherItem");
	if(otherItem!=null){
		for(var i=0;i<otherItem.length;i++){
			if(otherItem[i].checked){
				count++;
			}
		}
	}
	if(count<=0){
		alert("请您至少选择一项业务对比项.");
		return;
	}
	document.form1.action = "/stockaction.do?method=otherItemCompare";
	document.form1.submit();	
}
/**
 * 检查股票选择器选中的股票数是否符合标准
 */
function checkBoxCount(){
	var count = 0;
	var stock = document.getElementsByName("stockselect")
	
	if(stock!=null){
		for(var i=0;i<stock.length;i++){
			if(stock[i].checked){
				count++;
			}
		}
	}
	if(!(count>=1&&count<=4)){
		alert("请您选择1-4只要对比的股票.");
		return false;
	}else{
		return true;
	}
}
function loadData(){
	var temp = document.getElementById("thisPic").src;
	var temp1 = timePic;
	temp = temp.split("/");
	temp1 = temp1.split("/");
	if(temp[temp.length-1]==temp1[temp1.length-1]){
		document.getElementById("thisPic").setAttribute("src",timePic);
	}
	setTimeout("loadData()", 300000);
}