function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}

function callsub()
{
	if(In_validationsecond())
	{
	   document.compose.submit();
	}
}

function In_validationsecond() {
var to = window.document.compose.messagenosecond;

   if (isInteger(to.value) != true)
   {
	alert("Only Numbers are Allowed in Mobile Field.");
	to.focus();
	return false;
   } 

   if ((to.value.length < 10) || (to.value.length > 12))
   {
	alert("Not a Valid Mobile Number");
	to.focus();
	return false;
   }	

   if(to.value=="")
   {
   	alert("Please Enter your mobile number");
   	to.focus();
	return false;
   } 
   else { 
	return true; }

}

function OrderNow(sub) {
var sub1 = "Software Enquiry";
window.open("http://www.dataInfocom.in/order-now.asp?title="+sub+"&subject="+sub1,"","resizable=no top=0,status=0,width=600,height=500")
}
