function checkAlphaNum( str ) {

var myRegxp = /^([a-zA-Z0-9_-]+)$/; 
if(myRegxp.test( str )==false) 
{ 
return false;
} 
}
