// JavaScript Document

function sendMail(url){
	
	var txt_company = document.getElementById('txt_company').value;
	var txt_contactName = document.getElementById('txt_contactName').value;
	var txt_email = document.getElementById('txt_email').value;
	var txt_phone = document.getElementById('txt_phone').value;
	var txt_comment = document.getElementById('txt_comment').value;
	
	individual_poststr = "&txt_company="+encodeURI(txt_company)+"&txt_contactName="+encodeURI(txt_contactName)+"&txt_email="+encodeURI(txt_email)+"&txt_phone="+encodeURI(txt_phone)+"&txt_comment="+encodeURI(txt_comment);
	postData(url,individual_poststr,'hintdisplay');
}

function sendSerReq(url){
	var txt_resident = document.getElementById('txt_resident').value;
	var txt_apartment = document.getElementById('txt_apartment').value;
	var txt_phone = document.getElementById('txt_phone').value;
	var txt_email = document.getElementById('txt_email').value;
	
	var txt_reqinfo = document.getElementById('txt_reqinfo').value;	
	
	individual_poststr = "&txt_resident="+encodeURI(txt_resident)+"&txt_apartment="+encodeURI(txt_apartment)+"&txt_email="+encodeURI(txt_email)+"&txt_phone="+encodeURI(txt_phone)+"&txt_reqinfo="+encodeURI(txt_reqinfo);

	if(document.getElementById('chk_pet').checked) individual_poststr = individual_poststr + "&chk_pet= " + document.getElementById('chk_pet').value;
	else individual_poststr = individual_poststr + "&chk_pet=--";
	
	if(document.getElementById('chk_secured').checked) individual_poststr = individual_poststr + "&chk_secured=" + document.getElementById('chk_secured').value;
	else individual_poststr = individual_poststr + "&chk_secured=--";
	
	//document.getElementById('hintdisplay').innerHTML = individual_poststr;
	postData(url,individual_poststr,'hintdisplay');
}


function sendRR(url){
	var txt_resident = document.getElementById('txt_resident').value;
	var txt_apartment = document.getElementById('txt_apartment').value;
	var txt_phone = document.getElementById('txt_phone').value;
	var txt_nameR = document.getElementById('txt_nameR').value;
	
	
	individual_poststr = "&txt_resident="+encodeURI(txt_resident)+"&txt_apartment="+encodeURI(txt_apartment)+"&txt_nameR="+encodeURI(txt_nameR)+"&txt_phone="+encodeURI(txt_phone);
	//document.getElementById('hintdisplay').innerHTML = individual_poststr;
	postData(url,individual_poststr,'hintdisplay');
}
