function setpix() {
 var x  = (document.all) ? document.all['titlepix'] : document.getElementById('titlepix');
  x.innerHTML = '<div id="lpix'+Math.round(Math.random()*10)+'"></div>';
}

function openWin(URL,Name,Features)
{
var openWin=window.open(URL,Name,Features);
openWin.focus();
}
function resizeWin(width, height)
{
window.resizeTo(width, height);
}
function openImg(ImgURL, Name, Title, Features, Width, Height)
{
var openWin=window.open("", Name, 'scrollbars=no,width='+Width+',height='+Height+','+Features);
openWin.document.open();
openWin.document.write("<html>\n<head>\n<title>"+Title+"</title>\n<style type=\"text/css\">\nbody {margin:0}\n</style>\n</head>\n<body>\n");
openWin.document.write("<img src=\""+ ImgURL +"\" width=\""+ Width +"\" height=\""+ Height +"\" alt=\"\" border=\"0\">");
openWin.document.write("</body></html>");
openWin.document.write();
openWin.document.close();
openWin.focus();
}

