// JavaScript Document
 function redio_checkbox_checked(FormName,FieldName){
 	count=0;
		if(!document.forms[FormName])
			return;
		var objCheckBoxes = document.forms[FormName].elements[FieldName];
		if(!objCheckBoxes)
			return;
		var countCheckBoxes = objCheckBoxes.length;
		if(!countCheckBoxes){
		}else{
		for(var i = 0; i < countCheckBoxes; i++) 
			 if(objCheckBoxes[i].checked==true){count =count+1;}
		 }
		return count; 
 
 }
 

/**
 * DHTML textbox character counter script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */



	
function checkLimit(Object, MaxLen)
{ 
 if(Object.value.length >= MaxLen){
	 alert('limit over') ;
	 return false;
 }

}
maxL=1000;
function taLimit(taObj) {
	if (taObj.value.length == maxL) {alert('limit over') ;return false;}
	return true;
}

function taCount(taObj,Cnt) { 
	objCnt=createObject(Cnt);
	objVal=taObj.value;
	if (objVal.length>maxL) objVal=objVal.substring(0,maxL);
	if (objCnt) objCnt.value=maxL-objVal.length;
	return true;
}
function createObject(objId) {
	if (document.getElementById) return document.getElementById(objId);
	else if (document.layers) return eval("document." + objId);
	else if (document.all) return eval("document.all." + objId);
	else return eval("document." + objId);
}
