function GotoLogin() {
	if(event.keyCode==13) {
		event.keyCode=null;
		document.all.UcMainTopMenu1_ibtnLogin.click();
	}
}

function pageWidth()
{
    return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;
}

function pageHeight()
{
    return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;
}
 
function CenterObj(ObjId){
    var scrollPos; 
    if (typeof window.pageYOffset != 'undefined') { 
       scrollPos = window.pageYOffset; 
    } 
    else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') { 
       scrollPos = document.documentElement.scrollTop; 
    } 
    else if (typeof document.body != 'undefined') { 
       scrollPos = document.body.scrollTop; 
    }
    //////////////////////////////////////////////////////////////
    var Obj=document.getElementById(ObjId);
    Obj.style.marginLeft=parseInt((pageWidth()-parseInt(Obj.style.width))/2);
    Obj.style.marginTop=scrollPos+parseInt((pageHeight()-parseInt(Obj.style.height))/2)-20;
}