var xmlHttp

function generateGrupp(cid,gomg,antal)
{
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
	cid = escape(cid)
	gomg = escape(gomg)
	antal = escape (antal)
	var url="/sub/cup2/editcup/generategrupp/"+antal+".php"
	url=url+"?cid="+cid
	url=url+"&gomg="+gomg
	url=url+"&antal="+antal
	xmlHttp.onreadystatechange=stateChangedGenerateGrupp
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChangedGenerateGrupp()
{
	if(xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ document.getElementById("cupAdminBox").innerHTML=xmlHttp.responseText }
}
