// JavaScript Document

/** 
  This function writes out the button, in case there is no js, the noscript will
  write a html button
  
**/

var accessCode = {
	
  writeContactButton: function()
  {
    try{
	  document.write("<a href='javascript:accessCode.submitContactForm()' accessKey='S' id='submitImage'><img src='/webfiles/images/buttons/btn_submit.gif' alt='Submit' border='0'  /></a>");  
       }
       catch(e)
       {
         alert("Error - writeContactButton: "+ e);
       }
  },
  
  submitContactForm: function()
  {
	if(contactValidate('contactForm'))
	  {
	  document.getElementById("contactForm").submit();  
      }
	}
}