function view(x,y,name) {
  newwin = window.open(name,"_blank","width="+x+",height="+y);
  newwin.document.writeln('<html><head><title>Screen<\/title><\/head>');
  newwin.document.writeln('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0> <img src='+name+'> <\/body><\/html>');
}

function SetBG(color)
{
    document.bgColor = color;
	document.getElementById("q").style.background = color;
}