function insert_pic(pic_path, full_pic_path, caption, float_side){
	var output = "<div style=\"width:215px;float:"+float_side+";border:1px solid #000;margin:0.5em;\">";
	output += "<a href=\"" + full_pic_path + "\" rel=\"lightbox[1]\" title=\""+caption+"\">";
	output += "<img src=\""+pic_path+"\" alt=\"" + caption + "\"/><br />";
	output += "Full Image";
	output += "</a>";
	output += "<p>"+caption+"</p>";
	output += "</div>";
	document.write(output);
	document.close();
}