shipid_tf  = document.getElementById('shipid_tf');

var cssNode = document.createElement('link');
cssNode.type = 'text/css';
cssNode.rel = 'stylesheet';
cssNode.href = 'http://www.shipid.com/css/tracking_form.css';
cssNode.media = 'screen';
shipid_tf.appendChild(cssNode);

shipid_tf_top = document.createElement("div");
shipid_tf_bottom = document.createElement("div");

shipid_tf.className = "roundcont_"+shipid_tf_theme;

shipid_tf_top.className = "roundtop_"+shipid_tf_theme;
shipid_tf_top.innerHTML = '<img src="http://www.shipid.com/pic/tf_'+shipid_tf_theme+'_tl.gif" alt="" width="15" height="15" class="corner" style="display: none" />';

shipid_tf_bottom.className = "roundbottom_"+shipid_tf_theme;
shipid_tf_bottom.innerHTML = '<img src="http://www.shipid.com/pic/tf_'+shipid_tf_theme+'_bl.gif" alt="" width="15" height="15" class="corner" style="display: none" />';

shipid_tf_middle = document.createElement("p");

box_width = "";

if(shipid_tf_box==1){
   shipid_tf_label  = document.createElement("div");
   box_width = 216;
}
else if(shipid_tf_box==2){
   shipid_tf_label  = document.createElement("span");
   box_width = 298;
}
if(shipid_tf_text_color==""){}else{shipid_tf_label.style.color=shipid_tf_text_color;}
if(shipid_tf_box_width==""){} else{box_width = parseInt(shipid_tf_box_width);}

shipid_tf.style.width = box_width+"px";
shipid_tf.style.textAlign="left";

shipid_tf_label.innerHTML = shipid_tf_text1;
shipid_tf_form   = document.createElement("form");
shipid_tf_form.target = "_blank";
shipid_tf_form.action = "http://www.shippingline.org/track/";
shipid_tf_form.method = "GET";
shipid_tf_input  = document.createElement("input");
shipid_tf_input.type="text";
shipid_tf_input.size=12;
shipid_tf_input.name="container";
shipid_tf_input.maxlength = 15;
shipid_tf_button = document.createElement("input");
shipid_tf_button.type  = "submit";
shipid_tf_button.value = shipid_tf_text2;

shipid_tf_form.appendChild(shipid_tf_label);
shipid_tf_form.appendChild(shipid_tf_input);
shipid_tf_form.appendChild(shipid_tf_button);




shipid_tf_info = document.createElement("div");
shipid_tf_info.style.position="absolute";
shipid_tf_info.style.zIndex="333";
shipid_tf_info.style.lineHeight = "9px";
shipid_tf_info.style.fontSize = "9px";
shipid_tf_info.innerHTML = '<a target="_blank" href="http://www.shippingline.org/tracking/form/"><img src="http://www.shipid.com/pic/info.png" border="0" title="Free tracking form on your site"></a>';
shipid_tf_info.style.marginTop="-13px";
shipid_tf_info.style.marginLeft=(box_width-32)+"px";
shipid_tf_info.style.textAlign="right";

shipid_tf_middle.appendChild(shipid_tf_info);  

shipid_tf_middle.appendChild(shipid_tf_form);

if(shipid_tf_theme=="empty"){}else{
shipid_tf.appendChild(shipid_tf_top);
}
shipid_tf.appendChild(shipid_tf_middle);
if(shipid_tf_theme=="empty"){}else{
shipid_tf.appendChild(shipid_tf_bottom);  
}
