form {
  margin: 0px;
  padding: 0px;
  font-size: 100%;
  min-width: 500px;
  max-width: 760px;
  width: 720px;
}

form fieldset {
  clear: both;
  font-size: 100%;
  border-color: #000000;
  border-width: 1px 0px 0px 0px;
  border-style: solid none none none;
  padding: 10px;
  margin: 0px 0px 0px 0px;
}

form fieldset legend {
  font-size: 150%;
  font-weight: normal;
  color: #000000;
  margin: 0px 0px 0px 0px;
  padding: 0px 5px;
}

label {
  font-size: 100%;
}

label u {
  font-style: normal;
  text-decoration: underline;
}

input, select, textarea {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 110%;
  color: #000000;
}

textarea {
  overflow: auto;
}

form div {
  float: left;
  clear: left;
  display: block;
  position: relative;
  width: 60%;
  height: expression('1%');
  margin: 5px 0px 0px 0px;
  padding: 1px 3px;
}

form fieldset div.notes {
  float: right;
  width: 32.9%;
  height: auto;
  margin: 0px 0px 10px 10px;
  padding: 5px;
  border: 1px solid #666666;
  background-color: #ffffc9;
  color: #666666;
  font-size: 80%;
}

form fieldset div.notes h4 {
  background-image: url(../images/icon_info.gif);
  background-repeat: no-repeat;
  background-position: top left;
  margin-top: 3px;
  padding: 3px 0px 3px 27px;  /** NB l-padding allows for icon **/
  border-width: 0px 0px 1px 0px;
  border-style: solid;
  border-color: #666666;
  color: #666666;
  font-size: 110%;
  text-decoration: none;
}

form fieldset div.notes p {
  margin: 0em 0em 1em 0em;
  color: #666666;
}

form fieldset div.notes p.last {
  margin: 0em;
}

form fieldset div.notes a:link {
  color: blue;
  font-weight: normal;
}

form fieldset div.notes a:active {
  color: red;
  text-decoration: underline;
  font-weight: normal;
}

form fieldset div.notes a:visited {
  color: blue;
  text-decoration: underline;
  font-weight: normal;
}

form fieldset div.notes a:hover {
  color: red;
  text-decoration: underline;
  font-weight: normal;
}

form fieldset div.notes li {
  list-style-image: none;
}


form div fieldset {
  clear: none;
  border-width: 1px;
  border-style: solid;
  border-color: #666666;
  margin: 0px 0px 0px 15%;
  padding: 0px 5px 5px 5px;
  width: 100%;
}

form div fieldset.inset {
  clear: none;
  border-width: 1px;
  border-style: solid;
  border-color: #666666;
  margin: 0px 0px 0px 93px;  /* NB l-margin = div label width +3*/
  padding: 0px 5px 5px 5px;
  width: 70%;
}

form div fieldset.leftaligned {
  clear: none;
  border-width: 1px;
  border-style: solid;
  border-color: #666666;
  margin: 0px 0px 0px 3px;
  padding: 0px 5px 5px 5px;
  width: 99.9%;
}

form div fieldset.noborder {
  border: 0px solid;
}


form div fieldset div{
  clear: left;
  display: block;
  width: 99.9%;
  height: expression('1%');
  margin: 5px 0px 0px 0px;
  padding: 1px 3px;
}

form div fieldset legend {
  font-size: 100%;
  padding: 0px 3px 0px 9px;
}

form div.required fieldset legend, form div.reqvisible fieldset legend {
  font-weight: bold;
}

form div label {
  display: block;
  float: left;
  width: 18%;
  padding: 3px 5px;
  margin: 0px 0px 5px 0px;
  text-align: left;
}

form div label.widelabel, form div.widelabel label {
  width: 50%;
}

form div.optional label, label.optional {
  font-weight: normal;
}

form div.required label, form div.reqvisible label, label.required, label.reqvisible {
  font-weight: bold;
}

form div fieldset label {
  font-size: 88%;
}

form div label.labelCheckbox, form div label.labelRadio {
  clear: left;
  float: left;
  display: block;
  width: 88%;
  height: expression('1%');
/*
  margin: expression('0px 0px 0px 10%');
  padding-left: expression('0%');
  padding-left: 10%;
*/
  text-align: left;
}
/*
form div fieldset label.labelCheckbox, form div fieldset label.labelRadio {
  clear: left;
  float: left;
  display: block;
  margin: 0px 0px 5px 0px;
  width: 68%;
color:red;
}
*/
form div fieldset.leftaligned label.labelCheckbox.leftaligned, form div fieldset.leftaligned label.labelRadio.leftaligned {
  clear: left;
  float: left;
  display: block;
  margin: 0px 0px 5px 0px;
  width: 400px;
}

form div fieldset.inset label {
  display: block;
  float: left;
  width: 27%;
  padding: 3px 5px;
  margin: 0px 0px 5px 0px;
  text-align: center;
}

form div fieldset.inset label.labelCheckbox {
  display: block;
  float: right;
  width: 85%;
  padding: 0px 5px;
  margin: 0px 0px 5px 0px;
  text-align: left;
}

