	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 = document.getElementById("rp_text_contactname").value;
	
    if (rp_check_contactname == '')
    {
  		document.getElementById("rp_contactInfo").innerHTML ='<i>Sorry, You must input "Your Name" First!</i>' ;
  		document.getElementById("rp_contactInfo").style.display='block';
  		document.getElementById("rp_text_contactname").focus();
  		return;	
    }
    else
    {
		  rp_check_submit = 'name='+rp_check_contactname;
    }
	
    rp_check_contactemail = document.getElementById("rp_text_contactemail").value;
    if (rp_check_contactemail == '')
    {
		  document.getElementById("rp_contactInfo").innerHTML ='<i>Sorry, You must input "Your Emai" First!</i>' ;
		  document.getElementById("rp_contactInfo").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 = document.getElementById("rp_text_contactphone").value;
    if (rp_check_contactphone == '')
    {
		  document.getElementById("rp_contactInfo").innerHTML ='<i>Sorry, You must input "Telephone Number" First!</i>' ;
		  document.getElementById("rp_contactInfo").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 = document.getElementById("rp_text_contactsubject").value;
	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 = document.getElementById("rp_text_contactmessage").value;
	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;
	if (rp_check_contactname == '')
	{
		document.getElementById("rp_contactInfo").innerHTML ='<i>Sorry, You must input "Verification Code" First!</i>' ;
		document.getElementById("rp_contactInfo").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",
		dataType: "json",
		data: rp_check_submit,

		success: function(ajax_result)
		{
			if ('100' == ajax_result)
			{
				document.getElementById("rp_contactInfo").innerHTML = 'We will contact you soon,Thank you.';
				document.getElementById("rp_contactInfo").style.display='block' ;				
			}
			else
			{
				document.getElementById("rp_contactInfo").innerHTML = ajax_result;
				document.getElementById("rp_contactInfo").style.display='block' ;
			}
		}
	}
	)
}	

