if (document.images) {
   
     button1 = new Image
     button2 = new Image
	 
     button3 = new Image
     button4 = new Image
	 
     button5 = new Image
     button6 = new Image
	 
     button7 = new Image
     button8 = new Image
	 
     button9 = new Image
     button10 = new Image	 
	 
     button11 = new Image
     button12 = new Image	 
	 
     button13 = new Image
     button14 = new Image
	 
	 button15 = new Image
     button16 = new Image
	 
	 button17 = new Image
     button18 = new Image
	 
	 button19 = new Image
     button20 = new Image
	 	 
     button1.src = 'images/home.jpg'
     button2.src = 'images/home1.jpg'
	 
	 button3.src = 'images/about.jpg'
     button4.src = 'images/about1.jpg'
	 
     button5.src = 'images/hotdesking.jpg'
     button6.src = 'images/hotdesking1.jpg'
	 
     button7.src = 'images/meetingroom.jpg'
     button8.src = 'images/meetingroom1.jpg'
	 
     button9.src = 'images/mail.jpg'
     button10.src = 'images/mail1.jpg'
	 
     button11.src = 'images/virtualoffice.jpg'
     button12.src = 'images/virtualoffice1.jpg'
	 
     button13.src = 'images/faq.jpg'
     button14.src = 'images/faq1.jpg'
	 
	 button15.src = 'images/testimonals.jpg'
     button16.src = 'images/testimonals1.jpg'
	 
	 button17.src = 'images/serviceoffice.jpg'
     button18.src = 'images/serviceoffice1.jpg'
	 
	 button19.src = 'images/contactus.jpg'
     button20.src = 'images/contactus1.jpg'
 }
 
 function fullcheck1()
{
  var str=document.enquireform.email.value;
//alert(str);

     if (document.enquireform.name.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Name.");
           document.enquireform.name.select(); 
           return false;
	    }  
	

			     if (document.enquireform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.enquireform.email.select(); 
           return false;
	    }  
		
		
				if ((document.enquireform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.enquireform.email.select();
		return false;
		}
	
		if (document.enquireform.email.value.indexOf("@",1) == -1)
		{
		

	alert("Invalid E-Mail address");
			document.enquireform.email.focus();
			document.enquireform.email.select();
			return(false);
		}
		if (document.enquireform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.enquireform.email.focus();
			document.enquireform.email.select();
			return(false);
		}
		if (document.enquireform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.enquireform.email.focus();
			

document.enquireform.email.select();
			return(false);
		}
		if (document.enquireform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.enquireform.email.focus();
			document.enquireform.email.select();
			return(false);
		}
		
		if ((document.enquireform.email.value.lastIndexOf(".")) -(document.enquireform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.enquireform.email.focus();
			document.enquireform.email.select();
			return(false);
		}
}


function fullcheck()
{
  var str=document.contactform.email.value;
//alert(str);

     if (document.contactform.name.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Name.");
           document.contactform.name.select(); 
           return false;
	    }  
	

			     if (document.contactform.email.value=="")
        {
           alert ("Blank space not allowed. Please Enter Your Email Address.");
           document.contactform.email.select(); 
           return false;
	    }  
		
		
				if ((document.contactform.email.value).indexOf(" ")>=0)
		{
		alert ("Blank space not allowed inside email!");
		document.contactform.email.select();
		return false;
		}
	
		if (document.contactform.email.value.indexOf("@",1) == -1)
		{
		

	alert("Invalid E-Mail address");
			document.contactform.email.focus();
			document.contactform.email.select();
			return(false);
		}
		if (document.contactform.email.value.indexOf("@") == 0)
		{
			alert("Invalid E-Mail address");
			document.contactform.email.focus();
			document.contactform.email.select();
			return(false);
		}
		if (document.contactform.email.value.indexOf(".",5) == -1)
		{
			alert("Invalid E-Mail address");
			document.contactform.email.focus();
			

document.contactform.email.select();
			return(false);
		}
		if (document.contactform.email.value.indexOf(".") == 0)
		{
			alert("Invalid E-Mail address");
			document.contactform.email.focus();
			document.contactform.email.select();
			return(false);
		}
		
		if ((document.contactform.email.value.lastIndexOf(".")) -(document.contactform.email.value.indexOf("@"))<4 )
		{
		
			alert("Invalid E-Mail address");
			document.contactform.email.focus();
			document.contactform.email.select();
			return(false);
		}

	
	  
}
