
var whysurvey="true";

SessionCookies();

function DoNothing(){};
function MoreInfo(){};
function FrequentlyAskedQuestions(){};

function QuickTour() {
  qt = window.open("quicktour.html","QuickTour","width=660,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,scrollbars=no,top=10,left=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.qt) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShot() {
  ss = window.open("screenshot.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShotSubmitter1() {
  ss = window.open("screenshot_se.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShotSubmitter2() {
  ss = window.open("screenshot_se2.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShotSubmitter3() {
  ss = window.open("screenshot_se3.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShotArticleBlaster() {
  ss = window.open("screenshot_ab.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function ScreenShotPressReleaseSubmitter() {
  ss = window.open("screenshot_pr.html","ScreenShot","width=765,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,ZZtop=10,ZZleft=50,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ss) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}

function ContactUs() {
  cu = open("contactus.html","ContactUs","width=610,height=480,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,top=20,left=80,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.cu) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function Certifications() {
  cert = open("certifications.html","Certifications","width=600,height=450,toolbar=no,location=no,directories=no,status=no,menubar=yes,resizable=yes,copyhistory=no,scrollbars=yes,top=20,left=80,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.cert) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function PrivacyStatement() {
  ps = open("privacystatement.html","PrivacyStatement","width=540,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,top=35,left=95,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.ps) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function GoogleReportOffer() {
  gr = open("googlereportoffer.html","GoogleReportOffer","width=540,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,top=35,left=95,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.gr) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}
function GoogleVideoOffer() {
  gv = open("googlevideooffer.html","GoogleVideoOffer","width=540,height=440,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,top=35,left=95,alwaysRaised=yes,marginwidth=0,marginheight=0");
  if (!window.gv) { alert("\nThis popup window was blocked from opening.  \n\nPlease disable your popup blocker."); }
}


function IndustryEndorsement() {
   // if (!SessionCookies()) exit;
   if(document.all)
      showModalDialog('testimonial_sc.html',window,'resizable:1; help:0; status:no; scroll:no'); 
   else
      eval('window.open("testimonial_sc.html","testimonialsc","width=580,height=350,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,top=30,left=10,alwaysRaised=yes,marginwidth=0,marginheight=0")');
}
function LTO() {
   if(document.all) {
      var exit=false;
      showModalDialog('ltooffer.html',window,'resizable:1; help:0; status:no; scroll:no');
   }
   else {
      eval('window.open("ltooffer.html","lto","width=660,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,top=30,left=10,alwaysRaised=yes,marginwidth=0,marginheight=0")');
   }
}


var exit=true;

function WhySurvey() {
   if (exit) {
        if(document.all)
           showModalDialog('whysurvey.html',window,'resizable:1; help:0; status:no; scroll:no');
        else
           eval('window.open("whysurvey.html","whysurvey","width=550,height=294,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=no,top=30,left=10,alwaysRaised=yes,marginwidth=0,marginheight=0")');
   }
}

function ByeBye() {
   if (exit) 
   open("lastchance.html","LastChance","width=640,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,copyhistory=no,scrollbars=yes,alwaysRaised=yes,marginwidth=0,marginheight=0");
}





// document.cookie="lto=null";
// document.cookie="endorsement=null";

var popups = "";

if (  (SessionCookies()) && (popups) && (get_cookie("endorsement") != "yes") ) {
     var sleepminutes1 = 0.1;
     var sleep1=sleepminutes1*60*1000;
     setTimeout("IndustryEndorsement();",sleep1);
     setSawEndorsement(); 
}

if (  (SessionCookies()) && (popups) && (get_cookie("lto") != "yes") ) {
     var sleepminutes2 = 0.1;
     var sleep2=sleepminutes2*60*1000;
     setTimeout("LTO();",sleep2);
     setSawLTO(); 
}

function setSawLTO() { 
    // using session cookies
	document.cookie="lto=yes";
}
function unsetSawLTO() {
    // using session cookies
	document.cookie="lto=null"; 
}
function showSawLTO() {
    // using session cookies
    var varLTO=get_cookie("lto");
	alert("lto cookie value:" + varLTO);
}
function setSawEndorsement() { 
    // using session cookies
	document.cookie="endorsement=yes";
}
function unsetSawEndorsement() {
    // using session cookies
	document.cookie="endorsement=null";
}
function showSawEndorsement() {
    // using session cookies
    var varEndorsement=get_cookie("endorsement");
	alert("endorsement cookie value:" + varEndorsement);
}


function SessionCookies() {
  document.cookie="testcookie=yes"; 
  if (get_cookie("testcookie")=="yes") return "true";
  else return "";
}


// Session cookies

function get_cookie(Name) {
    var search = Name + "="
    var returnvalue = "";
    if (document.cookie.length > 0) {
         offset = document.cookie.indexOf(search)
         // if cookie exists
         if (offset != -1) { 
              offset += search.length
              // set index of beginning of value
              end = document.cookie.indexOf(";", offset);
              // set index of end of cookie value
              if (end == -1) end = document.cookie.length;
              returnvalue=unescape(document.cookie.substring(offset, end))
         }
    }
    return returnvalue;
}



// pt = window.open
// var expDays = 1; 
// var exp = new Date(); 
// exp.setTime(exp.getTime() + (expDays*24*60*60*1000));


function bold_font(thetext) {
   
   date = new Date();
   var day_of_week_number = date.getDay();
   var day = date.getDate();   
   var month_number = date.getMonth();
   var day_of_week = '';
   var month = ''
   
   end = "th";
   if (day==1 || day==21 || day==31) end="st";
   if (day==2 || day==22) end="nd";
   if (day==3 || day==23) end="rd";
   day+=end;

   if(month_number == 0){month = 'January';}
   if(month_number == 1){month = 'February';}
   if(month_number == 2){month = 'March';}
   if(month_number == 3){month = 'April';}
   if(month_number == 4){month = 'May';} 
   if(month_number == 5){month = 'June';}
   if(month_number == 6){month = 'July';}
   if(month_number == 7){month = 'August';}
   if(month_number == 8){month = 'September';}
   if(month_number == 9){month = 'October';}
   if(month_number == 10){month = 'November';}
   if(month_number == 11){month = 'December';}

   if(day_of_week_number == 0){day_of_week = 'Sunday';}
   if(day_of_week_number == 1){day_of_week = 'Monday';}
   if(day_of_week_number == 2){day_of_week = 'Tuesday';}
   if(day_of_week_number == 3){day_of_week = 'Wednesday';}
   if(day_of_week_number == 4){day_of_week = 'Thursday';}
   if(day_of_week_number == 5){day_of_week = 'Friday';}
   if(day_of_week_number == 6){day_of_week = 'Saturday';}

   var expirationdate = day_of_week + ', ' + month + ' ' + day; 

   document.write(expirationdate);
 
}



