﻿
var pageNum=Math.round(Math.random()*10000000000);
    
    
function  MoveAddElement1Before2(sourceID,targetID)
{
    MoveElementBefore(sourceID,targetID);
}

function MoveElementBefore(sourceID,targetID)
{
   // get ad container
    var source = document.getElementById(sourceID);
    // remove ad container from current position
    source.parentNode.removeChild(source);
    // get position container
    var targetdiv = document.getElementById(targetID);
    // insert ad container into position container
    //targetdiv.insertBefore(source);
    if (targetdiv)
    {
    targetdiv.appendChild(source);
    targetdiv.style.display='block';
    source.style.display='block';
    }
}


