
function checkAll(field)
{
for (loop=0; loop < field.length; loop++)
{
field[loop].checked = true;
}
}

function unCheckAll(field)
{
for (loop=0; loop < field.length; loop++)
{
field[loop].checked = false;
}
}

/* function checkAll(chk) {
  chk = document.getElementsById(chk);
    for (i = 0; i < chk.length; i++)
    chk[i].checked = true ;
  }

function uncheckAll(chk) {
  chk = document.getElementsById(chk);
    for (i = 0; i < chk.length; i++)
    chk[i].checked = false ;
  } */


function loadPage(list) {
  
    location.href=list.options[list.selectedIndex].value
  
}


function mask(f){
	tel='';
	var val =f.value.split('');
	for(var i=0;i<val.length;i++){
	if(i==0){val[i]='('+val[i]}
	if(i==2){val[i]=val[i]+')'}
	if(i==5){val[i]=val[i]+'-'}
	tel=tel+val[i]
	}
	f.value=tel;
	} 

