
        function s1()
            {
            var_tags=document.getElementsByTagName("help");
            var str="helpPresent.do?pageId=NoHelp";
            if(var_tags!=null){
                if (var_tags.length>0)
                {
                        var var_tag=var_tags[0];
		        str="helpPresent.do?pageId="+var_tag.id;
                        
                }
             }
            window.open(str,'help','width=870,height=600,scrollbars=yes').focus();
            
            return false;
        }
        function s2(str_page)
        {
            str="helpPresent.do?pageId="+str_page;
            window.open(str,'help','width=900,height=700, resizable=yes, scrollbars=yes').focus();
            return false;
        }

        function closeHelpBox(){
                div_tag = document.getElementById("HelpBox");
                body_tag = document.getElementsByTagName("body");
                body_tag[0].removeChild(div_tag);
                
                return false;
        }
        function showHelpBox(img_obj,msg_key,box_size){
            box_height=0;
            box_width=0;
            if (box_size==1){
                box_height=50;
                box_width=250;
            }else if (box_size==2){
                box_height=50;
                box_width=400;
            } else if (box_size==3){
                box_height=100;
                box_width=250;
            } else if (box_size==4){
                box_height=100;
                box_width=400;
            }
            curleft=0;
            curtop=0;
            obj1= img_obj;
            do {
			curleft += obj1.offsetLeft;
			curtop += obj1.offsetTop;
            } while (obj1 = obj1.offsetParent);
            
            if (curtop+box_height+150 > screen.height){
                curtop=curtop-box_height-5;
            }else{
                curtop=curtop+20;
            }
            if (curleft+box_width+50 > screen.width){
                curleft=curleft-box_width;
            }else{
                curleft=curleft;
            }

            div_tag = document.createElement("div");
            div_tag.id="HelpBox";
            div_tag.style.height = box_height;
            div_tag.style.width = box_width;
            div_tag.style.left = curleft;                
            div_tag.style.top = curtop;                
            div_tag.style.background='white';
            div_tag.style.border="1px solid black";
            div_tag.style.zindex=1000;
            div_tag.style.position= "absolute";
            text_innerhtml ='<div style="BACKGROUND: #21497c; color: white;zindex:1000;" > <b> &nbsp;&nbsp;&nbsp; Help</b></div><div style="BACKGROUND: white; color: black; padding-top:5px;padding-left:5px;z-index:1000;" >'+ msg_key + '</div>'
            div_tag.innerHTML = text_innerhtml;
            body_tag = document.getElementsByTagName("body");
            body_tag[0].appendChild(div_tag);
            
            return false;
        }

        function clearInitialText(oldObject,isPassword){
            if(isPassword){
                  var newObject = document.createElement('input');
                  newObject.type = "Password";
                  if(oldObject.size) newObject.size = oldObject.size;
                  if(oldObject.value) newObject.value = "";
                  if(oldObject.name) newObject.name = oldObject.name;
                  if(oldObject.id) newObject.id = oldObject.id;
                  if(oldObject.className) newObject.className = oldObject.className;
                  if(oldObject.tabIndex) newObject.tabIndex = oldObject.tabIndex;
                  oldObject.parentNode.replaceChild(newObject,oldObject);
                  window.tempObject = newObject;
                  setTimeout("tempObject.hasFocus=true;tempObject.focus();",1);
            }else{
                oldObject.value="";
                oldObject.style.color="black";
            }
            
        }

        function setInitialText(obj_field,isPassword,txt_value){
            if (obj_field.value=="")
                obj_field.value=txt_value;
        }

        function changeBtnValue(obj,obj_value){
            obj.value=obj_value;
        }
        function expandBox(boxId,ht){
            
            
            var elementRef = document.getElementById(boxId);
            if (elementRef.style.height == ht){
                elementRef.style.visibility = 'hidden';
                elementRef.style.height = 0;
                elementRef.style.display = 'none';
            }else{
                elementRef.style.visibility = 'visible';
                elementRef.style.height = ht;
                elementRef.style.display = 'block';
            }
            return false;
        }
        

