//--------------------------------------------------------
function sDirE(preadd)						// rets String email addr
{
var arroba="@";
var v2="jttsoft";
var v3="com";
punt=".";

return preadd+arroba+v2+punt+v3;
}
//--------------------------------------------------------
function wDirE(preadd,post)							// Escriu addr
{
document.write(sDirE(preadd));
document.write(post);
}
//--------------------------------------------------------
function wAddr3(preadd,post,txtLinked)							// Escriu addr
{
document.write('<A href="mailto:');
document.write(sDirE(preadd));
document.write('"');
document.write(post);
document.write(">");
document.write(txtLinked);
document.write("</A>");
}
//--------------------------------------------------------
function wDirEL(preadd,post)						// Escriu tot el link sense tancar
{
document.write('<A href="mailto:');
document.write(sDirE(preadd));
document.write('"');
document.write(post);
document.write(">");
}
//--------------------------------------------------------
function wDir(preadd,cls)
{
if (cls=="")
    wDirEL(preadd,'');
else
    wDirEL(preadd,' class="'+cls+'"');

wDirE(preadd,"</A>");
}

//--------------------------------------------------------------
function mailar(addr,extra){

document.write("<a href='mailto:");
document.write(sDirE(addr));
document.write(extra);
document.write("'>");
document.write(sDirE(addr));
document.write("</a>");

}
//--------------------------------------------------------------
	function SetBkImg(ix){
		var pos="../samples/pat"+ix+".jpg"
		document.body.style.backgroundImage = "url(\"" + pos + "\")";
	}
//--------------------------------------------------------------
function nBkImgs(){

return 282;
}
//--------------------------------------------------------------
function RandomBkImg(){
var ix=1+Math.floor(Math.random()*nBkImgs());
SetBkImg(Math.floor(ix));
}
