	function isEMail(email)
		{
			email_ok=/^[0-9a-z.\-_]+(@|\(at\))+[0-9a-z._\-]+\.[a-z]{2,3}$/i;
            return email_ok.test(email);
					}

		function trim(txt)
		{
			while ( txt.charAt(0) == ' ' )
				txt = txt.substring(1, txt.length);
			while ( txt.charAt(txt.length - 1) == ' ' )
				txt = txt.substring(0, txt.length - 2);
			return txt;
		}

		function NoLiteral(txt,len,ismax)
		{
        veryfi=/^[0-9.()\[\]_\-]{1,}$/;
        if (ismax) {if (veryfi.test(txt) & (txt.length == len)) return true; else return false;} else
                     if (veryfi.test(txt) & !(txt.length < len)) return true; else return false;
                }

		function LiteralOnly(txt,len,ismax)
		{
         veryfi=/^[a-zA-Z¥ÊÆ£ÑÓŒ¯ ¹êæ³ñóœ¿Ÿ\-_]{1,}$/;
        if (ismax) {if (veryfi.test(txt) & (txt.length == len)) return true; else return false;} else
                     if (veryfi.test(txt) & !(txt.length < len)) return true; else return false;
        
        }
function NumberOnly(txt)
		{
        veryfi=/^[0-9]{1,}$/;
        if (veryfi.test(txt)) return true; else return false;
                }


function expand(sec)
{
     thisSec = eval('e' + sec);
     if (thisSec != null){
          if (thisSec.length){
               if (thisSec[0].style.display != 'none'){
                    for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'none'}
               }
               else{
                    for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'inline'}
               }
          }
          else{
                         if (thisSec.style.display != 'none')     {thisSec.style.display = 'none'}
               else{thisSec.style.display = 'inline'}
          }
     }

}