/*
防止因非法字符致使系统报错的问题出现
*/
var str,sqlin,pos,newstr,strarry
str=window.location.href;
str=str.toLowerCase();
//alert(str);
sqlin="'|;|,| |select|delete|insert|update|and|exec|count|*|%|chr|mid|master|truncate|char|declare|";
pos=str.indexOf("?");
newstr=str.substring(pos,str.length);
strarray=sqlin.split("|");
for(i=0;i<strarray.length;i++)
{
if(newstr.indexOf(strarray[i])>0)
{
alert("你坏,不理你 ^_^");
window.location.href="http://www.fjjc.net";
}
}

function showVouchModel(act)
{
	vote = document.getElementsByName("VoteOption");
	for (i=0;i<vote.length;i++)
	{
		if (vote[i].checked)
		{
			voteValue = vote[i].value;
		}
	}
	var url= "Vote.asp?Action="+act+"&VoteOption="+voteValue;
	var vReturnValue = window.showModalDialog(url,"","dialogWidth:620px;dialogHeight:400px;dialogTop:120px;status:no;");
	return false;
}