function checkSub()
{
	var e = document.getElementById("accept");
	if(!e.checked)
		alert("Please accept terms and conditions.");
	else
		showmsg();
	
	return e.checked;	
}
function clicksub(num)
{
	//alert("Num"+num);
	
	var paypal = "Please do not sign up for Pacific Poker or Casino on Net until you have contacted our operator. We appreciate your cooperation.";
	var other = "Please remember that this option is only available to UT-Austin students living in dorms near campus.";
	other += 	" Also, please do not sign up for Pacific Poker or Casino on Net until our representative is there to";
	other += 	" pay you and assist you.";
		
	if(num == 2)
	{	//paypal
		definition(paypal);
	}else if(num == 5)
	{
		definition(paypal);
	}
	else if (num != 4)
	{
		definition(other);
	}
		
	return true;
}

var newwindow;

function definition( words )
{
	var newwindow;
	
	width = 300;
	height = 150;
	
	var xcoord = screen.availWidth;
	
	xcoord *= .5;
	xcoord -= width;
//	alert(xcoord);
	
	newwindow = window.open('', "def", "width="+width+",height="+height+",status=no");
	newwindow.focus();
	newwindow.moveTo(xcoord,250);
	var tmp = newwindow.document;
	tmp.write("<html><head><title>");
	tmp.write(words);
	tmp.write("</title><style type='text/css'>body,td,th {font-weight:bold; color: #000000; } body { background-color: #33CCFF; }</style></head><body>");
	tmp.write(words);
	tmp.write("</body></html>");
	tmp.close();
}
