 function openwindow(url) 
            {    
                var options = 'scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes';    
                options += ',width=' + screen.availWidth + ',height=' + screen.availHeight;    options += ',screenX=0,screenY=0,top=0,left=0';    
                var win = window.open(url, '', options);    win.focus();    
                win.moveTo(0, 0);
            }
     
      function openwindowSame(url) 
            {    
                /*var options = 'scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes';    
                options += ',width=' + screen.availWidth + ',height=' + screen.availHeight;    options += ',screenX=0,screenY=0,top=0,left=0';    
                var win = window.open(url, '', options);    win.focus();    
                win.moveTo(0, 0);*/
                window.location.href=url;
            }
            
            function ChangeSubMenuClass()
            {
                for(var i=0;i<7;i++)
                {
                    
                }
            }
            
             function opengamewindow(url) 
            {    
                var leftPos=0;
                var topPos=0;
                leftPos=(screen.width/2)-400/2;
                topPos=(screen.height/2)-600/2;
                
                /*alert(leftPos);*/
                
                var options = 'scrollbars=yes,resizable=yes,status=yes,toolbar=yes,menubar=yes,location=yes';    
                options += ',width=600px,height=550px' ;    options += ',screenX=0,screenY=0,top='+ topPos +'px,left=' + leftPos + 'px';    
                var win = window.open(url, '', options);    win.focus();    
                //win.moveTo(0, 0);
            }
            
            function imposeMaxLength(Object, MaxLen)
{
  return (Object.value.length <= MaxLen-1);
}
