<!--
function goTo (target, targetURL) {
//alert("goTo " + target + " : " + targetURL);
   if ((target && targetURL) && (target.length>0) && (targetURL.length>0)) {
      if ((target=="_new") || (target=="_self")) {
 		this.location.replace(targetURL);
      } else if (target=="_parent") {
         if (document.parentWindow) {
   			document.parentWindow.document.location.replace(targetURL);
   		 } else if (parent.frames) {
   			parent.location.replace(targetURL);
   		 }
      } else if (target=="_top") {
		window.document.location.replace (targetURL);
      } else {
         if (document.parentWindow) {
   			document.parentWindow.parent.document.frames[target].location.replace(targetURL);
         } else if (parent.frames) {
   			parent.frames[target].location.replace(targetURL);
         }	
      }
   }
   return null;
}

function changeRows(targetFrame, iType) {
/* iType values:
 * Left Frame:
 * 0 - All frames visible
 * 1 - Topic frame max, all other hidden
 * Right Frame:
 * 0 - Content, tab and menu frames visible
 * 1 - Content visible; tab, menu frames hidden
 * 2 - Content and menu frames visible
 */
var r;
//alert("changeRows " + targetFrame + " : " + iType);
   if (targetFrame && targetFrame.length>0) {
      if (targetFrame == "Left") {
			if (iType == 0) r = "45,20,*,0,0,0";			// Maximise Topic Frame
			if (iType == 1) r = "45,20,275,20,275,*";		// Show all frames
      } else if (targetFrame == "Right") {
		if (iType == 0) r = "45,33,20,*,17";			// Show all frames (53)
		if (iType == 1) r = "45,0,0,*,17";			// Maximise Content Frame
		if (iType == 2) r = "45,0,20,*,17";			// Show only menu and content frames
		if (iType == 3) r = "45,33,20,*,17";			// Tab size minus 20 (to exclude Version div)
      }      
      if (document.parentWindow) document.parentWindow.parent.document.Script.frames[targetFrame].rows = r;
      else if (parent.document && parent.document.getElementById) parent.document.getElementById(targetFrame).rows = r;
      return true;
   } else {
      return false;
   }
}

function changeCols(targetFrame, iType) {
/* iType values:
 * 0 - Content visible
 * 1 - Content hidden
 */
var c="0,100%,0";
var sCols;

//alert("changeCols " + targetFrame + " : " + iType);
   //if (document.parentWindow) sCols = document.parentWindow.parent.document.Script.frames["Views"].cols;
   //if (sCols=="6%,0%,94%") c="0,100%,0";
   if (iType==0) c="0,100%,0";
   if (iType==1) c="6%,0,94%";

   if (targetFrame && targetFrame.length>0) { 
      if (document.parentWindow) document.parentWindow.parent.document.frames[targetFrame].cols = c;
      else if (parent.document && parent.document.getElementById) parent.document.getElementById(targetFrame).cols = c;

      if (c=="0,100%,0") {
	if (document.parentWindow) document.parentWindow.parent.document.frames["Content_Right"].location.replace ("<%=sFilePath%>/page_Blank.htm");
	else if (parent.frames) parent.frames["Content_Right"].location.replace("<%=sFilePath%>/page_Blank.htm");
      }
      return true;
   } else {
      return false;
   }
}

function getSourceElement(e) {
   if (window.event)
 	return window.event.srcElement;
   else if (e && e.target) {
	if (typeof e.target.nodeType == 'undefined') return e.target;
	else if (e.target.nodeType == 3) return e.target.parentNode;
   else
	return e.target;
   }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function openWindow(src, name, width, height, scroll) {
   window.open(src, name, "width=" + width + ",height=" + height + ",left=" + ((screen.width - width) / 2) + ",top=" + ((screen.height - height) / 2 - 40) + ",scrollbars=" + (scroll ? 1 : 0) + ",resizable=0,status=0").focus();
   return true;
}

function openURL(src) {
   window.open(src);
   return false;
}
function submitForm(_form) {
   if (_form) {
   	_form.submit();
   	return true;
   } else {
   	return false;
   }
}
-->
