jQuery.noConflict();
jQuery(document).ready(function() {
	jQuery('#address-wrap').hide()
	jQuery("select#method").change(function () {

          jQuery("select#method option:selected").each(function () {
                
				switch(jQuery(this).val()) {
					
					case '2':
					//It's phone, so check for number entered
					if(jQuery('#phoneno').val()=='' || !jQuery('#phoneno').val()) alert('You must enter a contact telephone number!');
					jQuery('#phoneno').css("borderColor","red");
					//jQuery('#address-wrap').hide();
					break;
					
					case '1':
					//It's email, so check for email address entered
					if(jQuery('#emailaddress').val()=='' || !jQuery('#emailaddress').val()) alert('You must enter an email address!');
					jQuery('#emailaddress').css("borderColor","red");
					//jQuery('#address-wrap').hide();
					break;
					
					case '3':
					//It's "post", so show address input area
					//jQuery('#address-wrap').show();
					break;
					
				}
			  })
          .change();
			
			
        });
});



