sold_today = 0;
function unlock(){
  now = new Date();
  hour = now.getHours() * 171;
  min = now.getMinutes();
  sold2 = hour + min;
  sold_today = sold2;
  document.getElementById('sold').innerHTML = sold2;
}
function order_redirect(){
	//used on why not popup
	PreventExitSplash = true;
	location.href = "http://www.unlock-the-iphone.com/purchase.php";
}
function popUp(){
	//used on why not popup
	w = 500;
	h = 550;
	var left = (screen.width/2)-(w/2);
	var top = (screen.height/2)-(h/2);
	window.open ("why_us.php", "why_us", 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width='+w+', height='+h+', top='+top+', left='+left);
}
function unlock2(){
 var sold_until_now = 1375129;
 var days = 0;
 var difference = 0;
 start = new Date("December 1, 2009");
 today = new Date();
 difference = today - start;
 days = Math.round(difference/(1000*60*60*24));

  now = new Date();
  hour = now.getHours() * 171;
  min = now.getMinutes();
  sold2 = hour + min;
  document.getElementById('sold_total').innerHTML = addCommas(sold_until_now+(days*450)+sold_today);
}
function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}
function downSell(){
	var exitsplashmessage = '***************************************\n\n W A I T ! 	B E F O R E 	Y O U 	G O !\n\n CLICK THE *CANCEL* BUTTON RIGHT NOW\n\n TO GET A HUGE DISCOUNT OF 75% OFF! \n\n---------- PAY ONLY $19 ---------- \n\n THIS DISCOUNT IS ONLY OFFERED ONCE SO TAKE ADVANTAGE NOW!!\n\n***************************************';
	var exitsplashpage = 'https://usd.swreg.org/cgi-bin/s.cgi?s=103213&p=103213-7&v=0&d=0&q=1';
	function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }}}
	function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } }
	var theDiv = '<div id="ExitSplashDiv" onmouseover="javascript:hideexitcancelbuttonimage();StopExitImpactAudio();" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';
	theDiv = theDiv + '<div id="ExitCancelButtonImageDiv" style="background: #ffffff; width: 100%;" align="left"><img src="https://usd.swreg.org/soft_shop/templates/103213/exitbutton.gif" border="0"></div>';
	theDiv = theDiv + '<div onmouseover="this.style.background=\'#FFFFFF\'; document.getElementById(\'exitsplashlink\').style.color=\'#0000FF\'" onmouseout="this.style.background=\'#3399cc\'; document.getElementById(\'exitsplashlink\').style.color=\'#FFFFFF\'" style="padding-top:0px; padding-left:0px; margin-top:0px; margin-left:0px; background:#3399cc; width: 100%; height: 80px; text-align:center;"><span id="exitsplashlink" style="font-family: Arial; font-size: 16px; font-weight: bold; color: rgb(255, 255, 255);"><br/>Take Advantage of the SPECIAL DISCOUNT below!<br>SAVE OVER 75% IF YOU PURCHASE NOW!</span></div>';
	theDiv = theDiv + '<div id="exitsplashimpactaudio"><embed wmode="transparent" src="https://www.plimus.com/developers/318586/player.swf?url=https://www.plimus.com/developers/318586/exit.mp3&mode=play&autostart=true&exit4b0d8664795ff" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></div>';
	theDiv = theDiv + '<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';
	theDiv = theDiv + '</div>';
	theBody = document.body; if (!theBody) {theBody = document.getElementById("body"); if (!theBody) {theBody = document.getElementsByTagName("body")[0];}}
	var PreventExitSplash = false;
	function DisplayExitSplash() {
		if (PreventExitSplash == false) 
		{
			window.scrollTo(0, 0); PreventExitSplash = true;
			divtag = document.createElement("div");
			divtag.setAttribute("id", "ExitSplashMainOuterLayer");
			divtag.style.position = "absolute"; divtag.style.width = "100%";
			divtag.style.height = "100%"; divtag.style.zIndex = "99";
			divtag.style.left = "0px"; divtag.style.top = "0px";
			divtag.innerHTML = theDiv; theBody.innerHTML = "";
			theBody.topMargin = "0px";
			theBody.rightMargin = "0px";
			theBody.bottomMargin = "0px";
			theBody.leftMargin = "0px";
			theBody.style.overflow = "hidden";
			theBody.appendChild(divtag);
			return exitsplashmessage; 
		} 
	}
	
	var a = document.getElementsByTagName('A');
	for (var i = 0; i < a.length; i++) 
	{
		if (a[i].target !== '_blank') 
		{
				if (a[i].rel !== 'ShowVSAChat') {
				addClickEvent(a, i, function() { PreventExitSplash = true; });
				}else{
									addClickEvent(a, i, function() { PreventExitSplash = false; }); 
				}
		} else { addClickEvent(a, i, function() { 
		PreventExitSplash = false; }); }
	}
	var aa = document.getElementsByTagName('AREA');
	for (var i = 0; i < aa.length; i++) 
	{
		addClickEvent(aa, i, function() { PreventExitSplash = true; });
	}
	
	disablelinksfunc = function() {
		var a = document.getElementsByTagName('A');
		for (var i = 0; i < a.length; i++) 
		{
			if (a[i].target !== '_blank') 
			{
				if (a[i].rel !== 'ShowVSAChat') {
				addClickEvent(a, i, function() { PreventExitSplash = true; });
				}else{
									addClickEvent(a, i, function() { PreventExitSplash = false; }); 
				}
			} else 
			{
				addClickEvent(a, i, function() { PreventExitSplash = false; }); 
			} 
		}
	}
	
	hideexitcancelbuttonimage = function(){ document.getElementById('ExitCancelButtonImageDiv').style.display='none'; }
	StopExitImpactAudio = function(){ var esDiv = document.getElementById('ExitSplashDiv'); var esiaDiv = document.getElementById('exitsplashimpactaudio'); esDiv.removeChild(esiaDiv); }
	addLoadEvent(disablelinksfunc);

	var f = document.getElementsByTagName('input'); 
		for (var i=0;i<f.length;i++){ 
			if (f[i].type == "image"){ 
				f[i].onclick=function(){ PreventExitSplash=true; }
						//alert(f[i]);
			}
		}

	disableformsfunc = function(){ var f = document.getElementsByTagName('FORM'); for (var i=0;i<f.length;i++){ if (!f[i].onclick){ f[i].onclick=function(){ PreventExitSplash=true; } }else if (!f[i].onsubmit){ f[i].onsubmit=function(){ PreventExitSplash=true; }}}}
	addLoadEvent(disableformsfunc);
	window.onbeforeunload = DisplayExitSplash;
}

