var htmlContentOfNewBox = '
THIS IS WHERE I WANT MY GOOGLE FORM
'; // HTML content of new box var titleOfNewBox = 'This is a static box'; if(!staticObjectArray['staticObject1']){ // The box is not stored in cookie - we need to create it. var newIndex = createABox(1,100,false,'staticObject1'); document.getElementById('dragableBoxContent' + newIndex).innerHTML = htmlContentOfNewBox; document.getElementById('dragableBoxHeader_txt' + newIndex).innerHTML = titleOfNewBox; }else{ // Box is stored in cookie - all we have to do is to move content into it. document.getElementById('dragableBoxContent' + staticObjectArray['staticObject1']).innerHTML = htmlContentOfNewBox; document.getElementById('dragableBoxHeader_txt' + staticObjectArray['staticObject1']).innerHTML = titleOfNewBox; } hideHeaderOptionsForStaticBoxes(staticObjectArray['staticObject1']);