//variable pour l'effacement du texte dans le moteur de recherche
var erased_annu = false;

// on compte les clics
function clic(id,cs) 
{ 
if(document.images) 
(new Image()).src="out.php?id=" + id + "&cs=" + cs ; 
return true; 
} 

// on compte les clics
function promo(id) 
{ 
if(document.images) 
(new Image()).src="out2.php?id=" + id; 
return true; 
} 

//on enleve les erreurs eventuelles
function no_error()
{ return true; }
window.onerror = no_error;

// Quick Bookmark Function
function addbookmark()
{
    var bookmarktitle = "Qsexe.com - Gay Videos WebTV Photos ! ";
    var bookmarkurl = "http://www.qsexe.com";
    window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function open_popup(page,hauteur,largeur)
//ouvre une popup
{ window.open(page,"Popup","status=no,scrollbars=yes,resizable=no,height="+hauteur+",width="+largeur+",top=0,left=0"); }

function confirm_delete(page, texte)
//demande une confirmation avant de supprimer un site ou une categorie
{
	confirmation = confirm('Etes vous sur de vouloir supprimer '+texte+' ? ');
	if(confirmation)
		window.location.replace(page);
}

function message_annu_status(message)
//affiche un texte dans la barre de statut du navigateur
{ window.status = message; }

function check_id_cat()
//verifie si on a bien selectionner une categorie dans la liste deroulante
{
	if (document.form2submit.id_cat.value == 0)
	{
		alert('Veuillez sélectionner une catégorie !');
		return false;
	}
	else
	{ return true; }
}

function jump(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;}

function go(url,n,w,h) {
window.open(url,n,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h);
}

function killer(v)   
{ 
     if(v==1)    
     {    
		window.location.replace(window.location.href);
     }  
} 

function get(gndd,gurl,gnom,gclass,gid,gcs,gin,gout){
document.write("<a href=\""+gurl+"\" onclick=\"clic("+gid+","+gcs+")\" target=_blank class=\""+gclass+"\" onMouseOver=\"window.status='"+gndd+" - in:"+gin+" out:"+gout+"';return true;\" onMouseOut=\"window.status='';return true;\">"+gnom+"</a>");
}
function get2(gurl,gnom,gclass){
document.write("<a href=\""+gurl+"\" class=\""+gclass+"\">"+gnom+"</a>");
}

function getImg(u){
document.write("<img src=\""+u+"\" border=0 width=10 height=10> ");
}
function getTop(u,n,i,nn)
{
document.write("<img src=\"img/goo.gif\"> <a href=\""+u+"\" target=\"_blank\" class=\"small\" title=\""+nn+" - "+"in:"+i+"\">"+n+"</a><br>");
}
