function createPopUp(id)
{
	var div = document.createElement('div');
	div.setAttribute('id', 'testing');
	div.innerHTML = "<div class=\"shadow\"></div><div class=\"popUp\" id=\"test\"><iframe id=\"testiframe\" name=\"testiframe\" src=\"http://www.gibraltar.com/test/slideshowFinancial.php#"+id+"\" allowtransparency=\"true\" frameborder=\"0\" width=\"100%\" height=\"100%\" class=\"iframeContent\"></iframe><br></div>";
	document.body.appendChild(div);
	
}

function removeElement() 
{
	var olddiv = this.parent.returnObjById("testing");
	this.parent.document.body.removeChild(olddiv);
}

function returnObjById(id) 
{
    if (document.getElementById) 
        var returnVar = document.getElementById(id); 
    else if (document.all) 
        var returnVar = document.all[id]; 
    else if (document.layers) 
        var returnVar = document.layers[id]; 
    return returnVar; 
}