﻿		function OpenLMS(TaskCode)
		{
			var width=640;
			var height=480;
			var uLnk="../LMS/StuTaskForm.aspx?ItemCode=" + TaskCode;
			
			var left = (window.screen.availWidth-width) / 2;
			var top =  (window.screen.availHeight-height) / 2;
			var features = "directories=no,scrollbars=yes,resizable=yes,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",status=no,toolbar=no";
			window.open(uLnk, "mwin", features, true);
		}
		
		function OpenNewLMS(TaskCode,courseCode)
		{
			var width=640;
			var height=480;
			var uLnk="../LMS/TaskSubmit.aspx?courseCode=" + courseCode + "&TaskCode="+ TaskCode;
			
			var left = (window.screen.availWidth-width) / 2;
			var top =  (window.screen.availHeight-height) / 2;
			var features = "directories=no,scrollbars=yes,resizable=yes,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",status=no,toolbar=no";
			window.open(uLnk, "mwin", features, true);
		}
		function Send2Friend(itemCode,wsCode)
		{
			var url=escape(document.location.href);
			
			var width=450;
			var height=300;
			var left = (window.screen.availWidth-width) / 2;
			var top =  (window.screen.availHeight-height) / 2;
			var features = "directories=no,scrollbars=yes,resizable=yes,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",status=no,toolbar=no";
			
			var uLnk="Send2Friend.aspx?ws=" + wsCode + "&item=" + itemCode + "&url=" + url;
			window.open(uLnk, "send2friend", features, true);
		}
		function Print(wsCode,pageCode,partCode,itemCode)
		{
			
			var width=600;
			var height=650;
			var left = (window.screen.availWidth-width) / 2;
			var top =  (window.screen.availHeight-height) / 2;
			var features = "directories=no,scrollbars=yes,resizable=yes,left=" + left + ",top=" + top + ",width=" + width + ",height=" + height + ",status=no,toolbar=no";
			
			var uLnk="Print.aspx?ws=" + wsCode + "&page=" + pageCode + "&box=" + partCode + "&_pstate=item&_item=" + itemCode;
			window.open(uLnk, "print", features, true);
		}



