//class SeperatorList
function SeperatorList()
	{
	this.seperator = ','; //public stuff = this
	this.content = ''; //list content
	this.onlyuniqueitems = true;

	this.Add = function(value)
	{
		var l = this.content.split(this.seperator);
		var found = false;

		for (c=0;c<=l.length-1;c++)
		{
			found = found || (l[c] == value);
		}
	
		if (!found || this.onlyuniqueitems == false)
		{
			if (this.content == '') 
			{
				this.content = ''+value;
			}
			else
			{
				this.content += ''+this.seperator+value;
			}
		}
	}

	this.Remove = function(value)
	{
		var l = this.content.split(this.seperator);
		var result = '';			

		for (c=0;c<=l.length-1;c++)
		{
			if (l[c] != value)
			{
				if (result == '') 
				{
					result = ''+l[c];
				}
				else
				{
					result += ''+this.seperator+l[c];
				}
			}	
		}

		this.content = result	
	}
	}

function open_internerlink_nw(url,w,h)
	{
	l = Math.round(screen.width/2)-Math.round(w/2);
	t = Math.round(screen.height/2)-Math.round(h/2);
	window.open(url,'','left='+l+',top='+t);
	}

function changeimg(bildname,dateiname)
	{
	document.images[bildname].src=dateiname;
	}

function showpic(id,picture,width,height)
	{
	//alert(width='+(width)+',height='+(height)+',scrollbars=yes);
	if (parseInt(width) > 2)
		{
		width  = parseInt(width) + 40;
		height = parseInt(height) + 40;
		}
	else
		{
		width	= 980
		height	= 680
		}
	window.open('/file/'+id+'_file_'+picture+'.jpg','cmspicture'+id,'width='+(width)+',height='+(height)+',scrollbars=yes');
	}
	
function showpic_thumbs(bezeichnung,sitzungsid,size) 
	{
	var wsize = size+180;
	var hsize = size+10;
	var adresse = '/thumb/'+bezeichnung;
	var win = window.open(adresse,'zeige_bild','screenX=100,screenY=250');
	win.focus();
	//width='+wsize+'px,height='+hsize+'px,resizable=0,scrollbars=yes
	}
	
function showpic(id,picture,width,height,endung)
	{
	//alert(width='+(width)+',height='+(height)+',scrollbars=yes);
	if (parseInt(width) > 2)
		{
		width  = parseInt(width) + 40;
		height = parseInt(height) + 40;
		}
	else
		{
		width	= 980
		height	= 680
		}
	window.open('/file/'+id+'_file_'+picture+'.'+endung,'cmspicture'+id,'width='+(width)+',height='+(height)+',scrollbars=yes');
	}
	
function changeColor(name,color)
{
 element = document.getElementById(name);
 element.style.color = color;
}

function fenster_demo()
	{
	var sw=screen.width-7;
	var sh=screen.height-54;
	//alert(sh);
	var adresse = '../scripts/base/userbasewindow.asp';
	var win = window.open(adresse,'user','width='+sw+',height='+sh+',resizable=0,scrollbars=no,screenX=1,screenY=1');
	win.focus();
	}
	
function ot_start()
	{
	var sw=screen.width-7;
	var sh=screen.height-54;
	//alert(sh);
	var adresse = '../scripts/base/userbasewindow.asp';
	var win = window.open(adresse,'user','width='+sw+',height='+sh+',resizable=0,scrollbars=no,screenX=1,screenY=1');
	win.focus();
	}
	
function ot_start_param(mod,kid)
	{
	
	//document.forms['direktaufruf_demo'].param.value = 'direkt_demo';
	//document.forms['direktaufruf_demo'].as_mod.value = mod;
	//document.forms['direktaufruf_demo'].as_kid.value = kid;
	//document.forms['direktaufruf_demo'].submit();
	
	var sw=screen.width-7;
	var sh=screen.height-54;
	//alert(sh);
	//flashobj('flashbanner').SetVariable("as_mod", mod);
	//flashobj('flashbanner').SetVariable("as_kid", kid);
	var adresse = '../scripts/base/userbasewindow.asp?as_mod='+mod+'&as_kid='+kid;
	var win = window.open(adresse,'user','width='+sw+',height='+sh+',resizable=0,scrollbars=no,screenX=1,screenY=1');
	win.focus();
	}
	
function ot_open(mod,kid)
	{
	var sw=screen.width-7;
	var sh=screen.height-54;
	//alert(sh);
	//flashobj('flashbanner').SetVariable("as_mod", mod);
	//flashobj('flashbanner').SetVariable("as_kid", kid);
	var adresse = '../scripts/base/userbasewindow.asp?as_mod='+mod+'&as_kid='+kid;
	var win = window.open(adresse,'user','width='+sw+',height='+sh+',resizable=0,scrollbars=no,screenX=1,screenY=1');
	win.focus();
	}