form div input, form div select, form div textarea {
  width: 200px;
  padding: 1px 3px;
  margin: 0px 0px 0px 2px;
}

form div input.inputShort {
  width: 70px;
}

form div input.inputFile {
  width: 200px; /** NB use same width as input and textarea */
}

form div select.selectOne, form div select.selectMultiple {
  width: 200px;  /** NB use same width as input and textarea */
  padding: 1px 3px;
}

form div select.autowidth {
  width: auto;
  padding: 1px 3px;
}


form div input.inputCheckbox, form div input.inputRadio, input.inputCheckbox, input.inputRadio {
  left: 0px;
  width: 30px;
  position: absolute;
  background-color: transparent;
  border-width: 0px;
}

form div.submit {
  width: 412px;  /** NB use form div (part without notes) -18 **/
  padding: 0px 0px 0px 130px;
}

form div.submit div {
  display: inline;
  float: left;
  text-align: left;
  width: auto;
  padding: 0px;
  margin: 0px;
}

form div input.inputSubmit, form div input.inputButton, input.inputSubmit, input.inputButton {
  background-color: #cccccc;
  color: #000000;
  width: auto;
  padding: 0px 6px;
  margin: 0px;
}

form div input.inputSubmit, form div input.inputButton {
  float: right;
  margin: 0px 0px 0px 5px;
}

form div small {
  display: block;
  margin: 0px 0px 5px 0px;
  padding: 1px 3px;
  font-size: 80%;
  height: expression('1%');
}

form fieldset legend {
  line-height: 150%;
}

form input, form select, form textarea {
  background-color: #ffffff;
}

form textarea.expanding {
  overflow: auto;
  overflow-x: auto;
  overflow-y: visible;
}

div.optional label:before {
  content: '';
}

div.required label:before, div.reqvisible label:before {
  content: '';
}

form div label.labelCheckbox, label.labelCheckbox , form div label.labelRadio, label.labelRadio{
  clear: left;
  float: left;
  display: block;
  width: 70%;
  margin-left: expression('10%');
  margin-left: 12%;
  padding-top: 1px;
  padding-left: expression('3px');
}
/*
form div label.labelRadio, label.labelRadio {
  display: block;
  width: 70%;
  margin-left: 23%;
  padding-top: 1px;
  padding-left: expression('35px');
}
*/
form div label.labelCheckbox input.inputCheckbox, form div label.labelRadio input.inputRadio, label.labelCheckbox input.inputCheckbox, label.labelRadio input.inputRadio {
  margin: 0px 0px 0px 0px;
}

form div fieldset input.inputText, form div fieldset input.inputPassword, form div fieldset input.inputFile, form div fieldset textarea.inputTextarea {
  width: 30%;
  margin: 0px;
}

form div label.compact {
  display: inline;
  width: auto;
  padding: 4px 10px 0px 0px;
  text-indent: 0px;
  margin: 0px 0px 0px 0px;
}

form div.wide label {
  float: none;
  display: block;
}

form div label.wide {
  width: 70%;
}

form div.wide input.inputText, form div.wide input.inputPassword, form div.wide input.inputFile, form div.wide select, form div.wide textarea, form div textarea.wide {
  width: 99.9%;
  margin: 0px;
}

form div textarea.wide {
  height: 100px;
}

form div textarea.bigbox {
  height: 200px;
  width: 70%;
}

form div.notes p, form div small {
  line-height: 125%;
}

form div.wide small {
  margin: 0px 0px 5px 0px;
}
p.error {
  background-color: #ff0000;
  background-image: url(../images/icon_error.gif);
  background-repeat: no-repeat;
  background-position: 3px 3px;
  color: #ffffff;
  padding: 3px 3px 5px 27px;
  border: 1px solid #000000;
  margin: auto 100px;
}

form div.error {
  background-color: #ffffe1;
  background-image: url(../images/required_bg.gif);
  background-repeat: no-repeat;
  background-position: top left;
  color: #666666;
  border: 1px solid #ff0000;
}

form div.error p.error {
  background-image: url(../images/icon_error.gif);
  background-position: top left;
  background-color: transparent;
  border-style: none;
  font-size: 80%;
  font-weight: bold;
  margin: 0px 0px 0px 0px;
  color: #ff0000;
}

.tagerror {
  color: #CEA639;}

.noerror {
  }

p.namecheckerror {
  background-color: #ff0000;
  background-image: url(../images/icon_error.gif);
  background-repeat: no-repeat;
  background-position: 3px 3px;
  color: #ffffff;
  padding: 3px 3px 5px 27px;
  border: 1px solid #000000;
  margin: auto;
}

p.namecheckok {
  background-color: #aaffaa;
  background-image: url(../images/icon_tick.gif);
  background-repeat: no-repeat;
  background-position: 3px 3px;
  color: #000000;
  padding: 3px 3px 5px 27px;
  border: 1px solid #000000;
  margin: auto;
}

p.namecheckwarn {
  background-color: #ffffaa;
  background-image: url(../images/icon_error.gif);
  background-repeat: no-repeat;
  background-position: 3px 3px;
  color: #000000;
  padding: 3px 3px 5px 27px;
  border: 1px solid #000000;
  margin: auto;
}


