function validate_phone(frm, field, fieldname, fieldlabel, msg)
{
	var phno=field.value;
	phno=trim(phno);
    for(var i=0;i<phno.length;i++)
	{
	   var chk=returnASCII(phno.charAt(i));
	 /*  if(chk==32)
       {
            alert("Spaces are not allowed in "+fieldlabel);
            field.focus();
            return false;
       }*/
		if((i==0 && chk<=122 && chk>=92)|| (i==0 && chk>=65 && chk<=90)||(i==0 && chk==46) || (i==0 && chk==45)|| (i==0 && chk==41))
		{
			alert( fieldlabel+" cannot start with character  "+returnCharFromAscii(chk)+".  You should start with numeric or +,(.");
			 field.focus();
			return false;
		}
	   if((chk==42) || (chk==44) || (chk==47) || (chk<=39 && chk > 32) || (chk < 32) ||(chk<=64 && chk>=58) || (chk<=96 && chk>=91) || (chk<=255 && chk>=123))
		{
			//alert(chk);
			alert("The character  "+returnCharFromAscii(chk)+"  is not allowed in "+fieldlabel+".");
			 field.focus();
			return false;
		}
	}
	return true;
}

function validate_phone_german(frm, field, fieldname, fieldlabel, msg)
{
	var phno=field.value;
	phno=trim(phno);
    for(var i=0;i<phno.length;i++)
	{
	   var chk=returnASCII(phno.charAt(i));
	 /*  if(chk==32)
       {
            alert("Spaces are not allowed in "+fieldlabel);
            field.focus();
            return false;
       }*/
		if((i==0 && chk<=122 && chk>=92)|| (i==0 && chk>=65 && chk<=90)||(i==0 && chk==46) || (i==0 && chk==45)|| (i==0 && chk==41))
		{
			alert( fieldlabel+" kann nicht gestartet werden mit Charakter  "+returnCharFromAscii(chk)+".   Sie sollten mit numerischen oder +,(.");
			 field.focus();
			return false;
		}
	   if((chk==42) || (chk==44) || (chk==47) || (chk<=39 && chk > 32) || (chk < 32) ||(chk<=64 && chk>=58) || (chk<=96 && chk>=91) || (chk<=255 && chk>=123))
		{
			//alert(chk);
			alert("Der Charakter  "+returnCharFromAscii(chk)+"   ist nicht erlaubt in "+fieldlabel+".");
			 field.focus();
			return false;
		}
	}
	return true;
}

