function AlertUser(text) {
	alert('Alert!', text);
}

function PopMeetingDates(e) {
	p_windowOpen('meetingdates.aspx?id=' + e, 500, 300);
}

function PopRoster(section) {
    var url = 'rosterpopup.aspx?section=' + section;
	var args = "toolbar=no,location=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,width=700,height=500,left=20,top=20";
	var popupWin = null;
	
	if(window.open) {
	    popupWin = window.open(url, "", args);
	}
	
	if(window.focus && popupWin) {
	    popupWin.focus();
	}
	
	return popupWin;
}

function poparticle(e) {
	p_windowOpen('article.aspx?id=' + e + '&pop=yes', 700, 500);
}

function p_windowOpen(url, width, height) {
	var args = "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height+",left=20,top=20";
	var popupWin = null;
	
	if(window.open) {
	    popupWin = window.open(url, "", args);
	}
	
	if(window.focus && popupWin) {
	    popupWin.focus();
	}
	
	return popupWin;
}

function launch(url) {
	var popupWin = null;
	
	if(window.open) {
	    popupWin = window.open("", "", "");
	}
	
	if(window.focus && popupWin) {
	    popupWin.focus();
	}
	
	var content = "<html><head></head><frameset rows='70,*' frameborder='NO' border=0 framespacing=0><frame src='http://ddo.wiscnet.net/lbanner.html' scrolling='NO' noresize><frame src='" + url + "'></frameset><body></body></html>"
	
	popupWin.document.open()
	popupWin.document.write(content);
	popupWin.document.close();
	
	//return popupWin;
}

function ScrollToTop() {
	window.scroll(0,0);
}

function Delete() {
	return confirm("You are about to delete this item. Are you sure? \n This item and ALL ASSOCIATED RECORDS will be PERMINATLY REMOVED from the database.");
}

function DisableUser() {
	return confirm("You are about to disable this user, are you sure?");
}

function ProductEnroll() {
	return confirm("Are you sure you wish to make this product enrollment active?");
}

function CourseEnroll() {
	return confirm("Are you sure you wish to make this course enrollment active?");
}

function BulkQuery() {
	return confirm("Are you sure you wish to run this bulk query? \n  It will take awhile and every record in the database will be updated.");
}

function ClearCart() {
	return confirm("You are about to clear the contents of your cart, are you sure?");
}