<!--
//pre-populates the search box with support.sas.com
function clearField(obj) {
    if (obj.defaultValue==obj.value) obj.value = '';
}


function PrintPage() {
window.print();
}



function mailThisUrl() {
u = window.location;
m = "Thought you might be interested in this information from the SAS Customer Support site";
t = document.title;
t = t.replace(/"/g, '');
// the following expression must be all on one line...
window.location = "mailto:%20?subject="+m+"&body="+t+" "+u;
}



function writeCopyright() {
  COPYRIGHT = "Copyright &copy; ";
  document.write(COPYRIGHT, new Date().getFullYear(), " SAS Institute Inc. All Rights Reserved.");
}


function CreateBookmarkLink() {
var title=document.title;
var url=location.href;

    if (window.sidebar) window.sidebar.addPanel(title, url,"");

    else if( window.opera && window.print )
    {
    var mbm = document.createElement('a');
    mbm.setAttribute('rel','sidebar');
    mbm.setAttribute('href',url);
    mbm.setAttribute('title',title);
    mbm.click();
    }

    else if( document.all ) window.external.AddFavorite(url, title);

}
 
var newWindow;

function openPlainWin(thisURL,winName,winWidth,winHeight,xPos,yPos) {
  if (!newWindow || newWindow.closed) {
    winOpts = "width=" + winWidth + ",height=" + winHeight + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes";
    if (xPos != "") winOpts += ",screenX=" + xPos + ",left=" + xPos;
    if (yPos != "") winOpts += ",screenY=" + yPos + ",top=" + yPos;
    newWindow = window.open("",winName,winOpts);
    newWindow.location.href = thisURL;
    if (!newWindow.opener) {
      newWindow.opener = window;
    }
  }
  else {
    // window's already open; bring to front
    newWindow.focus();
    newWindow.location.href = thisURL;
  }
}

function writeCopyright() {
  COPYRIGHT = "Copyright &copy; ";
  document.write(COPYRIGHT, new Date().getFullYear(), " SAS Institute Inc. All Rights Reserved.");
}

// This function added 12/20/07 pjt per Dana Anthony / SOS #1268134
function openWindow(w_page, w_name, w_top, w_left, w_width, w_height, extra_params){
        var w_params = "top=" + w_top + ",left=" + w_left + ",width=" + w_width + ",height=" + w_height;
        if (extra_params != ""){
            w_params += "," + extra_params;
        }
      win1 = window.open(w_page,w_name,w_params);
}

// function is used to properly set the search collection parameter
function selectSearchCollection() {
    
    switch(window.location.hostname)
        {
        case 'support.sas.com':
        //   document.getElementById('searchCollection').value = 'suppprd';
          break;    
        case 'support.sas.com':
           document.getElementById('searchCollection').value = 'suptest';
          break; 
        case 'support.sas.com':
          // document.getElementById('searchCollection').value = 'suppprd';
          break;
        default:
          // do nothing
        }
     }
-->