function downSell2(){
	var exitsplashmessage = '***************************************\n\n W A I T ! 	B E F O R E 	Y O U 	G O !\n\n CLICK THE *CANCEL* BUTTON RIGHT NOW\n\n TO GET A HUGE DISCOUNT OF 75% OFF! \n\n---------- PAY ONLY $19 ---------- \n\n THIS DISCOUNT IS ONLY OFFERED ONCE SO TAKE ADVANTAGE NOW!!\n\n***************************************';
	var exitsplashpage = 'https://usd.swreg.org/cgi-bin/s.cgi?s=103213&p=103213-7&v=0&d=0&q=1';
	function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }}}
	function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } }
	var theDiv = '<div id="ExitSplashDiv" onmouseover="javascript:hideexitcancelbuttonimage();StopExitImpactAudio();" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';
	theDiv = theDiv + '<div id="ExitCancelButtonImageDiv" style="background: #ffffff; width: 100%;" align="left"><img src="https://usd.swreg.org/soft_shop/templates/103213/exitbutton.gif" border="0"></div>';
	theDiv = theDiv + '<div onmouseover="this.style.background=\'#FFFFFF\'; document.getElementById(\'exitsplashlink\').style.color=\'#0000FF\'" onmouseout="this.style.background=\'#3399cc\'; document.getElementById(\'exitsplashlink\').style.color=\'#FFFFFF\'" style="padding-top:0px; padding-left:0px; margin-top:0px; margin-left:0px; background:#3399cc; width: 100%; height: 80px; text-align:center;"><span id="exitsplashlink" style="font-family: Arial; font-size: 16px; font-weight: bold; color: rgb(255, 255, 255);"><br/>Take Advantage of the SPECIAL DISCOUNT below!<br>SAVE OVER 75% IF YOU PURCHASE NOW!</span></div>';
	theDiv = theDiv + '<div id="exitsplashimpactaudio"><embed wmode="transparent" src="https://www.plimus.com/developers/318586/player.swf?url=https://www.plimus.com/developers/318586/exit.mp3&mode=play&autostart=true&exit4b0d8664795ff" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="1" height="1"></embed></div>';
	theDiv = theDiv + '<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';
	theDiv = theDiv + '</div>';
	theBody = document.body; if (!theBody) {theBody = document.getElementById("body"); if (!theBody) {theBody = document.getElementsByTagName("body")[0];}}
	var PreventExitSplash = false;
	function DisplayExitSplash() {
		if (PreventExitSplash == false) 
		{
			window.scrollTo(0, 0); PreventExitSplash = true;
			divtag = document.createElement("div");
			divtag.setAttribute("id", "ExitSplashMainOuterLayer");
			divtag.style.position = "absolute"; divtag.style.width = "100%";
			divtag.style.height = "100%"; divtag.style.zIndex = "99";
			divtag.style.left = "0px"; divtag.style.top = "0px";
			divtag.innerHTML = theDiv; theBody.innerHTML = "";
			theBody.topMargin = "0px";
			theBody.rightMargin = "0px";
			theBody.bottomMargin = "0px";
			theBody.leftMargin = "0px";
			theBody.style.overflow = "hidden";
			theBody.appendChild(divtag);
			return exitsplashmessage; 
		} 
	}
	
	var a = document.getElementsByTagName('A');
	for (var i = 0; i < a.length; i++) 
	{
		if (a[i].target !== '_blank') 
		{
			if (a[i].rel !== 'ShowVSAChat') {
				addClickEvent(a, i, function() { PreventExitSplash = true; });
			}
		} else { addClickEvent(a, i, function() { 
		PreventExitSplash = false; }); 
		}
	}
	var aa = document.getElementsByTagName('AREA');
	for (var i = 0; i < aa.length; i++) 
	{
		addClickEvent(aa, i, function() { PreventExitSplash = true; });
	}
	
	disablelinksfunc = function() {
		var a = document.getElementsByTagName('A');
		for (var i = 0; i < a.length; i++) 
		{
			if (a[i].target !== '_blank') 
			{
			if (a[i].rel !== 'ShowVSAChat') {
				addClickEvent(a, i, function() { PreventExitSplash = true; });
			}
			} else 
			{
				addClickEvent(a, i, function() { PreventExitSplash = false; }); 
			} 
		}
	}
	
	hideexitcancelbuttonimage = function(){ document.getElementById('ExitCancelButtonImageDiv').style.display='none'; }
	StopExitImpactAudio = function(){ var esDiv = document.getElementById('ExitSplashDiv'); var esiaDiv = document.getElementById('exitsplashimpactaudio'); esDiv.removeChild(esiaDiv); }
	addLoadEvent(disablelinksfunc);

	var f = document.getElementsByTagName('input'); 
		for (var i=0;i<f.length;i++){ 
			if (f[i].type == "image"){ 
				f[i].onclick=function(){ PreventExitSplash=true; }
						//alert(f[i]);
			}
		}

	disableformsfunc = function(){ var f = document.getElementsByTagName('FORM'); for (var i=0;i<f.length;i++){ if (!f[i].onclick){ f[i].onclick=function(){ PreventExitSplash=true; } }else if (!f[i].onsubmit){ f[i].onsubmit=function(){ PreventExitSplash=true; }}}}
	addLoadEvent(disableformsfunc);
}


