var tx_Horaire_SMIC = 8.81;


var txpublic = 15908.78;

var tranch1 = [400,20,199];
var tranch2 = [500,200,749];
var tranch3 = [600,750,100000000];
var tranche_Contribution = [tranch1,tranch2,tranch3] ;
var nbSalarie;
var obligationEmb;
var typeServ;
var typeCli;
var thEmployes;
var uniteManquante;
var tranche;
var tot;
var nbUnite;
var mtoptimal;
var contriRestant;
var sommeDimi;
var pourcentDimi;

var matiere;
var sstraitantce;
var moinSous;
var caMOConfie;
var equivalentU;
var volumeAffaireCours;
var reducAffaire;
var reducAffairePourcent;

function calculAGEFIPH()
{
	
	if (document.getElementById('nbSalarie').value !='' && parseInt(document.getElementById('nbSalarie').value) > 19  && document.getElementById('thEmployes').value != '')
	{
		nbSalarie = parseInt(document.getElementById('nbSalarie').value);

		obligationEmb = Math.round(nbSalarie * 0.06);
		
		if (document.getElementById('trait').checked)
			typeServ = 'sstt';
		else
			typeServ = 'miseaDispo';
			
		if (document.getElementById('typeEnt').checked)
			typeCli = 'public';
		else
			typeCli = 'prive';
			
		document.getElementById('obligationEmb').value = obligationEmb;
		
		thEmployes = parseInt(document.getElementById('thEmployes').value);
		
		uniteManquante = obligationEmb - thEmployes;
		document.getElementById('uniteManquante').value = uniteManquante;
		
		taille = tranche_Contribution.length;
		for (i=0; i<taille; i++) {
			if (tranche_Contribution[i][1] <= nbSalarie  && tranche_Contribution[i][2] >=  nbSalarie)
			{
				tranche = tranche_Contribution[i][0];
				document.getElementById('tranche').value = tranche;
			}			
		}
		
		//------------------------- Calcul contribution dûe --------------------------
		tot = tranche * tx_Horaire_SMIC * uniteManquante;
		if (tot<0)
			tot = 0;
			
		document.getElementById('contribution').value = (Math.round(tot*100) / 100)+' €';
		//----------------------------------------------------------------------------
		
		//------------------- Calcul nombre d'unités compensables --------------------
		if ((obligationEmb/2) > uniteManquante)
			nbUnite = uniteManquante;
		else
			nbUnite = obligationEmb/2;
			
		document.getElementById('nbUnite').value = nbUnite;
		//----------------------------------------------------------------------------
		
		//--------------------------- Calcul montant optimal -------------------------
		if ( typeCli == "public")
			mtoptimal = nbUnite * txpublic;
		else
		{
			if (typeServ == 'sstt')
				mtoptimal = nbUnite * 2000 * tx_Horaire_SMIC;
			else
				mtoptimal = nbUnite * 1600 * tx_Horaire_SMIC;
		}	
		if (mtoptimal<0)
			mtoptimal = 0;
		document.getElementById('mtOptimal').value = (Math.round(mtoptimal*100) / 100)+' €';
		//----------------------------------------------------------------------------
		
		//------------------------ Calcul contribution restante ----------------------
		contriRestant = (obligationEmb-thEmployes-nbUnite) * tranche * tx_Horaire_SMIC;
		
		if (contriRestant<0)
			contriRestant = 0;
		document.getElementById('contriRestant').value = (Math.round(contriRestant*100) / 100)+' €';
		//----------------------------------------------------------------------------
		
		//------------------------------ Calcul somme --------------------------------
		sommeDimi = nbUnite * (tranche * tx_Horaire_SMIC);
		
		if (sommeDimi<0)
			sommeDimi = 0;
		document.getElementById('sommeDimi').value = (Math.round(sommeDimi*100) / 100)+' €';
		//----------------------------------------------------------------------------
		
		//------------------------------ Calcul pourcent --------------------------------
		if (sommeDimi==0)
			pourcentDimi = 0;
		else
			pourcentDimi = (sommeDimi / mtoptimal) *100;
	
		document.getElementById('pourcentDimi').value = (Math.round(pourcentDimi*10)/ 10)+' %';
		//----------------------------------------------------------------------------
		
		
		document.getElementById('vide_thEmployes').style.display = 'none';
		document.getElementById('vide_nbSalaries').style.display = 'none';
		document.getElementById('dessou_nbSalaries').style.display = 'none';
		
		document.getElementById('valider2').style.display = 'block';
	}
	else
	{	
		document.getElementById('vide_nbSalaries').style.display = 'none';
		document.getElementById('dessou_nbSalaries').style.display = 'none';
		document.getElementById('vide_thEmployes').style.display = 'none';
		
		if (document.getElementById('nbSalarie').value =='')
			document.getElementById('vide_nbSalaries').style.display = 'block';
		else
			if (document.getElementById('thEmployes').value =='')
				document.getElementById('vide_thEmployes').style.display = 'block';
			else
				document.getElementById('dessou_nbSalaries').style.display = 'block';
	
		document.getElementById('obligationEmb').value = '-';
		document.getElementById('uniteManquante').value = '-';
		document.getElementById('tranche').value = '-';
		document.getElementById('contribution').value = '-';
		
		document.getElementById('nbUnite').value = '-';
		document.getElementById('mtOptimal').value = '-';
		document.getElementById('contriRestant').value = '-';
		document.getElementById('sommeDimi').value = '-';
		document.getElementById('pourcentDimi').value = '-';
		
		document.getElementById('valider2').style.display = 'none';
	}

}

