   $(document).ready(function(){
       
        //Hide div w/id extra
       
	   $("#coupon .toggle").css("display","none");
	   $("#message .toggle").css("display","none");
	   $("#multiple .toggle").css("display","none");
	   $("#contact .toggle").css("display","none");
	   

        // Add onclick handler to checkbox w/id checkme
		
			  
       $("#coupon .pmessage").click(function(){
       
	        // If checked
	        if ($("#coupon .pmessage").is(":checked"))
	        {
	            //show the hidden div
	            $("#coupon .toggle").show("slow");
	        }
	        else
	        {     
	            //otherwise, hide it
	            $("#coupon .toggle").hide("slow");
	        }
      });
	  
	  $("#message .pmessage").click(function(){
       
	        // If checked
	        if ($("#message .pmessage").is(":checked"))
	        {
	            //show the hidden div
	            $("#message .toggle").show("slow");
	        }
	        else
	        {     
	            //otherwise, hide it
	            $("#message .toggle").hide("slow");
	        }
      });
	  
	  $("#multiple .pmessage").click(function()
	  {
       
	        // If checked
	        if ($("#multiple .pmessage").is(":checked"))
	        {
	            //show the hidden div
	            $("#multiple .toggle").show("slow");
	        }
	        else
	        {     
	            //otherwise, hide it
	            $("#multiple .toggle").hide("slow");
	        }
      });
	  
	  
	 

	       
	$("#formbutton").click(function()
			
	        {
	            //show the hidden div
	            $("#contactform").animate({height: "toggle"}, 1000);
				$("#formbutton").val("Toggle Form Display");
				

				
	        }		
			);
      
	  
  });
  
function limitChars(textid, limit, infodiv)
{
	var text = $('#'+textid).val();	
	var textlength = text.length;
	if(textlength > limit)
	{
		$('#' + infodiv).html('You cannot write more then '+limit+' characters!');
		$('#'+textid).val(text.substr(0,limit));
		return false;
	}
	else
	{
		$('#' + infodiv).html('You have '+ (limit - textlength) +' characters left.');
		return true;
	}
}

$(function(){
 	$('#note').keyup(function(){
 		limitChars('note', 150, 'charlimitinfo');
 	})
});


