// JavaScript Document
<!--//This script is made by Hamad Belshalat
    //Please do not remove these comments
    //Thank You
 // Main function for changing the theme
 function changeStyle(title) {

   if (document.getElementsByTagName) {

    var i, link;

     for (i=0; (link=document.getElementsByTagName("link")[i]); i++) {
       if (link.getAttribute("rel")!=-1&&link.getAttribute("title")) {
        link.disabled=true;
 
         if (link.getAttribute("title")==title) {
          link.disabled=false;
         }
       }
     }
   }
 createCookie("style",title,30);
 }
  function createCookie(name,value,hours) {
   var expires = "";

    if (hours!=null) {
     expire=new Date((new Date()).getTime() + hours * 3600000);
     expire="; expires="+expire.toGMTString();
    }

       document.cookie=name + "=" + value + expire;
  }

  function readCookie() {
   var cValue=0;
   if (document.cookie.indexOf("style1")!=-1) changeStyle('style1');
   if (document.cookie.indexOf("style2")!=-1) changeStyle('style2');
 } readCookie()
//-->



function ValidateFormlogin()

{


	if (document.login.username.value == "")
	{
		alert("Error : Missing the User Name ")
	document.login.username.focus()
		return false;
	}
	if (document.login.password.value==""){
		alert("Error : Missing the Password ")
		document.login.password.focus()
		return false
	}
 }
var digits = "0123456789";
var phoneNumberDelimiters = "()- ,";
var validWorldPhoneChars = phoneNumberDelimiters + "+";
var minDigitsInIPhoneNumber = 10;
function isInteger(s)

{   var i;

    for (i = 0; i < s.length; i++)

    {
        var c = s.charAt(i);

        if (((c < "0") || (c > "9"))) return false;

    }
    return true;

}