function calculSimulation()
{	
	if (document.getElementById('matiere').value !='' &&  document.getElementById('volumeAffaireCours').value !='' && document.getElementById('sstraitantce').value !='')
	{
		
		
		sstraitantce = parseInt(document.getElementById('sstraitantce').value);
		volumeAffaireCours = parseInt(document.getElementById('volumeAffaireCours').value);
		matiere = parseInt(document.getElementById('matiere').value);
		
		
		moinSous = mtoptimal - sstraitantce;
		document.getElementById('moinSous').value = (Math.round(moinSous*100)/ 100)+' €';
		
		caMOConfie = volumeAffaireCours - (volumeAffaireCours * (matiere/100));
		
		document.getElementById('caMOConfie').value = (Math.round(caMOConfie*100)/ 100)+' €';
		
		
		if (caMOConfie > moinSous)
		{
			if ( typeCli == "public")
				equivalentU = moinSous/15235,08;
			else
			{
				if (typeServ == 'sstt')
					equivalentU = moinSous/2000 * tx_Horaire_SMIC ;
				else
					equivalentU = moinSous/1600 * tx_Horaire_SMIC ;
			}
		}
		else
		{
			if ( typeCli == "public")
				equivalentU = caMOConfie/15235,08;
			else
			{
				if (typeServ == 'sstt')
					equivalentU = caMOConfie/2000 * tx_Horaire_SMIC ;
				else
					equivalentU = caMOConfie/1600 * tx_Horaire_SMIC ;
			}
		}
		
		document.getElementById('equivalentU').value = (Math.round(equivalentU*100)/ 100);
		
		if (caMOConfie > moinSous)
		{
			if ( typeCli == "public")
				reducAffaire = moinSous / txpublic;
			else
			{
				if (typeServ == 'sstt')
					reducAffaire = moinSous / 2000 * tx_Horaire_SMIC;
				else
					reducAffaire = moinSous / 1600 * tx_Horaire_SMIC;
			}
		}
		else
		{
			if ( typeCli == "public")
				reducAffaire = caMOConfie/15235,08;
			else
			{
				if (typeServ == 'sstt')
					reducAffaire = caMOConfie/2000 * tx_Horaire_SMIC ;
				else
					reducAffaire = caMOConfie/1600 * tx_Horaire_SMIC ;
			}
		}
		reducAffaire = reducAffaire*(tranche*tx_Horaire_SMIC);
		
		if (reducAffaire < 0)
			reducAffaire = 0;
		document.getElementById('reducAffaire').value = (Math.round(reducAffaire*100)/ 100)+' €';
		
		
		if (reducAffaire < 0)
		{
			reducAffairePourcent = 0;
			document.getElementById('reducAffairePourcent').value = '0 %';
		}
		else
		{	reducAffairePourcent = (reducAffaire / volumeAffaireCours) * 100;
			document.getElementById('reducAffairePourcent').value = (Math.round(reducAffairePourcent*10)/ 10)+' %';
		}
		
		/*

		reducAffaire
		
		reducAffairePourcent
		*/
		document.getElementById('vide_champsSimul').style.display = 'none';
	}
	else
		document.getElementById('vide_champsSimul').style.display = 'block';

	
}
function scanToucheNombreSimulation(evenement)
{

	document.getElementById('vide_nbSalaries').style.display = 'none';
	document.getElementById('dessou_nbSalaries').style.display = 'none';
	document.getElementById('vide_thEmployes').style.display = 'none';
	document.getElementById('vide_champsSimul').style.display = 'none';
	

	document.getElementById('reducAffaire').value = '-';
	document.getElementById('equivalentU').value = '-';
	document.getElementById('reducAffairePourcent').value = '-';
	document.getElementById('caMOConfie').value = '-';
	document.getElementById('moinSous').value = '-'; 
	
    var codeDecimal  = codeTouche(evenement);
    var car = String.fromCharCode(codeDecimal);
		
	//Les caractères acceptés.
	var accepter = "0123456789";


	if (accepter.indexOf(car) >= 0)
		autorisation =true;
	else
		autorisation =false;
		
	if (evenement.keyCode==8)
		autorisation=true;

	return autorisation;
}
//Vérification des champs saisis.
function scanToucheNombre(evenement)
{
	
	
	document.getElementById('vide_nbSalaries').style.display = 'none';
	document.getElementById('dessou_nbSalaries').style.display = 'none';
	document.getElementById('vide_thEmployes').style.display = 'none';
		document.getElementById('valider2').style.display = 'none';
	document.getElementById('obligationEmb').value = '-';
	document.getElementById('uniteManquante').value = '-';
	document.getElementById('tranche').value = '-';
	document.getElementById('contribution').value = '-';
	
	document.getElementById('nbUnite').value = '-';
	document.getElementById('mtOptimal').value = '-';
	document.getElementById('contriRestant').value = '-';
	document.getElementById('sommeDimi').value = '-';
	document.getElementById('pourcentDimi').value = '-';
	
	document.getElementById('reducAffaire').value = '-';
	document.getElementById('equivalentU').value = '-';
	document.getElementById('reducAffairePourcent').value = '-';
	document.getElementById('caMOConfie').value = '-';
	document.getElementById('moinSous').value = '-'; 
	
    var codeDecimal  = codeTouche(evenement);
    var car = String.fromCharCode(codeDecimal);
		
	//Les caractères acceptés.
	var accepter = "0123456789";


	if (accepter.indexOf(car) >= 0)
		autorisation =true;
	else
		autorisation =false;
		
	if (evenement.keyCode==8)
		autorisation=true;

	return autorisation;
}

