/* Auto-Update Form fields
  John MacKenzie John@yourcompsolution.com
  Computer Solutions
  */
 var ie4 = document.getElementById&&document.all?false:document.all?true:false;
 var ie5 = document.getElementById&&document.all?true:false;
 var ns4 = document.layers?true:false;
 
 var comment_html = "Please type your message in the box provided:"+
 "<br>"+
 "<textarea name='comments' cols='40' rows='7'><\/textarea>";
 
 var sys_html = "Please choose your processor:<select name=cpu>"+
  "<option>Pre-Pentium"+
  "<option>Pentium/MMX"+
  "<option>Pentium II"+
  "<option>Pentium III"+
  "<option>AMD K6"+
  "<option>AMD Duron"+
  "<option>Pentium 4"+
  "<option>AMD Athlon"+
  "<option>Sun Microsystems"+
  "<option>I don't know"+
  "<\/select>"+
  "<input name=mhz type=text size='6'>mhz/ghz"+
  "<br>"+
  "Please specify how much RAM you have: <select name=RAM>"+
  "<option>Less than 128mb"+
  "<option>128mb"+
  "<option>256mb"+
  "<option>256mb - 512mb"+
  "<option>More than 512mb"+
  "<option>I don't know"+
  "<\/select>"+
  "<br>"+
  "Please choose your Operating System: <select name=OS>"+
  "<option>Windows XP"+
  "<option>Windows 98"+
  "<option>Windows 95"+
  "<option>Windows NT"+
  "<option>Windows 2000"+
  "<option>Windows Me"+
  "<option>Linux/FreeBSD"+
  "<option>Solaris"+
  "<option>Other"+
  "<option>I don't know"+
  "<\/select>"+
  "<br>"+
  "Did you purchase this system through Computer Solutions? <select name=CSPC>"+
  "<option>Yes"+
  "<option>No"+
  "<\/select>"+
  "<br>"+
  "Please describe the issue that you are experiencing in the box below:"+
  "<br>"+
  "<textarea name='comments' cols='40' rows='7'><\/textarea>";
 
 var net_html= "Please select your Network type: <select name=NET-TYPE>"+
 "<option>Wired Ethernet"+
 "<option>Wireless Ethernet"+
 "<option>Token Ring"+
 "<option>Asynchronous Transfer Mode"+
 "<\/select>"+
 "<br>"+
 "How many machines are networked? <select name=NET-AMOUNT>"+
 "<option>2-5"+
 "<option>6-10"+
 "<option>11-20"+
 "<option>21-50"+
 "<option>Over 50"+
 "<\/select>"+
 "<br>"+
 "Please describe the issue that you are experiencing in the box below:"+
 "<br>"+
 "<textarea name='comments' cols='40' rows='7'><\/textarea>";
 
 var design_html= "Please type your request in the box provided:"+
 "<br>"+
 "<textarea name='comments' cols='40' rows='7'><\/textarea>";
 
  function system() {
  if (ie5) {document.getElementById("holder1").innerHTML = sys_html; }
  else if (ie4) { document.all["holder1"].innerHTML = sys_html; }
  else if (ns4) { alert("Netscape 4 is outdated, please email your request or update your browser"); }
  }
  
  function comment() {
  if (ie5) {document.getElementById("holder1").innerHTML = comment_html; }
  else if (ie4) { document.all["holder1"].innerHTML= comment_html; }
  else if (ns4) { alert("Netscape 4 is outdated, please email your request or update your browser"); }
  }
  
  function network() {
  if (ie5) {document.getElementById("holder1").innerHTML = net_html; }
  else if (ie4) { document.all["holder1"].innerHTML= net_html; }
  else if (ns4) { alert("Netscape 4 is outdated, please email your request or update your browser"); }
  }
  
  function design() {
  if (ie5) {document.getElementById("holder1").innerHTML = design_html; }
  else if (ie4) { document.all["holder1"].innerHTML= design_html; }
  else if (ns4) { alert("Netscape 4 is outdated, please email your request or update your browser"); }
  }
  
  function selectchanged() {
 if(document.mailform.subject.options[document.mailform.subject.selectedIndex].value == "I'd like to ask a question") { comment(); }
 if(document.mailform.subject.options[document.mailform.subject.selectedIndex].value == "I need help with my system") { system(); }
 if(document.mailform.subject.options[document.mailform.subject.selectedIndex].value == "I need help with my network") { network(); }
 if(document.mailform.subject.options[document.mailform.subject.selectedIndex].value == "I need information on web design") { design(); }
 }
