// JavaScript Document
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


<!--
function enableField(formName, checkBox, arrayName, numberOfElements){

	var is_checked = eval("window.document."+formName+"."+checkBox+".checked");

	if (is_checked == true)

	{
		for(i=1; i <= numberOfElements; i++){
		thisElement = arrayName+i;
		eval("document.form1."+thisElement+".disabled=false");
		
		}
	}
	
	if (is_checked == false)
	{
		for(i=1; i <= numberOfElements; i++){
		thisElement = arrayName+i;
		eval("document.form1."+thisElement+".disabled=true");
		//document.form1.thisElement.disabled=true;
		}
	}

} //END FUNCITON

function disableField(formName, checkBox, arrayName, numberOfElements){

var is_checked = eval("window.document."+formName+"."+checkBox+".checked");


	
	if (is_checked == true)
	{
		if(numberOfElements==0){
			thisElement = arrayName;
			eval("document.form1."+thisElement+".disabled=true");
			}
		if(numberOfElements>=1){
		for(i=1; i <= numberOfElements; i++){
		thisElement = arrayName+i;
		eval("document.form1."+thisElement+".disabled=true");
		
			}//END FOR
		}//END MULTI
	}//END CHECKED
	
	if (is_checked == false)

	{
		if(numberOfElements==0){
			thisElement = arrayName;
			eval("document.form1."+thisElement+".disabled=false");
			}//END SINGLE IF
			
		if(numberOfElements>=1){
		for(i=1; i <= numberOfElements; i++){
		thisElement = arrayName+i;
		eval("document.form1."+thisElement+".disabled=false");
				}//END FOR
		
		}//END MULTI
	}//END IF FALSE

} //END FUNCITON

function countCharacters(inputText){

return inputText.length;

}


function SetOpacity(cntrlID, opacity){

   document.getElementById(cntrlID).style.filter = 'alpha(opacity=' + opacity + ')';
   document.getElementById(cntrlID).style.mozOpacity = opacity /100;
   document.getElementById(cntrlID).style.opacity = opacity /100;
   
	
	
}

function isValidEmail(str) {

   return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);
 


}

function SetVisibity(cntrl){


	if(cntrl.style.display == 'inline'){
	
		cntrl.style.display = 'none';
	
	}else{
	
		cntrl.style.display = 'inline';
		
	}


}

//-->
