/*============selectionner et copier==============*/
function copy(theField) {
var tempval=eval("document."+theField)
tempval.focus();
tempval.select();
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="Le code HTML selectionné a été copié dans le presse-papiers !"
setTimeout("window.status=''",5000)
}
/*=======================Resize===================*/
if (parent != self) {top.location.href = self.location.href}
if (screen.availWidth > screen.Width-20)
{
self.moveTo(0,0); 
self.resizeTo(screen.availWidth,screen.availHeight);
}

/*======================DATE=====================*/
navvers = navigator.appVersion.substring(0,1);
if (navvers > 3)
	navok = true;
else
	navok = false;

today = new Date;
jour = today.getDay();
numero = today.getDate();
if (numero<10)
	numero = "0"+numero;
mois = today.getMonth();
if (navok)
	annee = today.getFullYear();
else
	annee = today.getYear();
TabJour = new Array("Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi");
TabMois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","d&eacute;cembre");
messageDate = TabJour[jour] + " " + numero + " " + TabMois[mois] + " " + annee;

/*======================Demarrage=====================*/
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.astro-direct.com');
	}

/*======================Favoris=====================*/
function signet_possible()
{
  if(!window.external)
    return false
  return true
}

function signet(reference, nom)
{
  if(!signet_possible())
  {
    alert("Cette fonction n'est pas prise en charge par votre navigateur!\n\n     Tapez CTRL + D")
    return
  }
  window.external.AddFavorite(reference, nom)
}

/*===========================Verification Email========================*/
function VerifForm()
        {
        adresse = document.ecrire.email.value;
        var place = adresse.indexOf("@",1);
        var point = adresse.indexOf(".",place+1);
        if ((place > -1)&&(adresse.length >2)&&(point > 1))
                {
                document.ecrire.submit();
                }
        else
                {
                alert('Votre adresse e-mail n\'est pas valide!!');
                }
        }

function Compter(Target, max, nomchamp)
	{
	StrLen = Target.value.length
	if (StrLen > max )
		{
		Target.value = Target.value.substring(0,max);
		CharsLeft = max;
		}
	else
		{
		CharsLeft = StrLen;
		}
	nomchamp.value = CharsLeft;
	}
	
/*===========================Verification Email2========================*/
function VerifForm2()
        {
        adresse = document.ecrire2.email2.value;
        var place = adresse.indexOf("@",1);
        var point = adresse.indexOf(".",place+1);
        if ((place > -1)&&(adresse.length >2)&&(point > 1))
                {
                document.ecrire2.submit();
                }
        else
                {
                alert('Votre adresse e-mail n\'est pas valide!!');
                }
        }

function Compter2(Target, max, nomchamp)
	{
	StrLen = Target.value.length
	if (StrLen > max )
		{
		Target.value = Target.value.substring(0,max);
		CharsLeft = max;
		}
	else
		{
		CharsLeft = StrLen;
		}
	nomchamp.value = CharsLeft;
	}
/*=========================Tronches des voyantes + popup ======================*/

var haut=(screen.height-180)/2;
var gauche=(screen.width-300)/2;
var hautconnect=(screen.height-200)/2;
var gaucheconnect=(screen.width-500)/2;


var img = new Array();
var txt = new Array();
var url= "connexion-voyance";

img[0] = "http://www.astro-direct.com/image-voyance/voyante/alexia.jpg";
txt[0] = "Alexia voyante";

img[1] = "http://www.astro-direct.com/image-voyance/voyante/aline.jpg";
txt[1] = "Aline tarologue";

img[2] = "http://www.astro-direct.com/image-voyance/voyante/angele.jpg";
txt[2] = "Angèle voyante";

img[3] = "http://www.astro-direct.com/image-voyance/voyante/angelina.jpg";
txt[3] = "Angelina voyante";

img[4] = "http://www.astro-direct.com/image-voyance/voyante/angelique.jpg";
txt[4] = "Angelique voyante";

img[5] = "http://www.astro-direct.com/image-voyance/voyante/carla.jpg";
txt[5] = "Carla Voyante";

img[6] = "http://www.astro-direct.com/image-voyance/voyante/carlos.jpg";
txt[6] = "Carlos astrologue";

img[7] = "http://www.astro-direct.com/image-voyance/voyante/fiona.jpg";
txt[7] = "Fiona Voyante";

img[8] = "http://www.astro-direct.com/image-voyance/voyante/georges.jpg";
txt[8] = "Georges voyant";

img[9] = "http://www.astro-direct.com/image-voyance/voyante/helena.jpg";
txt[9] = "Helena voyante";

img[10] = "http://www.astro-direct.com/image-voyance/voyante/irene.jpg";
txt[10] = "Irène voyante";

img[11] = "http://www.astro-direct.com/image-voyance/voyante/joelle.jpg";
txt[11] = "Joelle tarologue";

img[12] = "http://www.astro-direct.com/image-voyance/voyante/kojima.jpg";
txt[12] = "Kojima voyant";

img[13] = "http://www.astro-direct.com/image-voyance/voyante/natalie.jpg ";
txt[13] = "Nathalie voyante";

img[14] = "http://www.astro-direct.com/image-voyance/voyante/olga.jpg ";
txt[14] = "Olga tarologue";

img[15] = "http://www.astro-direct.com/image-voyance/voyante/rosalie.jpg";
txt[15] = "Rosalie voyante";

img[16] = "http://www.astro-direct.com/image-voyance/voyante/roxanne.jpg";
txt[16] = "Roxanne voyante";

img[17] = "http://www.astro-direct.com/image-voyance/voyante/saveria.jpg";
txt[17] = "Saveria voyante";

img[18] = "http://www.astro-direct.com/image-voyance/voyante/sheila.jpg";
txt[18] = "Sheila tarologue";

img[19] = "http://www.astro-direct.com/image-voyance/voyante/tatiana.jpg";
txt[19] = "Tatiana voyante";

img[20] = "http://www.astro-direct.com/image-voyance/voyante/thomas.jpg";
txt[20] = "Thomas voyant";

img[21] = "http://www.astro-direct.com/image-voyance/voyante/virginie.jpg";
txt[21] = "Virginie voyante";
/*
img[22] = "http://www.astro-direct.com/image-voyance/voyante/";
txt[22] = "";


img[] = "http://www.astro-direct.com/image-voyance/voyante/";
txt[] = "";
*/