function voteprice(theForm, vote)
{
	if (vote == 0)
	{
		theForm.voter.value = 0;
	}
	else
	{
		theForm.voter.value = 1;
	}

	var i, rb, price;
	for (i = 0; i < theForm.price.length; i++)
	{
		rb = theForm.price[i];
		if (rb.checked)
		{
			theForm.price.value = i + 1;
		}
	}
//	window.open('pdainfo-tp1.php?voter=1&price='+price,'voterpricewindow','top=50,left=100,width=400,height=300');
	win = window.open('','voterpricewindow','top=50,left=100,width=420,height=300');
	theForm.action="pdainfo-tp1.php";
	theForm.target="voterpricewindow";
	theForm.submit();

	return false;
}

function voteinfo(theForm, voter)
{
	if (voter == 0)
	{
		theForm.voter.value = 0;
	}
	else
	{
		theForm.voter.value = 1;
	}

	win = window.open('','voterinfowindow','scrollbars=yes,top=50,left=100,width=420,height=470');
	theForm.action="pdainfo-tp2.php";
	theForm.target="voterinfowindow";
	theForm.submit();
	return false;
}

function CheckForm(theForm)
{
	if (theForm.text.value == "")
	{
		alert("请输入短消息内容。");
		theForm.text.focus();
		return false;
	}
	if (theForm.to.value.length != 11)
	{
		alert("接收短消息号码错误。");
		theForm.to.focus();
		return false;
	}
	return true;
}

function SubmitForm(theform)
{
	win = window.open("about:blank","WEBSMS","left=100,top=50,height=400,width=510");
	theform.action="sendsms.php";
	theform.target="WEBSMS";
	theform.submit();
}

function isnum()
{
	if(event.keyCode<48 || event.keyCode>57)
	{
	   event.keyCode=0;
	}
}

function eestart()
{
	win = window.open("sms/eestart/eestart.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}

function webtuiding()
{
	win = window.open("sms/webtuiding.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}

function webdingzhi()
{
	win = window.open("sms/webdingzhi.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function feedoo()
{
	win = window.open("sms/feedoo/feedoo.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function weather()
{
	win = window.open("sms/weather/weather.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function joke()
{
	win = window.open("sms/joke/joke.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function cp()
{
	win = window.open("sms/cp/cp.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function calf()
{
	win = window.open("sms/calf/calf.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function sports21()
{
	win = window.open("sms/sports21/sports21.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}
function luckyol()
{
	win = window.open("sms/luckyol/luckyol.php?name=gspdauser&pwd=pdainfo","WEBSMS","left=100,top=50,height=400,width=510");
	return false;
}