function popup(strURL, strName, intWidth, intHeight){
	window.open(strURL,strName,"width=" + intWidth + ",height=" + intHeight + ",toolbars=no")
}

function popupHTML(){
	popup("event_edithtml.asp", "", 502, 395)
}


function popupArtist(){
	popup("event_addartist.asp", "", 282, 395)
}

function popupLocation(){
	popup("event_addlocation.asp", "", 282, 205)
}

function popupArranger(){
	popup("event_addarranger.asp", "", 282, 335)
}

function popupTicketSalesPlace(){
	popup("event_addticketsalesplace.asp", "", 282, 335)
}

//function popupImage(){
//	popup("event_addimage.asp", "", 282, 220)
//}

function popupShowImage(intImageID){
	window.open("event_showImage.asp?intImageID=" + intImageID,"","width=400,height=350,toolbars=no,scrollbars=yes")
}

function popupShowGroupMembers(intGroupID){
	window.open("newsletter_showGroupMembers.asp?intGroupID=" + intGroupID,"","width=400,height=350,toolbars=no,scrollbars=yes")
}

function cancel(){
	window.close()
}

function popupUser(intGroupID){
	if (intGroupID != null)
		popup("group_adduser.asp?intGroupID=" + intGroupID, "", 282, 215)
	else
		popup("group_adduser.asp", "", 282, 215)
}

function popupGroup(intUserID){
	popup("user_addgroup.asp", "", 282, 165)
}

function setCookie(sName, sValue)
{
	date = new Date();
	document.cookie = sName + "=" + escape(sValue) + "; expires=Thu, 01-Jan-2010 00:00:01 GMT"; // expires=" + date.toGMTString();
}

function getCookie(sName)
{
	aCookies = document.cookie.split("; ");
	for (var i = 0; i < aCookies.length; i++)
		if (aCookies[i].split("=")[0] == sName)
			return unescape(aCookies[i].split("=")[1]);
	return "";
}

