// JavaScript Document
function MM_jumpMenu(selecttxt)
{
 var id = selecttxt;
 if(id == 0)
 {
 	return false;
 }
 else
 {
 window.location.href="index.php?p=propertydesc&id="+id;
 return true;
 }
}
function showImage(image_url, image_width, image_height){
	image_width = image_width == "" ? 400 : image_width;
	image_height = image_height == "" ? 380 : image_height;

	var w = screen.width;
	var h = screen.height;
	var ww = image_width * 1 + 40;
	var wh = image_height * 1 + 55;
	var wx = (w - ww)/2;
	var wy = (h - wh)/2;
	
	
	imageWin = null;
	imageWin = window.open(
		"", 
		"_blank", 
		"titlebar=yes, toolbar=no, menubar=no, status=no, directories=no, resizable=yes, scrollbars=yes, top=" + wy.toString() + ", left=" + wx.toString() + ", width=550, height=450 "
	);
	/*
	
	imageWin = null;
	imageWin = window.open(
		"", 
		"ProductImageWindow", 
		"titlebar=yes, toolbar=no, menubar=no, status=no, directories=no, resizable=yes, scrollbars=yes, top=" + wy.toString() + ", left=" + wx.toString() + ", width=" + ww.toString() + ", height=" + wh.toString() + ""
	);
	
	*/
	
	while(imageWin==null);
	imageWin.focus();
	
	//imageWin.document.body.innerHTML = "";
	imageWin.document.write('<link href="style/imgpopup.css" rel="stylesheet" type="text/css" />');
	imageWin.document.write('<body style="padding:10px;margin:0px">');
	imageWin.document.write('<div align="center"><img hspace="0" vspace="0" src="' + image_url + '"></div><br/>');
	imageWin.document.write('<div align="center"><a href="javascript:window.close();" class="imgwinlink">Close Window</a></div>');
	imageWin.document.write('</body>');
	imageWin.width = ww;
	imageWin.height = wh;
}
