function send_contact(id){
	var error = '';
	var myForm = document.getElementById(id);
	
	if (error == ''){ 
	$.post('/ajax', {
		fullname:		myForm.fullname.value,
		email:			myForm.email.value,
		company:		myForm.company.value,
		title:			myForm.title.value,
		phone:			myForm.phone.value,
		fax:			myForm.fax.value,
		address1:		myForm.address1.value,
		address2:		myForm.address2.value,
		city:			myForm.city.value,
		zip:			myForm.zip.value,
		state:			myForm.state.value,
		message:		myForm.message.value,
		method_type: 	'contact'
		}, function(data){
			if (data != '') {
				if (data.result == 'true'){
					document.getElementById('replace_text').innerHTML = '<div class="thankyou">Your Contact Has been submitted<br /></div>';
				}
			}
		},'json');
	}else{
		alert(error);
	}
	
}
function send_rfp(id){
	var error = '';
	var myForm = document.getElementById(id);
	
	if (error == ''){ 
	$.post('/ajax', {
		fullname:		myForm.fullname.value,
		email:			myForm.email.value,
		company:		myForm.company.value,
		title:			myForm.title.value,
		phone:			myForm.phone.value,
		fax:			myForm.fax.value,
		address1:		myForm.address1.value,
		address2:		myForm.address2.value,
		city:			myForm.city.value,
		zip:			myForm.zip.value,
		state:			myForm.state.value,
		message:		myForm.message.value,
		method_type: 	'contact'
		}, function(data){
			if (data != '') {
				if (data.result == 'true'){
					document.getElementById('replace_text').innerHTML = '<div class="thankyou">Your Contact Has been submitted<br /></div>';
				}
			}
		},'json');
	}else{
		alert(error);
	}
	
}
function clearText(obj){
	
	if (obj.value == obj.title){
		obj.value = ''
 
	}
	else if(obj.value == ''){
		obj.value = obj.title;
	}
}