function getPosition(b){var a;if(dragColRow=="Col"){a=b.clientX+document.getElementById("container").scrollLeft-document.getElementById("workspace:appScreen").offsetLeft||b.pageX||0}return a}function startDragCol(b,a){if(b.button<2){clearSelection();dragColRow="Col";elemCallId=a.id;left=a.offsetLeft;selectDiv.style.left=a.offsetLeft+"px";selectDiv.style.top=a.offsetTop+"px";selectDiv.style.height=a.offsetHeight+"px"}}function adjustChildInputWidth(b,d){var a=b.substr(3);for(var c=1;c<=spreadHeight;c++){document.getElementById(a+"-"+c).style.width=d}}function continueDrag(b){if(dragColRow!="Null"){var a=getPosition(b);nWidth=a-left;if(nWidth>40){selectDiv.style.width=nWidth+"px";selectDiv.style.visibility="visible"}}}function endDrag(a){if(dragColRow!="Null"){reCalcDimensions();clearSelectionDiv()}dragColRow="Null";elemCallId="Null";left=0;nwidth=0}function clearDrag(){clearSelectionDiv();dragColRow="Null";elemCallId="Null"}function reCalcDimensions(){var a=(document.getElementById("grid")).offsetWidth;var c=(document.getElementById("grid")).offsetHeight;if(dragColRow=="Col"){var b=(document.getElementById(elemCallId)).offsetWidth;if(nWidth>40&&nWidth!=b){a+=nWidth-b;(document.getElementById("grid")).style.width=a+"px";(document.getElementById(elemCallId)).style.width=nWidth+"px";if(isMSIE){adjustChildInputWidth(elemCallId,nWidth)}}}};