			
	function confirmYesNo(courseId, saveType, newItem, oldItem)
	{		
		var isConfirm = confirm("Would you like to remove '"+oldItem+"' and replace it with '"+newItem+"'. ");
		//var isConfirm = confirm("Would you like to remove 'Just Added Item' and replace it with '"+newItem+"'.");
		
		if(isConfirm)
		{
			eval(__doPostBack(courseId,saveType));
		}								
	}

	function validateSelection(drp)
	{
		if(drp.selectedIndex==1)
		{
			drp.selectedIndex=0;
		}return true;
	}
	function zipValid(aZip) 
	{			
   		if (aZip.length < 5) {
			alert("Please enter full zip code (should be at least 5 characters long)");
			return false;
		}
		if (!isAlphaNumeric(aZip)) {
			alert("Please enter full zip code (should contain only alpha-numeric characters)");
			return false;
		}
		needsValidation = false;
		return true;			
	}	
	function PrintPreview(page) 
	{
		var newWindow = window.open(page, "EditWindow","width=650,height=600,toolbar=0,menubar=0,location=0,status=0,scrollbars=1,resizable=1,left=0, top=0");			
		newWindow.focus();
	}		
	function openMap(name,addressVar,cityVar,stateVar,zipVar,countryVar)
	{				
		var newWindow = window.open ("/mapquest/scripts/mqinterconnect.exe?link=map2&closestn=1&POI1name="+ name +"&POI1streetaddress=" + addressVar + "&POI1city=" + cityVar + "&POI1state=" + stateVar + "&POI1zip=" + zipVar + "&POI1country=" + countryVar,"","0,0,0,width=839,height=523");
		newWindow.focus();
	}
	function openMaps(address)
	{
		var newWindow = window.open (address,"","0,0,0,width=839,height=523");			
		newWindow.focus();
	}	
	
	function MultiMapLocations(address)
	{
		var newWindow = window.open (address,"","0,0,0,resizable=1,scrollbars=1,width=839,height=523");			
		newWindow.focus();
	}
	function SingleMapLocation(address)
	{
		var newWindow = window.open (address,"","0,0,0,resizable=1,scrollbars=1,width=839,height=523");			
		newWindow.focus();
	}	
	
	function LocationDetail(locationId,zeecode,caption)
	{	
		var newWindow = window.open("/CourseSearch/PopUp.aspx?zeeCode="+zeecode+"&locationId="+locationId+"&caption="+caption,"","0,scrollbars,resizable,width=450,height=250");	
		newWindow.focus();
	}
	function EmailDetail(courseId, zeecode, param)
	{				
		var newWindow = window.open("/CourseSearch/EmailForm.aspx?zeeCode="+zeecode+"&courseId="+courseId+param,"","0,0,0,width=479,height=361");	
		newWindow.focus();
	}
	function PrintDetail(courseId, zeecode)
	{	
		var newWindow = window.open("/CourseSearch/PrintForm.aspx?zeeCode="+zeecode+"&courseId="+courseId,"","0,scrollbars,resizable,width=649,height=525");	
		newWindow.focus();
	} 
	function LearnMore(cmsNo,caption,wdth,hght)
	{	
		var newWindow = window.open("/CourseSearch/PopUp.aspx?cmsNo="+cmsNo+"&caption="+caption,"","0,scrollbars,resizable,width=500,height=450");			
		newWindow.focus();
	}
	function FAQ(cmsNo,caption)
	{	
		var newWindow = window.open("/CourseSearch/PopUp.aspx?cmsNo="+cmsNo+"&caption="+caption,"","0,scrollbars,resizable,width=450,height=500");			
		newWindow.focus();
	}
	function OpenCopyrightWindow(domain)
	{		
		var newWindow = window.open(domain+"/footer/copyright.asp", "Copyright", "scrollbars=no,height=30,width=400,top=475,left=0,status=no,resizable=no");
		newWindow.focus();
	}