//popup.js, Salim Dirani, 12/juns/2006
//
//What does this function?
//
//Call this function on an anchor link and specify the appropriat 
//parameter(url of the image, width, height and a text description 
//that will appear under the image the text description can contain html.
//
//Example
//
//<a href="javascript:popup('images/AdelImam.jpg', 380, 450, 'Here is the 
//famous Adel Imame side by side with Mr Edmond Boutros')">Adel Imame</a>

function popup(url, width, height, msg){
var newWind = window.open(url, 'bPro',"width="+width+",height="+height+",scrollbars, top=50, left=100 ,resizable");
if(msg != ''){
var output = "";
output += "<html><body>";
output += "<p>"+msg+"</p>";
output +="</body></html>";
newWind.document.write(output);
}

newWind.focus();
}
