function CheckIfEnglish( String )
{ 
    var Letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890-";
     var i;
     var c;
      if(String.charAt( 0 )=='-')
return false;
      if( String.charAt( String.length - 1 ) == '-' )
          return false;
     for( i = 0; i < String.length; i ++ )
     {
          c = String.charAt( i );
  if (Letters.indexOf( c ) < 0)
     return false;
     }
     return true;
}


function submitchecken() 
{

	if (!CheckIfEnglish(document.frmsearchInt.name.value )) 
	{
	alert("Only lettters, numbers and simbol '-' allowed.");
	document.frmsearchInt.name.focus();
	return false;
	}
return true;
}
