<!--
function openCenterWindow(file, name, width, height, options) {
	leftVal = (screen.width - width) / 2;
	topVal = (screen.height - height) / 2;
	
	if(typeof(popupWin) != "Object") {
		popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
	}
	else {
		if(!popupWin.closed) {
			popupWin.location.href = file;
		}
		else {
			popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
		}
	}
	popupWin.focus();

}


function DoUpload() {
  var inpFile = document.getElementById("AdminPanel_UploadFile_inpFile");
  if(inpFile.value != "") {
	theFeats = "height=140,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("progressbar.aspx?ProgressID=" + theUniqueID, theUniqueID, theFeats);
	var theForm = document.forms['Form1'];
    if (!theForm) {
        theForm = document.Form1;
    }
	theForm.action = "admin.aspx?UploadID=" + theUniqueID;
  }
}

function DoUpload_AF() {
  var inpFile = document.getElementById("inpFile");
  if(inpFile.value != "") {
	/*theFeats = "height=140,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("../progressbar.aspx?ProgressID=" + theUniqueID, theUniqueID, theFeats);*/
	var theForm = document.forms['Form1'];
    if (!theForm) {
        theForm = document.Form1;
    }
	theForm.action = "upload.aspx?uid=" + getQueryVariable("uid") + "&UploadID=" + theUniqueID;
	theForm.submit();
	return true;
  }
}

function DoUpload_CF() {
  var inpFile = document.getElementById("inpFile");
  if(inpFile.value != "") {
	theFeats = "height=140,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no";
	theUniqueID = (new Date()).getTime() % 1000000000;
	window.open("../progressbar.aspx?ProgressID=" + theUniqueID, theUniqueID, theFeats);
	var theForm = document.forms['Form1'];
    if (!theForm) {
        theForm = document.Form1;
    }
	theForm.action = "upload_cf.aspx?uid=" + getQueryVariable("uid") + "&UploadID=" + theUniqueID;
	theForm.submit();
	return true;
  }
}

function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  } 
}

function CheckUserType(rbl) {
	
	var rblList = rbl.getElementsByTagName("INPUT");
	if(rblList[0].checked == true) {
		document.getElementById("AdminPanel_UserInfo_cbSendEmail").removeAttribute("disabled");
	}
	else {
		document.getElementById("AdminPanel_UserInfo_cbSendEmail").setAttribute("disabled", "disabled");
		document.getElementById("AdminPanel_UserInfo_cbSendEmail").checked = false;
	}
}


-->









