function IsNumeric(strString)
   {
   var strValidChars = "0123456789";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }
function GetCall()
        {
            
        var mobileno = document.getElementById("txtCellphone").value;
        if(document.getElementById("txtCellphone").value == "" )
		{
			alert( "Please enter Your Mobile Number" );
			document.getElementById("txtCellphone").focus();
			return false;
		}
      	if(IsNumeric(document.getElementById("txtCellphone").value) == false )
		{
		    alert("Please enter only Numbers");
		    document.getElementById("txtCellphone").focus();
		    return false;
		}
		if(document.getElementById("txtCellphone").value.length < 10 )
		{
			alert( "Please check your cell Number length");
			document.getElementById("txtCellphone").focus();
			return false;
		}
		if(mobileno.charAt(0) != "9" && mobileno.charAt(0) != "8"  && mobileno.charAt(0) != "7" )
	    {
		alert("Enter Valid Mobile Number");
		document.getElementById("txtCellphone").focus();
		return false;
	    }
	    if(isNaN(mobileno)||mobileno.indexOf(" ")!=-1)
        {
            alert("Enter Valid Mobile Number")
            document.getElementById("txtCellphone").focus();
		    return false;
        }
        HitIframe();
        }
function CallMessage()
{
    alert("You will get a call shortly from shyam advisory");
}
function HitIframe()
{
    //var Callurl = "http://203.196.138.164:7779/sendobd/?keyword=shyam&apptype=c2c&sendobd="+document.getElementById("txtCellphone").value;
    var Callurl = "http://203.122.59.16:8080/sendobd/?keyword=shyam&apptype=c2c&sendobd="+document.getElementById("txtCellphone").value;
    document.getElementById("iframe_call").src=Callurl
    setTimeout("CallMessage()",3000)
}

