var ImgBox = window.createPopup(); 

function DisplayImage(picName, ImgWidth, ImgHeight){
	var ImgBoxBody = ImgBox.document.body; 
	ImgBoxBody.style.backgroundColor = "#ffffff"; 
	ImgBoxBody.style.border = "solid black 2px"; 
	//str= "<a href='#;' onclick=\"document.domain='"+document.domain+"';parent.ImgBox.hide();\"><img src='"+picName+"' border=0></a>";
	str= "<a href='#;' onclick=\"parent.ImgBox.hide();\"><img src='"+picName+"' border=0></a>";
	ImgBoxBody.innerHTML = str; 
	ImgBox.show(0, 0, ImgWidth,ImgHeight, document.body); 
}
