
IsHTML4Ok = 
	(((navigator.appName == "Netscape") && 
	(parseInt(navigator.appVersion) >= 3 )) || 
	((navigator.appName == "Microsoft Internet Explorer") && 
	(parseInt(navigator.appVersion) >= 4 )));

    if (document.images)
    { 
    
         line21 = new Image();
         line21.src = "images/line21.jpg";     
         line21on = new Image();
         line21on.src = "images/line21on.jpg"; 
         
         line22 = new Image();
         line22.src = "images/line22.jpg";     
         line22on = new Image();
         line22on.src = "images/line22on.jpg"; 
               
         line23 = new Image();
         line23.src = "images/line23.jpg";     
         line23on = new Image();
         line23on.src = "images/line23on.jpg"; 
         
         line24 = new Image();
         line24.src = "images/line24.jpg";     
         line24on = new Image();
         line24on.src = "images/line24on.jpg"; 
         
         line25 = new Image();
         line25.src = "images/line25.jpg";     
         line25on = new Image();
         line25on.src = "images/line25on.jpg"; 
         
         line26 = new Image();
         line26.src = "images/line26.jpg";     
         line26on = new Image();
         line26on.src = "images/line26on.jpg";     
                       
         line27 = new Image();
         line27.src = "images/line27.jpg";     
         line27on = new Image();
         line27on.src = "images/line27on.jpg";   
                       
         line28 = new Image();
         line28.src = "images/line28.jpg";     
         line28on = new Image();
         line28on.src = "images/line28on.jpg";   
                       
         line29 = new Image();
         line29.src = "images/line29.jpg";     
         line29on = new Image();
         line29on.src = "images/line29on.jpg";   
                       
         line210 = new Image();
         line210.src = "images/line210.jpg";     
         line210on = new Image();
         line210on.src = "images/line210on.jpg";   
         
         menu1 = new Image();
         menu1.src = "images/menu1.jpg";     
         menu1on = new Image();
         menu1on.src = "images/menu1on.jpg";   
         
         menu2 = new Image();
         menu2.src = "images/menu2.jpg";     
         menu2on = new Image();
         menu2on.src = "images/menu2on.jpg";   
         
         menu3 = new Image();
         menu3.src = "images/menu3.jpg";     
         menu3on = new Image();
         menu3on.src = "images/menu3on.jpg";   
         
         menu4 = new Image();
         menu4.src = "images/menu4.jpg";     
         menu4on = new Image();
         menu4on.src = "images/menu4on.jpg";   
         
         menu5 = new Image();
         menu5.src = "images/menu5.jpg";     
         menu5on = new Image();
         menu5on.src = "images/menu5on.jpg";   
         
         menu6 = new Image();
         menu6.src = "images/menu6.jpg";     
         menu6on = new Image();
         menu6on.src = "images/menu6on.jpg";   
         
         menu7 = new Image();
         menu7.src = "images/menu7.jpg";     
         menu7on = new Image();
         menu7on.src = "images/menu7on.jpg";   
         
         menu8 = new Image();
         menu8.src = "images/menu8.jpg";     
         menu8on = new Image();
         menu8on.src = "images/menu8on.jpg";   
         
         menu9 = new Image();
         menu9.src = "images/menu9.jpg";     
         menu9on = new Image();
         menu9on.src = "images/menu9on.jpg";   
         
         menu10 = new Image();
         menu10.src = "images/menu10.jpg";     
         menu10on = new Image();
         menu10on.src = "images/menu10on.jpg";   
                                                                      
    } 
    
    function Swap(on,out) {
    
        temp = "line" + on;
        if (out)  document.images[temp].src=eval(temp + "on.src");
        else      document.images[temp].src=eval(temp + ".src");
                 
    }       
    
    function Swap2(on,out) {
    
        temp = "menu" + on;
        if (out)  document.images[temp].src=eval(temp + "on.src");
        else      document.images[temp].src=eval(temp + ".src");
                 
    }       


function EmailFormatValidation(objTarget)
{
var objName;
var emailArray;
var domainArray;
	
	if (objTarget.value.indexOf(' ',1)!=-1) {
		alert("Email address should not contain any space.");
		objTarget.focus();
		return false;
	}	

	emailArray = objTarget.value.split("@");
	if (emailArray.length <=1 )
	{
		alert("Email address should be in this format: ''anyname@anywhere.dom''");
		objTarget.focus();
		return false;
	}	
	else
	{
		domainArray = 	emailArray[1].split(".")
		if (domainArray.length <=1 )
		{
			alert("Email address should be in this format: ''anyname@anywhere.dom''");
			objTarget.focus();
			return false;
		}	
	}
	return true;
			
}

  function contactFun() {
    
    if  (document.ContactFrm.EmailTxt.value == ""){
		        alert("You must enter your email  address!")
		        document.ContactFrm.EmailTxt.focus()
		        return false;		        
	}
	if (!EmailFormatValidation(document.ContactFrm.EmailTxt)) return false;

      if (document.ContactFrm.MessageTxt.value == "") {
		       alert("You must enter your message !")
		       document.ContactFrm.MessageTxt.focus();	
		        return false;		              
	}		    
  
  }
  