function openWin(page,name,width,height,scroll,resize){
window.open(page,name,"toolbar=0,location=0,status=0,menubar=0,scrollbars=" + scroll + ",resizable=" + resize + ",top=0,left=0,width=" + width + ",height=" + height)
}
function goShopping(code,type){
//window.location="http://dev.digitalbungalow.com/dynamic_skating/cart/default.asp?type="+type+"&code="+code;
window.location="https://www.dbstorefront.com/dynamicskating/cart/default.asp?type="+type+"&code="+code;
}

function openWin2(page,name,width,height,scroll,resize){
window.open(page,name,"toolbar=1,location=1,status=1,menubar=1,scrollbars=" + scroll + ",resizable=" + resize + ",top=0,left=0,width=" + width + ",height=" + height)
}

function doSwap(ScheduleID,ageGroupName,swapSemesterID,thisSemesterID){
	decide = confirm("Click \"OK\" if you are completing a Swap.\nClick \"Cancel\" if you are adding this Class to a user's Shopping Cart instead.");
	if( decide ){
		if( swapSemesterID == thisSemesterID ){
			location = "../manager/swapProcess.asp?action=process&ScheduleID=" + ScheduleID + "&ageGroupName=" + ageGroupName;
		}else{
			alert("Sorry, when Swapping a Class you must not switch Semesters.\nPlease choose the Semester of the original Class.");
		}
	}else{
		location = "../shoppingcart/default.asp?action=add&ScheduleID=" + ScheduleID + "&ageGroupName=" + ageGroupName;
	}
}

function deleteItWaitlist(waitListID,script_name){
	decide = confirm("Are you sure to delete?");
	if( decide ){
		location = script_name + "?action=removeWaitList&waitListID=" + waitListID;
	}
}
