function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}


function ChangeImage(imgName,imgObj) 
{
	document.images[imgName].src = eval(imgObj+".src");
}

function WindowOpen(width,height,name,ImgObg)
{
	features = "width=" + width + ",height=" + height;
	win = window.open('',name,features);
	win.document.open();
	win.document.write('<html><body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0">');
	win.document.write('<img src="' + ImgObg + '" border="0" alt="">');
	win.document.write('</body></html>');
	win.document.close();
	win.focus();
}