function codeTouche(evenement)
{
        for (prop in evenement)
        {
                if(prop == "which") return(evenement.which);
        }
        return(evenement.keyCode);
}
// ************************************* Fonctions pour le rollover des images du menu *************************************************************
function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
// *****************************************************************************************************************************************

// ******************************************************  SLIDE DIAPORAMA ***************************************************************
// Délais de la rotation
var nBanDelais = 5;
aBannieres = new Array();


// Bannières
aBannieres[0] = new twBanniere('#','images/diapo00.jpg','APF Entreprises');
aBannieres[1] = new twBanniere('#','images/diapo01.jpg','APF Entreprises');
aBannieres[2] = new twBanniere('#','images/diapo02.jpg','APF Entreprises');
aBannieres[3] = new twBanniere('#','images/diapo03.jpg','APF Entreprises');
aBannieres[4] = new twBanniere('#','images/diapo04.jpg','APF Entreprises');
aBannieres[5] = new twBanniere('#','images/diapo05.jpg','APF Entreprises');
aBannieres[6] = new twBanniere('#','images/diapo06.jpg','APF Entreprises');
// Ne pas modifier le code suivant
function twBanniere(_url,_src,_texte) {this.url=_url;this.src=_src;this.texte=_texte;}
function twRotation(){
  nBanPos=(nBanPos<nBanMax-1)?nBanPos+1:0;
  if (document.all){
    document.images["twban"].style.filter="blendTrans(duration=2)";
    document.images["twban"].style.filter="blendTrans(duration=CrossFadeDuration)";
    document.images["twban"].filters.blendTrans.Apply();
  }
  document.images["twban"].src=aBannieres[nBanPos].src;
  if (document.all) document.images["twban"].filters.blendTrans.Play();
  oTimer = setTimeout('twRotation()',nBanDelais*1000);
}
var nBanPos = 0;
var oTimer;
var nBanMax = aBannieres.length;

