function markAll()
{f=document.forms[0];
 for(i=0;i<f.elements.length;i++)
  {if(f.elements[i].name=="yes_country") 
       if(!f.elements[i].checked) f.elements[i].click();
  }
}

function checkAll() {
for (var j = [1]; j <= [29]; j++) {
box = eval("document.pref.yes_country" + j);
if (box.checked == false) box.checked = true;
   }
}

function modify_boxes(to_be_checked,total_boxes){
  	for ( i=0 ; i < total_boxes ; i++ ){
  	  	if (to_be_checked){
  	document.forms[0].yes_country[i].checked=true;
}
  	  	else{
  	  	
	document.forms[0].yes_country[i].checked=false;
  	  	}
  	} 	 
}
	 

function unmarkAll()
{f=document.forms[0];
 for(i=0;i<f.elements.length;i++)
  {if(f.elements[i].name=="yes_country") 
       if(f.elements[i].checked) f.elements[i].click();
  }
}

function popup_thing (input_url,w,h,s) {
 window.open(input_url,"_blank","height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars="+s+",status=0,toolbar=0");
}

function popup_thing_menu (input_url,w,h,s) {
 window.open(input_url,"_blank","height="+h+",width="+w+",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=1,resizable=1,scrollbars="+s+",status=0,toolbar=0");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function popupflex(url,height) {
    window.open(url , 'LookList', 'height='+height+',width=230,top=70,right=400,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no');
  }

//Highlight Table Cells Script-- By Dynamic Drive
//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com

var ns6=document.getElementById&&!document.all
var ie=document.all

function changeto(e,highlightcolor){
source=ie? event.srcElement : e.target
if (source.tagName=="TR"||source.tagName=="TD")
return
while(source.tagName!="TD"&&source.tagName!="HTML")
source=ns6? source.parentNode : source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function contains_ns6(master, slave) { //check if slave is contained by master
while (slave.parentNode)
if ((slave = slave.parentNode) == master)
return true;
return false;
}

function changeback(e,originalcolor){
if
(ie&&(event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")||source.tagName=="TR"||source.tagName=="TABLE")
return
else if (ns6&&(contains_ns6(source, e.relatedTarget)||source.id=="ignore"))
return
if (ie&&event.toElement!=source||ns6&&e.relatedTarget!=source)
source.style.backgroundColor=originalcolor
}

var ns6=document.getElementById&&!document.all




