
		function getHtmlValue(objStr)
		{					
			return eval(objStr).value;
		}	
		
		function setHtmlValue(objStr, value)
		{	
			return eval(objStr).value = value;
		}

		function getElement(idFrame, idElement)
		{
			var doc = getFrameDocument(idFrame);		
			return doc.getElementById(idElement);
		}
		
		function getValueElement(idFrame, idElement)
		{		
			return getElement(idFrame, idElement).value;
		}			

		function setValueElement(idFrame, idElement, value)
		{		
			getElement(idFrame, idElement).value = value;		
		}
		
		function formSubmit(idFrame, idForm)
		{
			var doc = getFrameDocument(idFrame);
			doc.getElementById(idForm).submit();		
		}
		
		function getFrameDocument(aID) 
		{
			var rv = null; 
			
			if(aID)
			{
				if (top.document.getElementById(aID).contentDocument)
				{
					rv = top.document.getElementById(aID).contentDocument;
				} 
				else 
				{
					rv = top.document.frames[aID].document;
				}
			}
			else
			{
				rv = window.document;
			}
			
			return rv;
		}
		
		function evalJs(evalStr)
		{
			eval(evalStr);
		}
		
		
		function getElementsForm(idFrame, idForm)
		{
			var form = getElement(idFrame, idForm);					
			var cant = form.elements.length;
			var elements = form.elements;
			for(i=0; i<cant; i++)
			{	
				if(elements[i].type=="text" || elements[i].type=="hidden")
				{
					getElement('', 'objKna').setVarRio(elements[i].id, elements[i].value);
				}
				
			}			
		}
