var num_img;
num_img = Math.floor(Math.random() * 3)+1;

function write_css(num_img)
{
	document.write("<style type='text/css'>.fondImg {	background: url(images/image"+num_img+".jpg);}</style>");
}

write_css(num_img);