// CMS-Functions
function cms_popup(article_id, column_id, pos_left, pos_top, popupname)
{
	var windowprops = "location=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=500,height=500,pageXOffset="+pos_left+",pageYOffset"+pos_top;
	window.open(userIndex + url_separator + "site=show_popup" + url_separator + "popup=" + article_id + url_separator + "col_id="+column_id,popupname,windowprops);
}

function openWindow(url_string, popup_name)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=700,left=20";
	window.open(url_string, popup_name, windowprops);
}


// Event-Functions
function dayeventwin(day, month, year)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=600,left=20"; 
	window.open(userIndex + url_separator + "site=dayevents" + url_separator + "day=" + day + url_separator + "month="+month + url_separator + "year="+year,"PartydatesofDay",windowprops);
}

function eventwin(event_id)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=700,left=20"; 
	window.open(userIndex + url_separator + "site=event"+ url_separator + "event_id="+event_id,"Partydate",windowprops);
}

function eventedit(event_id, loc_id)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=600,left=20"; 
	window.open(userIndex + url_separator + "site=eventedit"+ url_separator + "event_id=" + event_id + url_separator + "loc_id=" + loc_id,"Partydate",windowprops);
}

function eventvisitors(event_id)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=600,left=20"; 
	window.open(userIndex + url_separator + "site=event"+ url_separator + "event_id="+event_id+ url_separator + "submenu=1","Partydate",windowprops);
}


function event_remotesend_win(event_id)
{
	var windowprops = "location=0,status=0,scrollbars=1,menubar=0,toolbar=0,resizable=1,width=640,height=600,left=20"; 
	window.open(userIndex + url_separator + "site=send_remote_event" + url_separator + "event_id="+event_id,"Partydate",windowprops);
}
