var faux = null;
var pic = new Image(); 
function copyCat(pic,br,lg) 
{
faux = window.open('','newWin','dependent,resizable,top=20,left=20,width=550,height=380');
var fd = faux.document;
faux.resizeTo(br,lg);
faux.focus
fd.open();
fd.write('<html><head><title>AEDES S.A.</title></head>');
fd.write('<body bgcolor="white" onLoad="window.focus()">');
fd.write('<p><a href="javascript:window.print()">imprimer - drukken - Drucken</a></p>');
fd.write('<table border="0" cellpadding="0" cellspacing="0" width="100%" height="80%">');
fd.write('<tr><td align="center" valign="middle"> ... </td></tr>');
fd.write('</table>');
fd.write('</body></html>');
fd.close();
}

function openHTML(sc,br,lg)
{	var win;
	win=window.open(sc, "MyWindow", "width=600, high=500, resizable=yes, dependent=yes, scrollbars=yes");
	win.moveTo(30,30);
	win.resizeTo(br,lg);
}

function SetCookie(sLanguage)
{	// path=/ --> Der Cookie ist für alle WebSeiten
	document.cookie = "Language=" + escape(sLanguage) + "; path=/; expires= Mon, 01-Jan-2049";	
}

function GetCookie(sName)
{	// cookies are separated by semicolons
	var sCookie = document.cookie.split("; ");
	for (var i=0; i < sCookie.length; i++)
	{
		// a name/value pair (a crumb) is separated by an equal sign
		var aCrumb = sCookie[i].split("=");
		if (sName == aCrumb[0])
			return unescape(aCrumb[1]);
	}
	
	// a cookie with the requested name does not exist
	return null;
}


