var hW = null;
var hWc = "f";
function viewMerchant(u, i, p){
op = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=800,height=500';u="http://fr.kelkoo.com/modules/go.jsp?merchantId="+i+"&url="+escape(u)+p;
merchant=open(u,'',op);}
function viewMerchant2(u, i, p){
op = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=800,height=500';u="http://"+"&url="+escape(u)+p;
merchant=open(u,'',op);}
function afficheCommande(u){
w = (document.all ? screen.width : screen.width) * 0.9;
h = (document.all ? screen.height : screen.height-150) * 0.9;
op = 'scrollbars=yes,toolbar=yes,location=yes,directories=yes,menubar=yes,resizable=yes,status=yes,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0';
/*var np = new Date();
var nfm = np.getTime();
if (!window.com){
*/
com=open(u,'',op);
/*
com.focus();}
else{
if (!com.closed){
com.close();
com=open(u,nfm,op);
com.focus();}
else{
com=open(u,nfm,op);
com.focus(); }}*/}

function help(u,t,w,h,f){
hurl = "http://fr.kelkoo.com/content/help.jsp";
if (f == "yes") hurl+="?frameset=yes&url=";
else hurl+="?url=";
if (hWc = "t" || hW == null){
hW = window.open("","title","width=" + w + ",height=" + h+",top=0,left=0,screenX=0,screenY=0,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,menubar=no");
hWc = "f";}
if (hWc == "f"){
hW.location.href = hurl + u;
hW.resizeTo(w, h);}
hW.focus();}
function closeHelp(){
if (hWc == "f"){
hWc = "t";
hW = null; }}
function respop(u,n,w,h){
pop = window.open(u,n,"width=" + h + ",height=" + w + ",location=no,menubar=no,resizable=yes");
pop.focus; }

function setC(n,v,e){
var c=n+"="+escape(v)+((e)?";expires="+e.toGMTString():"");document.cookie=c;}
function getC(n){
var dc = document.cookie;
var p=n+"=";var b=dc.indexOf("; " + p);
if (b==-1) {b=dc.indexOf(p);if (b!=0) return null;} else b+=2;
var e=document.cookie.indexOf(";",b);
if (e==-1) e=dc.length;
return unescape(dc.substring(b+p.length,e));}

function OwC(c,e,a){
d = new Date();d.setTime(d.getTime() + e);z=eval('getC(c)');
if (z==null){setC(c,"true",d);eval(a);}}

function go(u) {document.location.href=u;}
