function newWindow(theImage,urlLink){
	if(!urlLink){
		urlLink = "no";
	}
	//alert(urlLink);
	
	variable = "image_name=" + theImage + "&";
	variable2 = "link=" + urlLink;
	imageLink = "cgi-local/image_gallery.cgi?" + variable + variable2;
	theWindow = window.open(imageLink, 'popWin', 'width=584,height=510,resizable=no')
	theWindow.focus()
}

function newMessage(tmplLink){
		var cgiLink = "cgi-local/" + tmplLink;
	
		theWindow = window.open(cgiLink, 'mesWin', 'width=584,height=550,resizable=no')
		theWindow.focus()
}