function ScanCookie(variable)
	{
	cook = document.cookie;
	variable += "=";
	place = cook.indexOf(variable,0);
	if (place <= -1)
		return("0");
	else
		{
		end = cook.indexOf(";",place)
		if (end <= -1)
			return(unescape(cook.substring(place+variable.length,cook.length)));
		else
			return(unescape(cook.substring(place+variable.length,end)));
		}
	}

function PutCookie(nom,valeur,permanent)
	{
	if(permanent)
		{
		dateExp = new Date(2020,01,01);
		dateExp = dateExp.toGMTString();
		ifpermanent = '; expires=' + dateExp + ';';
		}
	else
		ifpermanent = '';
	document.cookie = nom + '=' + escape(valeur) + ifpermanent;
	}
	
function coregOpenerRU()
		{
			var hauteur = 600;
			var largeur = 900;
			var haut=(screen.height-hauteur)/2;
			var Gauche=(screen.width-largeur)/2;
			var page = 'http://etudes.ibase.fr/Nissan_survey_RU.html';
			window.open(page, 'iBuyers', 'top=' + haut + ',left= ' + Gauche + ',width= ' + largeur + ', height=' + hauteur );
			window.focus();
			page.blur();
		}
popupGBQQ = 0;

function coregOpenerGBQQ()
		{
		if(popupGBQQ==0) {			
			var hauteur = 600;
			var largeur = 900;
			var haut=(screen.height-hauteur)/2;
			var Gauche=(screen.width-largeur)/2;
			var page = 'http://etudes.ibase.fr/Nissan_survey.html';
			popunder = window.open(page, 'iBuyers', 'top=' + haut + ',left= ' + Gauche + ',width= ' + largeur + ', height=' + hauteur );
			popunder.blur();
			page.blur();
			window.focus();
			popupGBQQ=1;
			}
		}

function coregOpenerIT()
		{
			var hauteur = 600;
			var largeur = 900;
			var haut=(screen.height-hauteur)/2;
			var Gauche=(screen.width-largeur)/2;
			var page = 'http://etudes.ibase.fr/Nissan_survey_IT.html';
			window.open(page, 'iBuyers', 'top=' + haut + ',left= ' + Gauche + ',width= ' + largeur + ', height=' + hauteur );
			window.focus();
			page.blur();
		}
		
function psyma_onclick_uk()
 {
	var psyma_current_url = document.location.href; 
	var script_filename = "http://scripts.psyma.com/scripts/abuk/nissan_pfw.php?psyma_current_url=" + psyma_current_url;
	var html_doc = document.getElementsByTagName('body').item(0);
	var js = document.createElement('script'); 
	js.setAttribute('language', 'javascript'); 
	js.setAttribute('type', 'text/javascript'); 
	js.setAttribute('src', script_filename); 
	html_doc.appendChild(js); 
	return false;
}		

function psyma_onclick_de()
 {
	var psyma_current_url = document.location.href; 
	var script_filename = "http://scripts.psyma.com/scripts/abde/nissan_pfw.php?psyma_current_url=" + psyma_current_url;
	var html_doc = document.getElementsByTagName('body').item(0);
	var js = document.createElement('script'); 
	js.setAttribute('language', 'javascript'); 
	js.setAttribute('type', 'text/javascript'); 
	js.setAttribute('src', script_filename); 
	html_doc.appendChild(js); 
	return false;
}		

function psyma_onclick_it()
 {
	var psyma_current_url = document.location.href; 
	var script_filename = "http://scripts.psyma.com/scripts/abit/nissan_post_pfw.php?psyma_current_url=" + psyma_current_url;
	var html_doc = document.getElementsByTagName('body').item(0);
	var js = document.createElement('script'); 
	js.setAttribute('language', 'javascript'); 
	js.setAttribute('type', 'text/javascript'); 
	js.setAttribute('src', script_filename); 
	html_doc.appendChild(js); 
	return false;
}		

function psyma_onclick_es()
 {
	var psyma_current_url = document.location.href; 
	var script_filename = "http://scripts.psyma.com/scripts/abes/nissan_post_pfw.php?psyma_current_url=" + psyma_current_url;
	var html_doc = document.getElementsByTagName('body').item(0);
	var js = document.createElement('script'); 
	js.setAttribute('language', 'javascript'); 
	js.setAttribute('type', 'text/javascript'); 
	js.setAttribute('src', script_filename); 
	html_doc.appendChild(js); 
	return false;
}		

function psyma_onclick_fr() 
 { 
    var psyma_current_url = document.location.href; 
    var script_filename = "http://scripts.psyma.com/scripts/abfr/nissan_pfw.php?psyma_current_url=" + psyma_current_url; 
    var html_doc = document.getElementsByTagName('body').item(0); 
    var js = document.createElement('script'); 
    js.setAttribute('language', 'javascript'); 
    js.setAttribute('type', 'text/javascript'); 
    js.setAttribute('src', script_filename); 
    html_doc.appendChild(js); 
    return false; 
} 
