		function recommend_section_close() {
			$('recommend_overlay').hide();
			$('recommend_section').hide();
			$('recommend_content_bg').hide();
			$('disclaimer_link').replace('<div id=\"disclaimer_link\" onclick=\"addDisclaimer();\">' + disclaimer + '</div>');
			while ($('required_fields').hasChildNodes()) {
				$('required_fields').removeChild($('required_fields').firstChild);
			}
			$('required_fields').insert(required_fields);
		}
		function recommend_section() {
 			var arrayPageSize = getPageSize();
			leftOffset = arrayPageSize[0]/2 - 175;
			$('recommend_content_bg').setStyle({left: + leftOffset + 'px'});
			$('recommend_section').setStyle({left: + leftOffset + 'px'});
			new Effect.Appear($('recommend_overlay'), { duration: true,	from: 0.0, to: 0.4,
				afterFinish: (function(){
					new Effect.Appear($('recommend_content_bg'), { duration: true, from: 0.6, to: 1});
					new Effect.Appear($('recommend_section'), { duration: true,	from: 0.6, to: 1});

				})
			}); 
			$('button_submit').onmouseover = function(){this.className='submit_button_hover'};
			$('button_submit').onmouseout = function(){this.className='submit_button'};
			$('sender_name').onblur = function(){if ( '' == this.value ) { this.value = your_name;}};
			$('sender_name').onfocus = function(){if ( your_name == this.value ) { this.value = '';}};
			$('recipient_name').onblur = function(){if ( '' == this.value ) { this.value =your_friends_name ;}};
			$('recipient_name').onfocus = function(){if ( your_friends_name == this.value ) { this.value = '';}};
			$('recipient_email').onblur = function(){if ( '' == this.value ) { this.value = your_friends_email;}};
			$('recipient_email').onfocus = function(){if ( your_friends_email == this.value ) { this.value = '';}};
			$('recipient_message').onblur = function(){if ( '' == this.value ) { this.value =message;}};
			$('recipient_message').onfocus = function(){if ( message == this.value ) { this.value = '';}};
			if (arrayPageSize[1] < $('centeredBg').clientHeight) {
				$('recommend_overlay').setStyle({ width: arrayPageSize[0] + 'px', height: $('centeredBg').clientHeight + 'px' });
			} else {
				$('recommend_overlay').setStyle({ width: arrayPageSize[0] + 'px', height: arrayPageSize[1] + 'px' });
			}
		}
		function addDisclaimer() {
				$('disclaimer_link').replace('<div id=\"disclaimer_link\" onclick=\"removeDisclaimer();\">' + disclaimer + '<p id=\"disclaimer\">' + disclaimer_description + '</p></div>');
		}
		function removeDisclaimer() {
				$('disclaimer_link').replace('<div id=\"disclaimer_link\" onclick=\"addDisclaimer();\">' + disclaimer + '</div>');
		}
		function validateFields() {
			sender_name = $F('sender_name');
			recipient_name = $F('recipient_name');
			recipient_email = $F('recipient_email');
			recipient_message = $F('recipient_message');

			if ((recipient_email.length == 0)||(!checkEmail(recipient_email))) {
				while ($('required_fields').hasChildNodes()) {
					$('required_fields').removeChild($('required_fields').firstChild);
				} 
				$('required_fields').insert(valid_email);
			} 

			if ((recipient_email != your_friends_email )&&((recipient_email.length != 0)&&(checkEmail(recipient_email)))) {
	  			var param = new Object();
				param.recipientMail = recipient_email;
				if ((sender_name != '') && (sender_name !=your_name)) {
					param.senderName = sender_name;
				}
				if ((recipient_name != '') && (recipient_name != your_friends_name )) {
					param.recipientName = recipient_name;
				}
				if ((recipient_message != '') && (recipient_message != message)) {
					param.recipientMessage = recipient_message;
				}
                param.pageRecommend = escape(window.location);

                if ('pageRecommendURL' in window) {

	                if ((pageRecommendURL != '')&&(pageRecommendURL != undefined)) {

		                param.pageRecommend = escape(pageRecommendURL);

	                }

                }				
   				new Ajax.Request(page_recomend,
				  			{
				    			method:'post',
			    				parameters:param,
			    				onSuccess: function(transport){
		   	      					return;
					    		},
				    			onFailure: function(){ 
				    				alert(send_error);
							},
			    				onComplete: function(){
								recommend_section_close();
								}
				  			}
				);
			}
		}
