


function mailus( username ) {
    var domain = "cormatin";
    var tld =".eu";
    var atsign = "@";
    var addr = username + atsign + domain + tld;
    document.write('<a href=\"mailto:' + addr + '\">' + addr + '<\/a>');

    }

function mailcwd( username ) {
    var domain = "webdesignfrance";
    var tld =".eu";
    var atsign = "@";
    var addr = username + atsign + domain + tld;
    document.write('<a href=\"mailto:' + addr + '\">' + addr + '<\/a>');

    }



function backbutton()
{
document.write('<form><input type=\"button\" value=\" BACK \" onclick=\"history.go(-1);\" /></form>');
}

function backtoform()
{
document.write('<form><button onclick=\"history.go(-1);return false;\">Back to form</button></form>');
}

function printletter()
{
document.write('<form><button onClick=\"window.print()\">Print this letter</button></form>');
}

// Popup Window
var newwindow;
var wheight = 0, wwidth = 0;

function popitup(url, title, iwidth, iheight) {
var pwidth, pheight;

if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+40;
newwindow=window.open(url,'htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=20, left=30');
wheight=iheight;
wwidth=iwidth;
}

if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+90;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}
}

// Routines to tidy up popup windows when page is left
// Call with an onUnload="tidy()" in body tag

function tidy() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}