document.write(unescape("%3Cbody%20topmargin%3D%220%22%20leftmargin%3D%220%22%20bgcolor%3D%22%23000000%22%20oncontextmenu%3D%22return%20false%3B%22%20ondragstart%3D%22return%20false%3B%22%20onselectstart%3D%22return%20false%3B%22%3E%0A%3Cdiv%20align%3D%22center%22%20style%3D%22padding%3A0px%22%3E%0A%3Ctable%20border%3D%220%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20width%3D%22100%25%22%20style%3D%22background-image%3A%20url%28http%3A//www.unlock-the-iphone.com/images/header_back.jpg%29%3B%20background-repeat%3Arepeat-x%22%3E%0A%20%20%3Ctr%3E%0A%20%20%20%20%3Ctd%20align%3D%22center%22%3E%3Ctable%20border%3D%220%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%20width%3D%221007%22%3E%0A%20%20%20%20%20%20%20%20%20%20%3Ctr%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Ctd%20width%3D%2250%22%3E%3C/td%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Ctd%20width%3D%22350%22%3E%3Ca%20href%3D%22/index.php%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/iphone_unlock_logo.jpg%22%20alt%3D%22Unlock%20The%20iPhone%20-%20Over%202%20Million%20Unlocks%20Sold%21%22%20width%3D%22317%22%20height%3D%2284%22%20border%3D%220%22%20title%3D%22Unlock%20The%20iPhone%20-%20Over%201%20Million%20Unlocks%20Sold%21%22%20/%3E%3C/a%3E%3C/td%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Ctd%20width%3D%22607%22%20align%3D%22center%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/slogan_header.jpg%22%20alt%3D%22Voted%20%231%20iPhone%20Unlocking%20Software%20by%20Apple%20iPhone%20Users%22%20width%3D%22378%22%20height%3D%2284%22%20title%3D%22Voted%20%231%20iPhone%20Unlocking%20Software%20by%20Apple%20iPhone%20Users%22%3E%3C/td%3E%0A%20%20%20%20%20%20%20%20%20%20%3C/tr%3E%0A%20%20%20%20%20%20%3C/table%3E%3C/td%3E%0A%20%20%3C/tr%3E%0A%20%20%3Ctr%3E%0A%20%20%20%20%3Ctd%20align%3D%22center%22%20background%3D%22http%3A//www.unlock-the-iphone.com/images/menubg.jpg%22%3E%3Ca%20href%3D%22/%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu2.jpg%22%20border%3D%220%22%20%3E%3C/a%3E%3Ca%20href%3D%22/faq.php%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu3.jpg%22%20border%3D%220%22%20%3E%3C/a%3E%3Ca%20href%3D%22/reviews.php%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu4.jpg%22%20border%3D%220%22%20%3E%3C/a%3E%3Ca%20href%3D%22/purchase.php%22%20rel%3D%22nofollow%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu5.jpg%22%20border%3D%220%22%20%3E%3C/a%3E%3Ca%20href%3D%22/contact.php%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu6.jpg%22%20border%3D%220%22%20%3E%3C/a%3E%3Ca%20href%3D%22/members%22%3E%3Cimg%20src%3D%22http%3A//www.unlock-the-iphone.com/images/menu7.jpg%22%20border%3D%220%22%3E%3C/a%3E%3C/td%3E%0A%20%20%3C/tr%3E%0A%20%20%3Ctr%3E%0A"));