// *********************************************  GOOGLE MAP  ***************************************************
var map;
var geocoder;
var latitude;
var longitude;
//-- Ici les coordonnes sous forme de tableau
		var Param = [[48.137881,6.473693],[48.513462,7.714505]];
		//-- Meme Zoom pour tous
		var Zoom = 8;
		//-- Variable globale pour l'objet GMAP2 sous forme de tableau
		var map=[];

		var marker=[];
		//-- Nbr de map a creer
		var Nbr_Map = Param.length;
		//-- Variable globale pour les marqueurs sous forme de tableau
		var marker = new Array(); 

		//-------------------
		function initialize(tabadresse){
		  //-- Teste si le navigateur est compatible avec l'API Gmaps
			if (GBrowserIsCompatible() && document.getElementById('map')) {
					//-- Creation des objets princiapux
					map = new GMap2( document.getElementById('map'));
					//-- personnalisation	
					map.addControl(new GSmallMapControl());
					map.addControl(new GMapTypeControl());
					map.setCenter(new GLatLng(Param[0][0],Param[0][1]), Zoom);
				for( var i = 0; i <Nbr_Map; i++){	
					//-- Position du point
					var Pos = new GLatLng( Param[i][0], Param[i][1]); 
					
					
					tinyIcon = new GIcon();
					tinyIcon.image = "images/test.png";
					tinyIcon.shadow = "images/ombretest.png";
					tinyIcon.iconSize = new GSize(12, 20);
					tinyIcon.shadowSize = new GSize(22, 20);
					tinyIcon.iconAnchor = new GPoint(6, 20);
					tinyIcon.infoWindowAnchor = new GPoint(5, 1);
					 
					// Set up our GMarkerOptions object literal
					markerOptions = { icon:tinyIcon };
					
					marker[i] = new GMarker( Pos, markerOptions);
					//-- Ajout du marqueur
					map.addOverlay(marker[i]); 
				}
				
				GEvent.addListener(marker[0], "click", function() {
						marker[0].openInfoWindowHtml(
						"<table><tr><td  width=\"200\" style=\"color:#000;font-size:10px;text-align:left\"><b>"+tabadresse[0][0]+"<\/b><br \/>"+tabadresse[0][1]+"<br \/>"+tabadresse[0][2]+" "+tabadresse[0][3]+"<br \/><br \/>Tél. <b>"+tabadresse[0][4]+"</b><br \/>Fax. "+tabadresse[0][5]+"<\/td><\/tr><\/table>");
						
					});
				
				GEvent.addListener(marker[1], "click", function() {
							marker[1].openInfoWindowHtml(
						"<table><tr><td  width=\"200\" style=\"color:#000;font-size:10px;text-align:left\"><b>"+tabadresse[1][0]+"<\/b><br \/>"+tabadresse[1][1]+"<br \/>"+tabadresse[1][2]+" "+tabadresse[1][3]+"<br \/><br \/>Tél. <b>"+tabadresse[1][4]+"</b><br \/>Fax. "+tabadresse[1][5]+"<\/td><\/tr><\/table>");
						
					});

					map.openInfoWindowHtml(map.getCenter(),
				"<table><tr><td  width=\"200\" style=\"color:#000;font-size:10px;text-align:left\"><b>"+tabadresse[0][0]+"<\/b><br \/>"+tabadresse[0][1]+"<br \/>"+tabadresse[0][2]+" "+tabadresse[0][3]+"<br \/><br \/>Tél. <b>"+tabadresse[0][4]+"</b><br \/>Fax. "+tabadresse[0][5]+"<\/td><\/tr><\/table>");

			}
		} 
