function ShowLoadingDiv(id){
	var tag = document.getElementById(id)
	tag.className = "clew_loading";
	tag.innerHTML = "<img src='/images/loading.gif' />";
}

function EnabledFalse(mid)
{
    var reg=document.getElementById(mid)
    reg.disabled = true;
}


function openWindow(url,width,height,txtID1,txtID2)
{
    var retValue = window.showModalDialog(url,"","dialogWidth=" +  width+ ";dialogHeight=" +  height+ ";status=no;help=no;scrollbars=no");
    var stringArray = retValue.split(",");
    document.getElementById(txtID1).value = stringArray[0];
    document.getElementById(txtID2).value = stringArray[1];
}

function openWindowNoReturn(url,width,height)
{
    var retValue = window.showModalDialog(url,"","dialogWidth=" +  width+ ";dialogHeight=" +  height+ ";status=yes;help=yes;scrollbars=no");   
}

function openWindowPrecontract(url,width,height)
{
    var retValue = window.showModalDialog(url,"","dialogWidth=" +  width+ ";dialogHeight=" +  height+ ";status=yes;help=yes;scrollbars=no");
}

function PostUpdatePanel(upID)
{
      __doPostBack(upID,'');
}

function SetIframUrl(iframID,url)
{
    var ifram = document.getElementById(iframID);
    ifram.src = url;
}


function AccountCenterLeftClick(url,iframHeight)
{
    var ifram = document.getElementById("main");
    ifram.src = url;
    ifram.height = iframHeight;
}

function RedirectUrl(url)
{
    window.location.href = url;
}


function ShowImg(o,imgID){    
   document.getElementById(imgID).src = o.files[0].getAsDataURL();    
  
}


        function ShowModalPopup(modeBehaviorlID)
        {
            var modalPopupBehavior = $find(modeBehaviorlID);
            modalPopupBehavior.show();
        }
        
       function HideModalPopup(modeBehaviorlID)
        {
            var modalPopupBehavior = $find(modeBehaviorlID);
            modalPopupBehavior.hide();
        }

function LoginSelf() {
    tipsWindown("", "iframe:/Account/AccountLogin/self.html", "700", "400", "true", "", "true", "leotheme");
}

function LoginUrl(url) {
    tipsWindown("", "iframe:/Account/AccountLogin.html?ReturnUrl=" + url, "700", "400", "true", "", "true", "leotheme");
}

function LoginOut() {
    var url = '/Interface/LoginOut.html?ReturnUrl=' + window.location.href;
    window.location.href = url;
}

function ShowWindowUrl(url) {
    tipsWindown("", "iframe:" + url, "700", "400", "true", "", "true", "leotheme");
}

function ShowWindowUrl1(url, width, height) {
    tipsWindown("", "iframe:" + url, width, height, "true", "", "true", "leotheme");
}


