function createIFrame()
{
    var div=document.getElementById("kasalsearchholder");
    var newitem = document.createElement('div'); //DIV element
    newitem.setAttribute('align', 'center'); //Declaring attributes for DIV
    var ifram = document.createElement('iframe'); //IFRAME element
    ifram.setAttribute('src', 'http://kasal.ph/kasalv3/weddresource/searchtool/');
    ifram.setAttribute('frameborder', '0');
    ifram.style.position = 'static'; //You should use STYLE object for storing CSS info
    ifram.style.border = 'none'; //You should use STYLE object for storing CSS info
    ifram.width = '720px';
    ifram.height = '70px';
//    ifram.style.top = '120px'; //You should use "px" in CSS style declarations
//    ifram.style.left = '10px';

    newitem.appendChild(ifram); //Putting IFRAME into DIV
    newnode=document.createElement("span");
    newnode.appendChild(newitem); //Putting our DIV (newitem) into NEWNODE
    //Please be careful! You should not place DIV into SPAN!!! SPAN is an inline element
    //div.insertBefore(newitem);
    //div.insertBefore(newnode);
    div.innerHTML = newitem.innerHTML;    
}

window.setTimeout("createIFrame()", 0);

