	function realClearClick()
	{
		realCheckKey = document.getElementById("fromAddress").value;
		if (realCheckKey == 'e.g 123 Main st')
		{
			document.getElementById("fromAddress").value = '';
		}
	}
  function rpSubmitForm(id)
  {
  	rp_check_submit = '';
  	rp_check_contactname =jQuery("#rp_contactform"+id).find("#rp_text_contactname").val();
    if (rp_check_contactname == '')
    {
  		document.getElementById("rp_contactInfo"+id).innerHTML ='<i style="color:red;">Sorry, You must input "Your Name" First!</i>' ;
  		document.getElementById("rp_contactInfo"+id).style.display='block';
  		document.getElementById("rp_text_contactname").focus();
  		return;	
    }
    else
    {
		  rp_check_submit = 'name='+rp_check_contactname;
    }
	
    rp_check_contactemail =jQuery("#rp_contactform"+id).find("#rp_text_contactemail").val();
    if (rp_check_contactemail == '')
    {
		  document.getElementById("rp_contactInfo"+id).innerHTML ='<i style="color:red;">Sorry, You must input "Your Email" First!</i>' ;
		  document.getElementById("rp_contactInfo"+id).style.display='block';
		  document.getElementById("rp_text_contactemail").focus();
		  return;	
    }
    else
    {
		  if (rp_check_submit != '')
		  {
			 rp_check_submit = rp_check_submit+'&email='+rp_check_contactemail;
		  }
		  else
		  {
        rp_check_submit = 'email='+rp_check_contactemail;
      }
    }

    rp_check_contactphone =jQuery("#rp_contactform"+id).find("#rp_text_contactphone").val();
    if (rp_check_contactphone == '')
    {
		  document.getElementById("rp_contactInfo"+id).innerHTML ='<i style="color:red;">Sorry, You must input "Telephone Number" First!</i>' ;
		  document.getElementById("rp_contactInfo"+id).style.display='block';
		  document.getElementById("rp_text_contactphone").focus();
		  return;	
	 }
	 else
	 {
		if (rp_check_submit != '')
		{
			rp_check_submit = rp_check_submit+'&phone='+rp_check_contactphone;
		}
		else
		{
			rp_check_submit = 'phone='+rp_check_contactphone;
		}		
	}

	rp_check_contactsubject =jQuery("#rp_contactform"+id).find("#rp_text_contactsubject").val();
	if (rp_check_contactsubject != '')
	{
		if (rp_check_submit != '')
		{
			rp_check_submit = rp_check_submit+'&subject='+rp_check_contactsubject;
		}
		else
		{
			rp_check_submit = 'subject='+rp_check_contactsubject;
		}				
	}

	rp_check_contactmessage =jQuery("#rp_contactform"+id).find("#rp_text_contactmessage").val();
	if (rp_check_contactmessage != '')
	{
		if (rp_check_submit != '')
		{
			rp_check_submit = rp_check_submit+'&message='+rp_check_contactmessage;
		}
		else
		{
			rp_check_submit = 'message='+rp_check_contactmessage;
		}				
	}
	
	//rp_check_spaminput = document.getElementById("rp_text_spaminput").value;
/*	rp_check_spaminput =jQuery("#rp_contactform"+id).find("#rp_text_spaminput").val();
	if (rp_check_contactname == '')
	{
		document.getElementById("rp_contactInfo"+id).innerHTML ='<i>Sorry, You must input "Verification Code" First!</i>' ;
		document.getElementById("rp_contactInfo"+id).style.display='block';
		document.getElementById("rp_text_spaminput").focus();
		return;	
	}
	else
	{
		if (rp_check_submit != '')
		{
			rp_check_submit = rp_check_submit+'&spam='+rp_check_spaminput;
		}
		else
		{
			rp_check_submit = 'spam='+rp_check_spaminput;
		}						
		
	}
*/
	
	rp_check_submit = rp_check_submit+ '&sessioni='+rp_sessionId+'&id='+id;
	jQuery.ajax
	({
		type: "post",
		url: REALPRESS_URL+"/realajax.php",
		data: rp_check_submit,
		success: function(ajax_result)
		{
			if ('100' == ajax_result)
			{
				jQuery("#rp_contactInfo"+id).html('<span style="color:green;">We will contact you soon,Thank you.</span>');
				document.getElementById("rp_contactInfo"+id).style.display='block' ;				
			}
			else
			{
				jQuery("#rp_contactInfo"+id).html('<span style="color:red;">'+ajax_result+'</span>');
				document.getElementById("rp_contactInfo"+id).style.display='block' ;
			}
		}
	});
}	

