// JavaScript Document

function orderNow(){
  var orderURL = 'https://www.securepaymentlink.com/ubm-vip-order-page-step-1/';
  window.onbeforeunload=null;
  window.location = orderURL;
}

function favoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("UltimateBuyingMachine","http://www.UltimateBuyingMachine.com/",""); }
else { window.external.AddFavorite("http://www.UltimateBuyingMachine.com/","UltimateBuyingMachine"); } }


function toggleview(element1) {

   element1 = document.getElementById(element1);

   if (element1.style.display == 'block' || element1.style.display == '')
      element1.style.display = 'none';
   else
      element1.style.display = 'block';

   return;
}


function showUnloading(evt){
evt.returnValue = "WAIT if you leave this page and the timer runs out you can never come back! Try it… Hit your refresh button and see that the timer does NOT reset!";
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
var timeLeft = (get_cookie("timeLeft").length > 0)?get_cookie("timeLeft"):1800;
timeLeft =  (timeLeft =="NaN")?0:timeLeft;

<!-- Count Down Script 1 -->

//var timeLeft = 1800;

Number.prototype.toMinutesAndSeconds = function() {
	var m = Math.floor(this / 60);
	var s = this % 60;
	return (m+":"+(s<10?"0":"")+s);
}
function _TDisplay() {}
_TDisplay.prototype.init = function(seconds, output, notify) {
	this.tot = seconds;
	this.out = output;
	this.not = notify;
	this.ii = setInterval(this.tick, 1000);
};
_TDisplay.prototype._tick = function() {
	this.out.innerHTML = (--this.tot).toMinutesAndSeconds();
	if(this.tot<=0) {
                this.tot = 1;
                this.out.innerHTML = (--this.tot).toMinutesAndSeconds();
		this.not.innerHTML = 'Time is up! Order Now!';
		clearInterval(this.ii);
	}
	if(this.tot == 600) {
		this.not.innerHTML = 'Just 10 Minutes To Go! Claim Yours NOW!';
	}
        set_cookie( 'timeLeft', this.tot, 2);
}
TDisplay = new _TDisplay();
_TDisplay.prototype.tick = function() {
	TDisplay._tick.call(TDisplay);
}
//otherwise
pre = (window.onload) ? window.onload : function () {};
window.onload = function () {
	pre();
	TDisplay.init(timeLeft, document.getElementById('countdown'), document.getElementById('notifier'));
        setTimeout("showIt()", 1000);
}
//Shows the Countdown after 1 second
function showIt() {
  document.getElementById("countdown_table").style.visibility = "visible";
}
<!-- End Count Down Script -->