function CheckAll(Element,Name){
	if(document.getElementById) {
		thisCheckBoxes = Element.parentNode.parentNode.parentNode.getElementsByTagName('input');
		for (i = 1; i < thisCheckBoxes.length; i++){
			if (thisCheckBoxes[i].name == Name)	thisCheckBoxes[i].checked = Element.checked;
		}
	}
}

function AdditionalValidate(source, arguments){
	if (arguments.Value.length<2000){
		arguments.IsValid=true
	}else{
		arguments.IsValid=false
	}
}

function newWin(urlo){
	myWin=open(urlo,"view","width=400,height=400,status=no,toolbar=auto,menubar=no,scrollbars=auto,resizable=yes");
}
            
function initLoginForm()
{
	document.login.UserName.focus();
}

function DeleteOtherCity(idField)
{
	document.getElementById(idField).value='';
}

function DisableButtons(){
	if (!IsSmthClicked){
		IsSmthClicked=true;
		return true;
	}else{
		return false;
   }
}
