newID=chckvvk();
if(newID.length > 5) newID=0;

function tix(evid)	{
  var url = "http://www.ztix.de/cgi/nph-omniscgi.exe?OmnisServer=Omnis,6001&OmnisLibrary=Server&OmnisClass=step1&evid="+evid+"&vvkid="+newID;
  if(screen.availWidth>800) var nw =  window.open(url,"ztix","width=850,height=580,scrollbars=yes");
  else var nw =  window.open(url,"ztix","width=782,height=580,scrollbars=yes");

  nw.focus();
}

function chckvvk()	{
	id = "";
	if(document.cookie)	{
		start = document.cookie.indexOf("=") + 1;
		end = document.cookie.indexOf(";");
		if(end == -1) end = document.cookie.length;
		id = document.cookie.substring(start,end);
	}
	return id;
}

