function initCss(id, href) { if (!document.getElementById(id)) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = id; link.rel = 'stylesheet'; link.type = 'text/css'; link.href = href; link.media = 'all'; head.appendChild(link); } };
initCss("iconMG", "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");
function MGCRM_sendRequest_1(){
var url = 'https://www.livebuyers.net/clients//webform/CRMWebFormProcess.php';
var params= '';
var form = document.getElementById('MGCRM_WebForm_1');
for(var i=0; i < form.length; i++)
{
params += form[i].name.split('').map( function (a) {return a.charCodeAt(0);}).join("_") +'='+form[i].value+'&';
}
var request = new XMLHttpRequest();
request.open('POST', url, true);
request.onreadystatechange = function()
{
if(request.readyState == 4 && request.status == 200) {
var json = JSON.parse(request.responseText);
if(json.status === 'success')
{
var message = document.getElementById('MGCRM_WebForm_AfterSendMessage_1');
slideUp(form, 0.1, 0, function(){
slideDown(message, 1, 25, function(){});
document.getElementById('MGCRM_WebForm_ErrorMessage_1').style.display = 'none';
});
}
else
{
document.getElementById('MGCRM_WebForm_ErrorMessage_1').style.display = 'block';
document.getElementById('MGCRM_WebForm_ErrorMessage_1').innerHTML = json.msg;
}
};
};
request.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
request.setRequestHeader('Content-length', params.length);
request.setRequestHeader('Connection', 'close');
request.send(params);
}
function slideDown (element, duration, finalheight, callback) {
var s = element.style;
s.height = '0px';
var y = 0;
var framerate = 10;
var one_second = 1000;
var interval = one_second*duration/framerate;
var totalframes = one_second*duration/interval;
var heightincrement = finalheight/totalframes;
var tween = function () {
y += heightincrement;
s.height = y+'px';
if (y
Fill out this registration and one of our consultants will be in touch to give a live product demo and answer any questions you may have!