function checkquestionform()
{

  if(document.askMyQuestion.name.value.length==0)
  {
   alert('Please enter your name');
   document.askMyQuestion.name.focus();
   return;
  }
  if(document.askMyQuestion.email.value.length==0)
  {
   alert('Please enter your email address');
   document.askMyQuestion.email.focus();
   return;
  }
  if(document.askMyQuestion.message.value.length==0)
  {
   alert('Please enter your inquiry');
   document.askMyQuestion.message.focus();
   return;
  }
  var uword = hex_md5(document.getElementById(jfldid).value);

  if (uword==cword[anum-1]) {
  }

  else {
  alert("ERROR: Enter the code as it is shown.");
  document.getElementById(jfldid).focus();
  return;
  }
  if(document.askMyQuestion.notext.value.length!=0)
  {
   //alert('Please enter your name');
   document.askMyQuestion.name.focus();
   return;
  }
document.askMyQuestion.submit();
}

function checkquoteform()
{
  if(document.quoteForm.quotename.value.length==0)
  {
   alert('Please enter your name');
   document.quoteForm.quotename.focus();
   return;
  }
  if(document.quoteForm.quoteemail.value.length==0)
  {
   alert('Please enter your email address');
   document.quoteForm.quoteemail.focus();
   return;
  }
  if(document.quoteForm.quoteorganization.value.length==0)
  {
   alert('Please enter your organization name');
   document.quoteForm.quoteorganization.focus();
   return;
  }

var selectCount = $(".formInput select").length;
$(".getQuoteTable").before("<input type=\"hidden\" value=\""+selectCount+"\" name=\"optionCount\" />");

var selectvalue;
var selectname;

for(i=0; i<selectCount; i++)
{
selectvalue = $(".formInput select:eq("+i+")").val();
$(".getQuoteTable").before("<input type=\"hidden\" value=\""+selectvalue+"\" name=\"selectvalue"+i+"\" />");

selectname = $(".formInput select:eq("+i+")").attr("name");
$(".getQuoteTable").before("<input type=\"hidden\" value=\""+selectname+"\" name=\"selectname"+i+"\" />");
}

document.quoteForm.submit();
}
