// JavaScript Document

function setSessionCookie (name, value, expires, path, domain, secure) {
		document.cookie = name + "=" + escape(value) +
		((expires) ? "; expires=" + expires : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
	}

	// Malcolm
	 function getSessionCookie(name) {
		var prefix = name + "=";
		var cookieStartIndex = document.cookie.indexOf(prefix);
		if (cookieStartIndex == -1)
			return null;
		var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length);
		if (cookieEndIndex == -1)
			cookieEndIndex = document.cookie.length;
		return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex));
	}

// Teresa
	function printScreen(){
		printWarning = getSessionCookie("printWarning");

      if (navigator.userAgent.toLowerCase().indexOf("mac")!=-1) {
			alert("To print this screen, please press 'Command-P' and use Landscape printing option");
			setSessionCookie("printWarning", "false","","/",".unitechgroup.com","true");
	   }
	   else{
			window.print();
			setSessionCookie("printWarning", "false","","/",".unitechgroup.com","true");
		}
	}//End of function printScreen()
	
	
// ---------------------------Open in new window

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->