function Find(sId){
	if (document.all) return document.all[sId];
	if (document.getElementById) return document.getElementById(sId);
	return false;
}

function PollCheckRadioForm(){
	var sRadioButtonValue = oPollRadioGroup.GetSelectedValue();
	var oForm = document.getElementById('frmPolls');
	if(sRadioButtonValue == null){
		alert(oForm.EmptyRadioFieldErrorMessage);
	}else{
		oForm.submit();
	}
}

function ShowHiddenContent(sID){
   // Hide all others
   var Object = document.getElementById(sID);
 
  
   if(Object.style.display == "none"){
        Object.style.display = "";
   }else{
        Object.style.display = "none";
   } 
	oOpened = Object; 
}
function ShowHide(Object, sName, bHideOthers){
   // Hide all others
   if(bHideOthers){
      var nCount = 1;
		while(true){
            if(document.getElementById(sName + nCount)){
                 if(Object.id != sName + nCount)
                    document.getElementById(sName + nCount).style.display = "none";
            }else{
                break;          
            } 
            nCount++;       
       }
    }
  
   if(Object.style.display == "none"){
        Object.style.display = "";
   }else{
        Object.style.display = "none";
   } 
	oOpened = Object; 
}

function OpenMapPopUp(url){
	Controls.WindowHelper.Open(url, 488, 328);
	return false;
}