var xmlHttp

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