<!--
/*function resize(){  
var frame = document.getElementById("primary");  
var htmlheight = document.body.parentNode.scrollHeight;  
var windowheight = window.innerHeight;  
if ( htmlheight < windowheight ) { document.body.style.height = windowheight + "px"; frame.style.height = windowheight + "px"; }  
else { document.body.style.height = htmlheight + "px"; frame.style.height = htmlheight + "px"; }  
} 
function window.onload()
 {
	/* set floating console positions 
	var oConsole = document.forms[0].all['editConsole'];
	if (oConsole == '[object]') setPosition(oConsole);
 }

function setPosition(e)
 {
	var sLeft;
	var sTop;

	sLeft = getCookie(e.name + 'Left');
	sTop = getCookie(e.name + 'Top');

	if (sLeft != null) e.style.left = sLeft;
	if (sTop != null) e.style.top = sTop;
 }

function savePosition(sName)
 {
	var e = document.forms[0].all[sName]

	setCookie(e.name + 'Left', e.style.left);
	setCookie(e.name + 'Top', e.style.top);
 }
*/
function PopUpImageWindow(sURL,iWidth,iHeight)
 {
 	windowprops = "left="+(screen.width - (iWidth)) / 2+",top="+(screen.height - (iHeight)) / 2+",width=" + (iWidth) + ",height=" + (iHeight);
	text = "<html><head><title>Image Viewer</title></head><body bgcolor='white' topmargin='0' leftmargin='0' marginwidth='0' marginheight='0'";
	text += "><center><img src='" + sURL + "'>";
	text += "</center></body></html>";
	preview = window.open("", "preview", windowprops);
	preview.document.open();
	preview.document.write(text);
	preview.focus()
	preview.document.close();
	//window.open(sURL, 'SmarttechImage', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+iWidth+',height='+iHeight+',left = 262,top = 134,');
 }

function setCookie(name, value, expires, path, domain, secure)
// name - name of the cookie
// value - value of the cookie
// [expires] - expiration date of the cookie (defaults to end of current session)
// [path] - path for which the cookie is valid (defaults to path of calling document)
// [domain] - domain for which the cookie is valid (defaults to domain of calling document)
// [secure] - Boolean value indicating if the cookie transmission requires a secure transmission
 {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
 }

function getCookie(name)
// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
 {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  
	if (begin == -1)
	 {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
   } 
	else
    begin += 2;
  
	var end = document.cookie.indexOf(";", begin);
  if (end == -1)
		end = dc.length;
  
	return unescape(dc.substring(begin + prefix.length, end));
 }

function deleteCookie(name, path, domain)
// name - name of the cookie
// [path] - path of the cookie (must be same as path used to create cookie)
// [domain] - domain of the cookie (must be same as domain used to create cookie)
// * path and domain default if assigned null or omitted if no explicit argument proceeds
 {
  if (getCookie(name))
	 {
    document.cookie = name + "=" + 
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
	 }
 }
 
 function Help(language,type)
{
	var w1;
	w1 = window.open("/st/" + language + "/Help/" + type + "Help", type + "Help", "height=500,width=465,resizable=1, scrollbars=yes");
	w1.focus();
	return false;
}
function NoResizePopUp(sURL,iWidth,iHeight) {
	winOpts = "height=" + iHeight + ",width=" + iWidth + ",resizable=0 toolbar=0 valign=top";
	var w1
	w1 = window.open(sURL, "window1", winOpts);
	w1.focus()
	return false;
}

// -->