/*
function load() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(48.1381,6.4737), 16);
		
		var Pos = new GLatLng(48.1381,6.4737); 
		tinyIcon = new GIcon();
		tinyIcon.image = "images/logo_contact.gif";
		tinyIcon.shadow = "";
		tinyIcon.iconSize = new GSize(22, 30);
		tinyIcon.shadowSize = new GSize(22, 20);
		tinyIcon.iconAnchor = new GPoint(22, 30);
		tinyIcon.infoWindowAnchor = new GPoint(22, 30);
		
		// Set up our GMarkerOptions object literal
		markerOptions = { icon:tinyIcon };
		marker = new GMarker( Pos, markerOptions);
		
		map.addOverlay(marker); 
		var texte = "<table><tr><td align=\"center\" width=\"150\">3 rue de la Houée, 88000 Dinozé, France<\/td><\/tr><\/table>";
		map.openInfoWindowHtml(map.getCenter(),
		texte);
		
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(texte);
			
		});
		
		geocoder = new GClientGeocoder();
	}
}*/
/*
function addAddressToMap(response) {
	map.clearOverlays();
	if (!response || response.Status.code != 200) {
		alert("Désolé, l'adresse est impossible à localiser.");
	} else {
		place = response.Placemark[0];
		if(latitude != 0){
			point = new GLatLng(latitude, longitude);
			map.setCenter(new GLatLng(latitude, longitude), 15);
		}else{
			point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
		}
		marker = new GMarker(point);
		map.addOverlay(marker);
		marker.openInfoWindowHtml(place.address);
	}
}*/
	function mounvementMap(tabadresse,pos,i)
	{
		if (GBrowserIsCompatible() && document.getElementById('map')) {
			map = new GMap2( document.getElementById('map'));
			//-- personnalisation	
			map.addControl(new GSmallMapControl());
			map.addControl(new GMapTypeControl());
			map.setCenter(new GLatLng(pos[0],pos[1]), 16);
			
			var Pos = new GLatLng( pos[0], pos[1]); 
			marker[i] = new GMarker( Pos, markerOptions);
			//-- Ajout du marqueur
			map.addOverlay(marker[i]); 
			
			GEvent.addListener(marker[i], "click", function() {
							marker[i].openInfoWindowHtml(
						"<table><tr><td align=\"center\" width=\"150\" style=\"color:#000\"><b>"+tabadresse[i][0]+"<\/b><br \/>"+tabadresse[i][1]+"<br \/>"+tabadresse[i][2]+" "+tabadresse[i][3]+"<br \/><br \/>Tél. <b>"+tabadresse[i][4]+"</b><br \/>Fax. "+tabadresse[i][5]+"<\/td><\/tr><\/table>");
						
					});
			map.openInfoWindowHtml(map.getCenter(),
			"<table><tr><td align=\"center\" width=\"150\" style=\"color:#000\"><b>"+tabadresse[i][0]+"<\/b><br \/>"+tabadresse[i][1]+"<br \/>"+tabadresse[i][2]+" "+tabadresse[i][3]+"<br \/><br \/>Tél. <b>"+tabadresse[i][4]+"</b><br \/>Fax. "+tabadresse[i][5]+"<\/td><\/tr><\/table>");

		}
	}
