var width,height
var image,ext
var cond1,cond2
function transferview(image,width,height) {
if (width==0) cond1=" "
else cond1="width="+(width+20)+"";
if (height==0) {cond2=" "}
else {cond2="height="+(height+70)+""}

var s1 ="<TITLE>Copyright Homestyle Soft Furnishings 2008</TITLE>"
var s6="<P>&nbsp;</P>"
var s3 ="<IMG SRC='"+image+"' BORDER=0></CENTER>"
var s2 ="<CENTER><FORM><INPUT TYPE='BUTTON' style='background-color: maroon; color: white;' VALUE='Close Window'"+ " onClick='self.close()'>"
var s4 ="</FORM><P>&nbsp;</P>"
var s5 ="<P style=\"font-family:'Verdana'\"><strong>All cornices and options available in COM!</strong></P>"


ImageWindow=window.open("", "newwin"+width,"toolbar=no,scrollbars=yes,menubar=no,"+cond1+","+cond2);
ImageWindow.document.write(s1+s6+s2+s5+s3+s4)
ImageWindow.document.close()
}
