
// Begin Preview Function
function preview(datoima,descri,valor) {
	// Get table code


    var ima = datoima;
    var des = descri;
    var val = valor;

	// Open a new window
	var preview = window.open(""+self.location,"preview","status=0,width=640,height=380,scrollbars=0")
	preview.focus()

	// Now write the window content
	preview.document.write("<html><head><title>RICKY TIKI HUTS - GALLERY</title></head>")
	preview.document.write("<body>")
    preview.document.write("<table style='WIDTH:640px; HEIGHT: 380px' cellspacing='0' cellpadding='0' bgcolor='white' border='0'>")
    preview.document.write("<tbody><tr><td width='640' bgcolor='#FFFFFF' rowspan='1'>")
    preview.document.write("<img src='")
    preview.document.write(ima)
    preview.document.write(".jpg'/></td><td width='640' bgcolor='#FFFFFF'>")
    preview.document.write("<strong>")
    preview.document.write(des)
    preview.document.write("</strong>")
    preview.document.write("</br>")
    preview.document.write("<strong>")
    preview.document.write(val)
    preview.document.write("</strong>")
    preview.document.write("</br>")

    preview.document.write("</td></tr></tbody></table>")


	// The actual table


	preview.document.write("</body></html>")
    preview.document.close()
}
// End Preview Function



// Begin previ2 Function
function previ2(datoima,descri,valor) {
	// Get table code


    var ima = datoima;
    var des = descri;
    var val = valor;

	// Open a new window
	var previ2 = window.open("","previ2","status=0,width=500,height=667,scrollbars=0")
	previ2.focus()

	// Now write the window content
	previ2.document.write("<html><head><title>RICKY TIKI HUTS - GALLERY</title></head>")
	previ2.document.write("<body>")
    previ2.document.write("<table style='WIDTH:500px; HEIGHT: 667px' cellspacing='0' cellpadding='0' bgcolor='white' border='0'>")
    previ2.document.write("<tbody><tr><td width='500' bgcolor='#FFFFFF' rowspan='1'>")
    previ2.document.write("<img src='")
    previ2.document.write(ima)
    previ2.document.write(".jpg'/></td><td width='500' bgcolor='#FFFFFF'>")
    previ2.document.write("<strong>")
    previ2.document.write(des)
    previ2.document.write("</strong>")
    previ2.document.write("</br>")
    previ2.document.write("<strong>")
    previ2.document.write(val)
    previ2.document.write("</strong>")
    previ2.document.write("</br>")

    previ2.document.write("</td></tr></tbody></table>")


	// The actual table


	previ2.document.write("</body></html>")
    previ2.document.close()
}
// End previ2 Function