/*
function showLocation(address,coordlat,coordlong) {
	//alert("ok");
	geocoder.getLocations(address, addAddressToMap);
	latitude = coordlat;
	longitude = coordlong;
}*/
// *************************************************************************************************************

function changeOver(obj,color){
	obj.style.backgroundColor=color;
}
function sendData(balise, param, page){
	//alert(balise+" "+param+" "+page);
	if(document.all) {
		//Internet Explorer
		var XhrObj = new ActiveXObject("Microsoft.XMLHTTP") ;
	}else{
		//Mozilla
		var XhrObj = new XMLHttpRequest();
	}

	//définition de l'endroit d'affichage
	var content = document.getElementById(balise);
	XhrObj.open("POST", page);

	//Ok pour la page cible
	XhrObj.onreadystatechange = function() {
		if (XhrObj.readyState == 4 && XhrObj.status == 200){
			content.innerHTML = XhrObj.responseText ;
		}
	}

	if (XhrObj.readyState == 4 && XhrObj.status == 200){
		//content._innerhtml = XhrObj.responseText ;
		content.innerHTML = XhrObj.responseText ;
		alert(XhrObj.responseText);
	}

	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	XhrObj.send(param);
}


function myGetElementById(elemID) {
	if (document.getElementById && document.getElementById(elemID)) {
		return document.getElementById( elemID );
	} else if (document.all && document.all[divID]) {
		return document.all[ divID ];
	} else if (document.layers && document.layers[divID]) {
		return document.layers[ divID ];
	} else {
		return false;
	}
}

function ShowHide(divID,nb) {
	Hide_ss_menu(nb); /*Appel la fonction Hide_ss_menu() afin de cacher tous les sous-menus*/
	Pdiv = myGetElementById(divID);
	if (Pdiv) {
		Pdiv.className = (Pdiv.className=='cache')?'':'cache';
		
	}	
}

function Show(divID) {
	Pdiv = myGetElementById(divID);
	if (Pdiv) {
		if(Pdiv.className=='cache') {
			Pdiv.className = '';
		}
	}
}

function Hide(divID) {
	Pdiv = myGetElementById(divID);
	if (Pdiv) {
		if(Pdiv.className=='') {
			Pdiv.className = 'cache';
		}
	}
}

function Hide_ss_menu(nbElement) {	
	var tmp; //variable temporaire pour créer le nom de l'ID
	for (i=0;i<nbElement;i++) {	
		tmp = 'menu'+i;
		Pdiv = myGetElementById(tmp);
		if (Pdiv) {		
			if(Pdiv.className=='') {
				Pdiv.className = 'cache';
			}
		}
	}
}


function changeCouleur(ligne){
	ligne.bgColor = '#c0e0ff';
}

function remetCouleur(ligne){
	ligne.bgColor = '#ffffff';
}

//configurer les deux variables ci-dessous en fonction de votre site
function favoris() {
	if (navigator.appVersion.indexOf("Mac",0)>0) {
		alert("Cette fonction n\'est pas réalisable sur Macintosh.\n\nUtilisez plutôt la combinaison de touches \"Pomme-D\"");
	}
	else {
		var bookmarkurl="http://www.prestige-epinal.com"
		var bookmarktitle="CJD Soirée Prestige 2009"
		if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4)) {
			//window.external.AddFavorite(location.href, document.title);
			window.external.AddFavorite(bookmarkurl,bookmarktitle);
		}
		else {
			//alert("Cette fonction n'est possible que par Internet Explorer 4 et +\n\nPour Netscape utilisez plutôt la combinaison de touches \"Control-D\"");
			window.sidebar.addPanel(bookmarktitle,bookmarkurl,"");
		}
	}
}
