function prPopUp(title, image_src, image_caption)
{
	newwindow2=window.open("","name","width=370,height=280");
	var tmp = newwindow2.document;
	tmp.write("<html><head><title>" + title + "</title></head><body style='margin: 0;'>");
	
	if (image_caption != "")
	{
	  tmp.write("<div style='vertical-align: top; font-size: 10pt; background-color: #439ACF; color: white; padding-left: 2px; height: 17px; margin-top: 0px;'>");
	  tmp.write(image_caption);
	  tmp.write("</div>");
	}
	
	tmp.write("<div style='padding-top: 5px; padding-left: 5px;'>");
	tmp.write("<img src='images/pr_images/" + image_src + "' width='360' height='250'/>");
	tmp.write("</div>");
	tmp.write("</body></html>");
	tmp.close();
}

function getItById(id,o){
    if(document.getElementById) return document.getElementById(id);
    if(document.all)            return document.all[id]
    if(o==null) o=window.document;

    if(o.layers[id]){
      return o.layers[id]
    }

    if(o.images[id]){
      return o.images[id]
    }

    for(var i=0; i<o.layers.length; i++){
       var oo=getById(id,o.layers[i].document); 
       if(oo!=null) return oo;
    }
    return null;
}

function changeContent(id,content){
 var o=getItById(id); 
 if(o==null) return;
 if(document.layers){
    o.document.writeln(content);
    o.document.close();
 }
 else o.innerHTML = content
}