stepcarousel.setup({
	galleryid: 'mygallery', //id of carousel DIV
	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
	panelclass: 'panel', //class of panel DIVs each holding content
	autostep: {enable:false, moveby:1, pause:3000},
	panelbehavior: {speed:500, wraparound:false, persist:true},
	defaultbuttons: {enable: true, moveby: 1, leftnav: ['images/left-nav.gif', -43, 65], rightnav: ['images/right-nav.gif', 23, 65]},
	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
	contenttype: ['inline'] //content setting ['inline'] or ['ajax', 'path_to_external_file']
})

function DoSubmit() 
  { 
	var testresults
  
    if (document.form.name.value == "Your Name Here") { 
      alert ("Please Input Your Name"); 
      document.form.name.focus (); 
	  return false;
    }
	
	
    if (document.form.email.value == "Your Email Address") { 
      alert ("Please Input Your Email Address"); 
      document.form.email.focus (); 
      return false;
    } 
	else {
		var str=document.form.email.value
		var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
		if (filter.test(str))
			{ }
		else{
		alert("Please input a valid email address!");
		document.form.email.focus (); 
	  return false;
		}	
	}


    if (document.form.subject.value == "Subject") { 
      alert ("Please Input Subject"); 
      document.form.subject.focus (); 
	  return false;
    }	
	
		
    if (document.form.message.value == "Put your message here...") { 
      alert ("Please Input Your Message."); 
      document.form.message.focus (); 
	  return false;
    }
	
	  return true;
  }

 function doClear(theText) {

     if (theText.value == theText.defaultValue) {

         theText.value = ""

     }

 }

 

 function doRestore(theText) {

     if (theText.value == "") {

         theText.value = theText.defaultValue

     }

 }


