
/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Ultimater :: http://invisionfree.com/forums/Black_Forest_Boards */

/* The addNewStyleSheetByFullCSS function accepts one argument,
 the full CSS to be used within the style sheet, and the new
 style sheet is appended to the DOM tree automatically. */

function addNewStyleSheetByFullCSS(innerCSS){
  var h=document.getElementsByTagName("head");if(!h.length)return;
  var newStyleSheet=document.createElement("style");
  newStyleSheet.type="text/css";
  h[0].appendChild(newStyleSheet);
  try{
    newStyleSheet.styleSheet.cssText=innerCSS;
  }catch(e){try{
    newStyleSheet.appendChild(document.createTextNode(innerCSS));
    newStyleSheet.innerHTML=innerCSS;
  }catch(e){}}
}

// ============

var fullCSS=''+
'\nbody { margin: 0px 0px 0px 0px; padding: 0; background-color: #FFFFFF; color: #000000;'+
'\nfont-family:serif; font-size:medium;'+
'\n}'+
'\ntr { vertical-align: center;  }'+
'\n.fieldframe { background-color: #F1F2F6; color: #929BAB; border: 1px solid #929BAB; padding: 5px }'+
'\n.buttonframe { background-color: #F1F2F6; color: #929BAB; margin-top: 10px; border: 1px solid #929BAB; padding: 5px }'+
'\n.field { background-color: #E3E4EA; color: #000000; border: 1px solid #929BAB;}'+
'\n.label { background-color: #E3E4EA; color: #000000; font-weight: bold; vertical-align: top;'+
'\nwidth:180px;border:1px solid #929BAB;'+
'\n}'+
'\n.input { background-color: #F1F2F6; color: #5D636E; vertical-align: top;'+
'\nwidth: 80px; border:1px solid #929BAB; padding:2px;'+
'\n}'+
'\n.input input{'+
'\nbackground-color: white; color: black; border:0 none;'+
'\n}'+
'\n.button { background-color: #E3E4EA; color: #5D636E; border: 1px solid #929BAB; margin: 1px;  }'+
'\n.button:hover { background-color: #F4F4F6; color: #5D636E; border: 1px solid #929BAB; margin: 1px;  }'+
'\ndiv.field{'+
'\nmargin:0;padding:2px;'+
'\n}\n'

addNewStyleSheetByFullCSS(fullCSS);


<!--
var isNS = (navigator.appName == "Netscape") ? 1 : 0;
var EnableRightClick = 0;
if(isNS) 
document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
function mischandler(){
  if(EnableRightClick==1){ return true; }
  else {return false; }
}
function mousehandler(e){
  if(EnableRightClick==1){ return true; }
  var myevent = (isNS) ? e : event;
  var eventbutton = (isNS) ? myevent.which : myevent.button;
  if((eventbutton==2)||(eventbutton==3)) return false;
}
function keyhandler(e) {
  var myevent = (isNS) ? e : window.event;
  if (myevent.keyCode==96)
    EnableRightClick = 1;
  return;
}
document.oncontextmenu = mischandler;
document.onkeypress = keyhandler;
document.onmousedown = mousehandler;
document.onmouseup = mousehandler;
//-->

