<!--
    var winHandle;

  	function ShowEditScreen(targetUrl, itemId, portalId, moduleId) 
	{
		var windowHandle;
		var winl = (screen.width - 800) / 2;
		var wint = (screen.height - 600) / 2;
		
		//windowHandle = window.open('Modules/Calendar.aspx?CorporationId=' + corporationId + '&SchoolId=' + schoolId + '&TeacherId=' + teacherId,'Calendar','width=800,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		
		windowHandle = window.open(targetUrl + '?ItemId=' + itemId + '&PortalId=' + portalId + '&ModuleId=' + moduleId ,'EditScreen','width=700,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function CourseWorkPhotos(schoolId, workId) 
	{
		var windowHandle;
		var winl = (screen.width - 700) / 2;
		var wint = (screen.height - 600) / 2;
		
		windowHandle = window.open('Modules/CourseModules/CourseWorkPhotos.aspx?SchoolId=' + schoolId + '&WorkId=' + workId ,'CourseWorkPhotos','width=700,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function ManagePageModules(portalId, tabId) 
	{
		var windowHandle;
		var winl = (screen.width - 800) / 2;
		var wint = (screen.height - 600) / 2;
		
		//windowHandle = window.open('Modules/Calendar.aspx?CorporationId=' + corporationId + '&SchoolId=' + schoolId + '&TeacherId=' + teacherId,'Calendar','width=800,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		
		windowHandle = window.open('Modules/ManagePageModules.aspx?PortalId=' + portalId + '&TabId=' + tabId ,'ManagePageModules','width=700,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function ShowPortalAdmin(portalId) 
	{
		var windowHandle;
		var winl = (screen.width - 800) / 2;
		var wint = (screen.height - 600) / 2;
		
		
		windowHandle = window.open('Modules/PortalAdmin.aspx?PortalId=' + portalId ,'MenuManager','width=700,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}

	
	function ShowLoginScreen(portalId) 
	{
		var windowHandle;
		var winl = (screen.width - 300) / 2;
		var wint = (screen.height - 150) / 2;
		
		windowHandle = window.open('LoginDefault.aspx?PortalId=' + portalId,'LoginScreen','width=300,height=150,location=no,scrollbars=0,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function ShowImageBrowser(imageId) 
	{
		var windowHandle;
		var winl = (screen.width - 700) / 2;
		var wint = (screen.height - 600) / 2;
		
		windowHandle = window.open('Modules/ImageBrowser.aspx?ImageId=' + imageId,'ImageBrowser','width=700,height=600,location=no,scrollbars=1,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function EditHeaderInfo(portalId) 
	{
		var windowHandle;
		var winl = (screen.width - 700) / 2;
		var wint = (screen.height - 600) / 2;
		
		windowHandle = window.open('Modules/EditHeaderInfo.aspx?PortalId=' + portalId,'HeaderInfo','width=700,height=600,location=no,scrollbars=0,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	function EditHeaderInfoMid(portalId) 
	{
		var windowHandle;
		var winl = (screen.width - 700) / 2;
		var wint = (screen.height - 600) / 2;
		
		windowHandle = window.open('Modules/EditHeaderInfoMid.aspx?PortalId=' + portalId,'HeaderInfo','width=700,height=600,location=no,scrollbars=0,top=' + wint + ',left=' + winl); 
		windowHandle.focus()
	}
	
	
	
	
//-->


