<!-- AMAG Multisite, created by namics ag, neuhofstrasse 1, ch-6340 baar -->
<!-- $Author:    $ -->
<!-- $Revision:    $ $Date:     $-->

// popup.js

// fonction d'affichage de la pop up 
function displayPOPUP(image1,image2,titre,content,linkname,linkurl) {
	
	var cabinet = "";
	if (image1.match("/cms/getContent.do") == "/cms/getContent.do"){
		cabinet = 	image1.substring(0,image1.lastIndexOf("/images")+1);
	}

	win = window.open('', '_blank', 'width=635, height=567, toolbar = no, status = no, resizable = no, scrollbars = no');
	win.document.open();
	win.document.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n" +
"<HTML>\n" +
"<HEAD>\n"+
"<META http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-15\">\n"+
"<TITLE>Europcar</TITLE>\n"+
"	<link href=\"" + cabinet + "style.css\" rel=\"styleSheet\" type=\"text/css\">\n"+
"	<style>\n"+
"		BODY {background-repeat: repeat-xy;}\n"+
"		.titreblanc	{ font-family: Geneva,Verdana,sans-serif; font-weight: 900; font-size: 16px; color: #FFFFFF;   }		\n"+
"		.txtblanc { font-family: Geneva,Verdana,sans-serif; font-size: 13px; font-weight: 500; color: #FFFFFF; }\n"+
"		a.blanc:link	{ font-family: Geneva,Verdana,sans-serif; font-size: 12px; font-weight: 600; color: #FFFFFF; }\n"+
"		a.blanc:active	{ font-family: Geneva,Verdana,sans-serif; font-size: 12px; font-weight: 600; color: #FFFFFF; }\n"+
"		a.blanc:visited	{ font-family: Geneva,Verdana,sans-serif; font-size: 12px; font-weight: 600; color: #FFFFFF; }\n"+
"		a.blanc:hover	{ font-family: Geneva,Verdana,sans-serif; font-size: 12px; font-weight: 600; color: #FFFFFF; }\n"+
"	</style>\n"+
"</HEAD>\n"+
"<body bgcolor=\"#CCCCCC\" leftmargin=\"0\" topmargin=\"0\" marginheight=\"0\" marginwidth=\"0\"  background=\"" + cabinet + "images/bg_popup.gif\" >\n"+
"<table width=\"635\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"+
"<tr>\n"+
"	<td colspan=4><img src=\"" + cabinet + "images/head_popup.jpg\" width=\"635\" height=\"73\" border=\"0\"></td>\n"+
"</tr>\n"+
"<tr>\n"+
"	<td colspan=4><img src=\"" + cabinet + "images/lb_slogan_popup.gif\"	width=\"635\" height=\"27\" border=\"0\"></td>\n"+
"</tr>\n"+
"<tr>\n"+
"	<td colspan=4><img src=\"" + image1 + "\" width=\"635\" height=\"230\" border=\"0\"></td>\n"+
"</tr>\n"+
"<tr>\n"+
"	<td colspan=4 bgcolor=\"#000000\" width=\"635\"><img src=\"" + cabinet + "images/spc.gif\" width=\"635\" height=\"1\" border=\"0\"></td>\n"+
"</tr>\n"+
"<tr>\n"+
"	<td width=\"395\"><img src=\"" + image2 + "\" width=\"395\" height=\"210\" border=\"0\"></td>\n"+
"	<td width=\"1\"><img src=\"" + cabinet + "images/black_pixel.gif\" width=\"1\" height=\"210\" border=\"0\"></td>\n"+
"	<td width=\"15\"><img src=\"" + cabinet + "images/spc.gif\" width=\"15\" height=\"210\" border=\"0\"></td>\n"+
"	<td width=\"235\" align=\"left\" valign=\"middle\">\n"+
"			<font class=\"titreblanc\">" + titre + "</font><br><br>\n"+
"			<font class=\"txtblanc\">" + content + "</font><br>\n"+
"			<a href=\"#\" target=\"_self\" class=\"blanc\" onClick=\"window.open('" + linkurl + "','_blank');window.self.close()\" >" + linkname + "</a>\n"+
"	</td>\n"+
"	</tr>\n"+
"<tr>\n"+
"	<td bgcolor=\"#000000\" colspan=4 height=\"27\"><img src=\"" + cabinet + "images/spc.gif\" height=\"27\"></td>\n"+
"</tr>\n"+
"</table>\n"+
"</body>\n"+
"</HTML>");
win.document.close();
}


