// onKeyUp="ach(this)" is used to tap the wrong charector " ' "

var errors='';
function foc()
{ document.forms[0].elements[0].focus();
}

var oldval="";

function ach(obj1)
{
	
var e="";
var x,l;
x=obj1.value;

l=x.length;
var actstr="";
for(i=0;i<l;i++)
 { s=x.substring(i,i+1);
   if(s=="\'" || s=="\"" || s==":")
    {e="There are some illegal charectors which will be removed from " + obj1.name ;
     alert(s + " is an illegal charector");
     break;
    }
    else
    {
     actstr=actstr + s;
    }
 }

if(i==l)
{oldval=x;
}
else if(i!=l)
{obj1.value=oldval;
}

}

