Test
var sid = '120462_303451';
var vsscript_id = "120462_303451";
if (typeof window.vs_get_rnd_num === 'undefined') {
window.vs_get_rnd_num = function() {
return Math.floor(Math.random()*(1000000-1+1)+1);
}
}
var vs_widget_width = '900px';
var vs_hash = window.location.hash;
var vs_hsh = (window.location.hash).replace('#','');
var vs_ref = encodeURIComponent(document.referrer);
var vs_source_url = encodeURIComponent(window.location.href);
if (window.top != window.self) { vs_source_url = ''; }
var vss_hsh = vs_get_cookie('vsrfid');
if (vss_hsh!='') { vs_hsh = vss_hsh; }
var vs_rnd_num = vsscript_id;
var vs_default_email = '';
var vs_default_auto_submit = '';
var vs_default_order_id = '';
var vs_default_fname = '';
var vs_default_lname = '';
var vs_default_phone = '';
var vs_default_language = '';
var vs_default_code = '';
var vs_eid_hash = vs_get_cookie('eid_120462');
if (typeof vs_no_cookie!='undefined') { vs_eid_hash ='off'; }
if (typeof vs_email!='undefined') { vs_default_email = encodeURIComponent(vs_email); }
if (typeof vs_auto_submit!='undefined') { vs_default_auto_submit = 'true'; }
if (typeof vs_order_id!='undefined') { vs_default_order_id = vs_order_id; }
if (typeof vs_first_name!='undefined') { vs_default_fname = vs_first_name; }
if (typeof vs_last_name!='undefined') { vs_default_lname = vs_last_name; }
if (typeof vs_phone!='undefined') { vs_default_phone = vs_phone; }
if (typeof vs_language!='undefined') { vs_default_language = vs_language; }
if (typeof vs_code!='undefined') { vs_default_code = vs_code; }
function vs_is_explorer()
{
var ua = window.navigator.userAgent;
var msie = ua.indexOf("MSIE ");
if (msie > 0 || !!navigator.userAgent.match(/Trident.*rv\:11\./)) { return true; }
if (/Edge\/\d./i.test(navigator.userAgent)){ return true; }
return false;
}
if (typeof window.URLSearchParams != 'undefined')
{
var urlParams = new URLSearchParams(window.location.search);
var url_email = urlParams.get('vs_email');
if (url_email!='' && url_email!=null){ vs_default_email = url_email; }
var url_first_name = urlParams.get('vs_first_name');
if (url_first_name!='' && url_first_name!=null){ vs_default_fname = url_first_name; }
var url_last_name = urlParams.get('vs_last_name');
if (url_last_name!='' && url_last_name!=null){ vs_default_lname = url_last_name; }
}
function vs_scroll_to(eleID)
{
setTimeout( function() {
var sp = document.documentElement.scrollTop || document.body.scrollTop;
var element = document.getElementById(eleID);
if (!!element && element.scrollIntoView) {
element.scrollIntoView();
}
}, 10);
}
var http_var = 'https://';
var vs_frame_code = '';
vs_frame_code+= '';
var new_node = document.createElement("div");
new_node.innerHTML = vs_frame_code;
var script_element = document.getElementById('vsscript_'+vsscript_id);
script_element.parentNode.insertBefore(new_node, script_element.nextSibling);
var vs_get_distance = function ( elem ) { var location = 0; if (elem!= null && elem.offsetParent) { do { location += elem.offsetTop; elem = elem.offsetParent; } while (elem); } return location >= 0 ? location : 0; };
function vs_in_iframe() { try { return window.self !== window.top; } catch (e) { return true; } }
document.addEventListener('scroll', function (event) {
if (vs_in_iframe()) { var top = 0; var location = 0; } else { var doc = document.documentElement, body = document.body; var top = (doc && doc.scrollTop || body && body.scrollTop || 0); var elem = document.querySelector('#vs_widget_frame_vs_120462_' + vs_rnd_num); var location = vs_get_distance( elem ); }
var json = {"parent_top": top, "parent_position": location};
if (elem!=null) elem.contentWindow.postMessage(json, "*");
});
function vs_prefill_field(name,value)
{
var elem = document.querySelector('#vs_widget_frame_vs_120462_' + vs_rnd_num);
var data = JSON.stringify({ name: name, value: value })
var json = {"prefill": data};
if (elem!=null) elem.contentWindow.postMessage(json, "*");
}
function vs_set_cookie(cname,cvalue,ce)
{
if (ce<0) { return; }
var d = new Date();
ce = parseInt(ce);
d.setTime(d.getTime()+(ce*1000));
var expires = "expires="+d.toGMTString();
document.cookie = cname + "=" + cvalue + "; " + expires + ';path=/';
}
function vs_get_cookie(cname)
{
var name = cname + "=";
var ca = document.cookie.split(';');
for(var i=0; i