﻿//Menu Functions

//Home Page
function MainPage()
{            
    window.open("/Default.aspx?Lang=1","_self");
}

//Solutions and services
  // Healthcare
function ProductHealth()
{            
    window.open("/SolutionServices_Healthcare.aspx?Lang=1","_self");
}
//E- business Management
function ProducteBusiness()
{            
    window.open("/SolutionServices_EBusiness.aspx?Lang=1","_self");
}
//Training and Consultancy
function Training()
{            
    window.open("/SolutionServices_Training.aspx?Lang=1","_self");
}   

//Support
function Support()
{
    window.open("/Support.aspx?Lang=1","_self");
}
// Client
function Career()
{            
    window.open("/Career.aspx?Lang=1","_self");
}

//Contact us

function Contactus()
{            
    window.open("/Contact_Detail.aspx?Lang=1","_self");
}

//Arabic Menu Functions

//Home AR
function MainPageAr()
{            
    window.open("/Default.aspx?Lang=0","_self");
}

// *solutions and services Ar

// healthcare Ar

function ProductHealthAr()
{            
    window.open("/SolutionServices_Healthcare.aspx?Lang=0","_self");
}
// E-Business managment Ar
function ProducteBusinessAr()
{            
    window.open("/SolutionServices_EBusiness.aspx?Lang=0","_self");
}
// Training and consultancy Ar
function ProductTrainingAr()
{            
    window.open("/SolutionServices_Training.aspx?Lang=0","_self");
}       

//Support Ar

function SupportAr()
{            
    window.open("/Support.aspx?Lang=0","_self");
}

//Contact us Ar

function ContactusAr()
{            
    window.open("/Contact_Detail.aspx?Lang=0","_self");
}
// Client Ar
function CareerAr()
{            
    window.open("/Career.aspx?Lang=0","_self");
}

//Method To Reset All Field in A Page. 

//--------------------------------------        
function Reset() 
{
    var e=document.getElementsByTagName("input");
    
            for(var i=0;i<e.length;i++)
            {
                if(e[i].type == "text")
                {
                    
                             e[i].value = "";
                             e[i].style.backgroundColor="#FFFFFF";
                         
                }//end if
            } //end for
 
    
    var e=document.getElementsByTagName("textarea");

    for(var j=0;j<e.length;j++)
    {
        if(e[j].type == "textarea")
        {
            e[j].value = "";
            e[j].style.backgroundColor="#FFFFFF";
        }
    }
     
    var e=document.getElementsByTagName("select");

    for(var x=0;x<e.length;x++)
    {
            e[x].selectedIndex = 0; 
    }

    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
    {
        if(e[i].type == "checkbox" || e[i].type == "radio")
        {
            e[i].checked = "";
        }
    }
  } 
  // Methode to add the website to the client bookmark or faviorate
  
  function AddToClientBookmark()
  {
    //Hide script from older browsers // script by http://www.hypergurl.com 
    var urlAddress = "http://www.v-ia.com"; 
    var pageName = "Via Technology";
  if (window.external) 
  { 
 
    window.external.AddFavorite(urlAddress,pageName) 
  }
  else { alert("Sorry! Your browser doesn't support this function."); 
    
  }

// -->

  }
  
  function NotEmpty(source, arguments)
    {
       
      var xx = document.getElementById("imgVal");
       
         if (arguments.Value == xx.value)
           { 
            arguments.IsValid = true;
            }
          else
          {
            arguments.IsValid = false;
            
           }
           
    }
