function clr(what)
{
what.value = '';
}

function showhide(what)
{
if (what.style.display=='none'){
what.style.display='';
}
else{
what.style.display='none';
}
}

function change_color(what, color)
{
what.style.backgroundColor=color;
}

function nav_new()
   {
   var w = document.form_new.tara.selectedIndex;
   var url_add = document.form_new.tara.options[w].value;
   document.form_new.country.value = url_add;
   }
   
function nav_aliante()
   {
   var w = document.form_aliante.id_user.selectedIndex;
   var url_add = document.form_aliante.id_user.options[w].value;
   document.form_aliante.id1.value = url_add;
   }
   
function nav_sms()
   {
   var w = document.form_sms.id_user.selectedIndex;
   var url_add = document.form_sms.id_user.options[w].value;
   document.form_sms.id1.value = url_add;
   }
   
function spion_nav()
   {
   var w = document.spion.id_1.selectedIndex;
   var url_add = document.spion.id_1.options[w].value;
   document.spion.id1.value = url_add;
   }

function spion_nav2()
   {
   var w = document.spion.id_2.selectedIndex;
   var url_add = document.spion.id_2.options[w].value;
   document.spion.id2.value = url_add;
   }

function car_steal_nav()
   {
   var w = document.masini_fura.id_1.selectedIndex;
   var url_add = document.masini_fura.id_1.options[w].value;
   document.masini_fura.id1.value = url_add;
   }

var url = "http://www.devilpimps.com";
var title = "DeViL Pimps";
function makeLink()
{
if(document.all)
window.external.AddFavorite(url,title)
}

var popupwin = null;

if (!document.all) {
document.captureEvents (Event.CLICK);
}

document.onclick = function() {
if (popupwin != null && !popupwin.closed) {
popupwin.focus();
}
}


function countdown_bonus(year, month, day, hour, minute, time_difference, format)
         {
         Today = new Date();
         Todays_Year = Today.getYear() - 2000;
         Todays_Month = Today.getMonth() + 1;
                                             
         //Convert today's date and the target date into miliseconds.
         
         Todays_Date = (new Date(Todays_Year, Todays_Month, Today.getDate(),
                                 Today.getHours(), Today.getMinutes(), Today.getSeconds())).getTime();
         Target_Date = (new Date(year, month, day, hour, minute, 00)).getTime();
         
         //Find their difference, and convert that into seconds.
         //Taking into account the time differential between the client computer and the server.
         Time_Left = Math.round((Target_Date - Todays_Date + time_difference) / 1000);
         
         if(Time_Left == 0)
           {
		    // Time_Left = 0;
		    minute=minute+30;
		    if (minute==60)
		     {
		     minute=0;
		     hour=hour+1;
		     if (hour==24)
		      {
		       hour=0;
		       day=day+1;
		      }
		     }
		   }
         
         switch(format)
               {
               case 0:
                    //The simplest way to display the time left.
                    document.getElementById('countdown').innerHTML = Time_Left + ' seconds';
                    break;
               case 1:
                    //More datailed.
                    days = Math.floor(Time_Left / (60 * 60 * 24));
                    Time_Left %= (60 * 60 * 24);
                    hours = Math.floor(Time_Left / (60 * 60));
                    Time_Left %= (60 * 60);
                    minutes = Math.floor(Time_Left / 60);
                    Time_Left %= 60;
                    seconds = Time_Left;
                    
                    dps = 's'; hps = 's'; mps = 'e'; sps = 'e';
                    //ps is short for plural suffix.
                    if(days == 1) dps ='';
                    if(hours == 1) hps ='';
                    if(minutes == 1) mps ='';
                    if(seconds == 1) sps ='';
                    
				//	document.getElementById('countdown').innerHTML = days + ' day' + dps + ' ';
                //  document.getElementById('countdown').innerHTML += hours + ' hour' + hps + ' ';

                    document.getElementById('countdown').innerHTML = minutes + ' : ';
                    document.getElementById('countdown').innerHTML += seconds;
                    break;
			   case 2: document.getElementById('countdown').innerHTML = Time_Left; 
				    break;	
               default: 
                    document.getElementById('countdown').innerHTML = Time_Left;
               }
               
         //Recursive call, keeps the clock ticking.
         setTimeout('countdown_bonus(' + year + ',' + month + ',' + day + ',' + hour + ',' + minute + ',' + 
                     time_difference + ', ' + format + ');', 1000);
         }

