<!-- Begin

document.write('<script language=\"javascript\">window.onload = init;</script>');

var strId = splitLoc();

function init() {

  if(window.name != 'text') {


          document.writeln(' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> ');
          document.writeln(' <html> ');
          document.writeln(' <head> ');
          document.writeln(' <meta http-equiv="content-language" content="sv"> ');
          document.writeln(' </head> ');
          document.writeln(' <frameset COLS=183,2,* BORDER=0> ');
          document.writeln('   <frame name=link SRC=http://www.cadsoftware.se/link.htm SCROLLING=NO NORESIZE> ');
          document.writeln('   <frame name=tom1 SRC=http://www.cadsoftware.se/tom1.htm SCROLLING=no NORESIZE> ');
          document.writeln('   <frame name=text SRC=' + strId + ' noresize marginwidth=0 marginheight=0 scrolling=auto> ');
          document.writeln(' </frameset> ');
          document.writeln(' </html> ');


        text.location = strId;
  }

}

function splitLoc() {
   var tmpUrl = document.URL.split('/');
   var tmpName = tmpUrl[tmpUrl.length-1];
   var myUrl = tmpName.split('\\');

   return( myUrl[myUrl.length-1] );
}

function printMe(text) {
  text=document;
  print(text);
}



function glossary(name) {

 var props  = 'scrollbars=yes, toolbar=no, titlebar=no, resizable=no, personalbar=no';
     props += 'location=no, directories=no, width=300, height=300';

     window.open('glossary/'+ name +'.html','glosswin', props);
}


function searchText(path) {
 var txtSearch = document.Find.txtSearch.value;

 if(txtSearch != '' ) {
         window.location.href = '../search.asp?path=' + path + '&stxt=' + txtSearch;

 }

}



//  End -->


