Please correct your inputs below ' +
'and resubmit again. All fields are required.
';
document.getElementById('qwrap').innerHTML = hErrMsg;
//timerClose(10);
}
}
}
var cTInerval = 0;
var cTimer = 0;
function timerClose(t) {
cTimer = t;
document.getElementById('ctimer').innerHTML = cTimer;
cTInerval = setInterval('updateTimer()', 1000);
}
function updateTimer() {
cTimer = cTimer - 1
document.getElementById('ctimer').innerHTML = cTimer;
if (!cTimer) {
clearInterval(cTInerval);
closeABox('sbox');
closeABox('sbox2');
}
}
function showLoader() {
eWrap = document.getElementById('qwrap');
hLoader = '
' +
'
Submitting your answers. Please wait...
';
eWrap.innerHTML = hLoader;
}
function closeABox(wrapId) {
eSBox = document.getElementById(wrapId);
eSBox.style.display = 'none';
Set_Cookie('aweber_stop', 1, 24, '/', '', '');
}
function createCookie(name,value,hours) {
if (hours) {
var date = new Date();
date.setTime( date.getTime() + (hours*60*60*1000) );
var expires = "; expires="+date.toGMTString();
}
else expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function processData() {
//eFawrap = document.getElementById('fawrap');
//eFawrap.innerHTML = '';
document.getElementById('receiver').setAttribute('stat', 'submitted');
if (document.getElementById('tOthers')) {
document.getElementById('Others').value = document.getElementById('tOthers').value;
}
showLoader();
};
function setupBox() {
iLoader = new Image(); //preloading
iLoader.src = '/aweber_cheapdivorce/images/loading.gif';
hSurveyBox = '
';
document.write(hSurveyBox);
showQuestions();
}
function startAweber() {
setupBox();
}
function Set_Cookie( name, value, expires, path, domain, secure )
{
var today = new Date();
today.setTime( today.getTime() );
if ( expires )
{
expires = expires * 1000 * 60 * 60; // * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
}
function Get_Cookie( check_name ) {
var a_all_cookies = document.cookie.split( ';' );
var a_temp_cookie = '';
var cookie_name = '';
var cookie_value = '';
var b_cookie_found = false; // set boolean t/f default f
for ( i = 0; i < a_all_cookies.length; i++ )
{
a_temp_cookie = a_all_cookies[i].split( '=' );
cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
if ( cookie_name == check_name )
{
b_cookie_found = true;
if ( a_temp_cookie.length > 1 )
{
cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
}
return cookie_value;
break;
}
a_temp_cookie = null;
cookie_name = '';
}
if ( !b_cookie_found )
{
return null;
}
}
function Delete_Cookie( name, path, domain ) {
if ( Get_Cookie( name ) ) document.cookie = name + "=" +
( ( path ) ? ";path=" + path : "") +
( ( domain ) ? ";domain=" + domain : "" ) + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
//Delete_Cookie('aweber_stop', '/', '');
startAweber();