﻿            var featureDescription = new Array(5);
			featureDescription[0] = "<table><tr><td valign=top>1.</td><td>Everything you need to get yourself online. Use our Buying Page to select one of our amazing solutions to suit your needs, then choose your own unique domain name/email address to complement your site! Snap up your ideal name (i.e. www.example.com) before someone else does!</td></tr></table>";
			featureDescription[1] = "<table><tr><td valign=top>2.</td><td>Breeze through our Page-Builder to create your own website today. Choose from hundreds of professional template designs or upload your own. Use our DIY designer for limitless possibilities! The only boundary is your imagination.</td></tr></table>";
			featureDescription[2] = "<table><tr><td valign=top>3.</td><td>Develop your own unique website with fantastic features including; photo & video albums, games, puzzles, e-cards, sports pages, live news, music, diary, guestbook, customised pages, webpage special effects, shopping cart (for credit card you need a PayPal account),...and more. All at the click of a button!</td></tr></table>";
			featureDescription[3] = "<table><tr><td valign=top>4.</td><td>Start by knowing absolutely nothing about websites, and finish that way too if you like. Or you could learn how to build a website using HTML as you go along with our unique tutorial system. Earn yourself personalised WebsiteBoffin certificates supporting the National Curriculum ICT statements.</td></tr></table>";
			featureDescription[4] = "<table><tr><td valign=top>5.</td><td>...and finally, <b>the whole world can come to you.</b> Now make money or new friends. Reassuringly simple to use from the comfort of your own home. <b>Do it now!</b></td></tr></table>";	
			
			function change(mainImage, newImage)
			{
				document.getElementById(mainImage).src = newImage;
			}
			
			function change(mainImage, newImage, label, text)
			{
				document.getElementById(mainImage).src = newImage;
				//document.getElementById(label).innerHTML = text;				
			}
			function mouseOverForLinks(theLink)
			{
				if (theLink == "buyLink" || theLink == "buyLinkImage")
				{
					document.getElementById("buyLinkImage").src = "images/home/side-arrow2.gif";
					document.getElementById("buyLink").style.color = "#000099"; 	
				
				}
				else
				{
					document.getElementById("giftLinkImage").src = "images/home/side-arrow2.gif";
					document.getElementById("giftLink").style.color = "#000099"; 	
					
				}
			}
			
			function mouseOutForLinks(theLink)
			{
				if (theLink == "buyLink" || theLink == "buyLinkImage")
				{
					document.getElementById("buyLinkImage").src = "images/home/side-arrow1.gif";
					document.getElementById("buyLink").style.color = "#000000"; 	
				
				}
				else
				{
					document.getElementById("giftLinkImage").src = "images/home/side-arrow1.gif";
					document.getElementById("giftLink").style.color = "#000000"; 	
					
				}
			}
			function clearStepedMouse()
			{
				document.getElementById("imgStep1").src = "images/business/shiny/1-1.gif";
				document.getElementById("imgStep2").src = "images/business/shiny/2-1.gif";
				document.getElementById("imgStep3").src = "images/business/shiny/3-1.gif";
				document.getElementById("imgStep4").src = "images/business/shiny/4-1.gif";
				document.getElementById("imgStep5").src = "images/business/shiny/5-1.gif";
			}
			function clearvisable()
			{			
				document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step1").style.left = "-9999px";
				document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step2").style.left = "-9999px";
				document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step3").style.left = "-9999px";
				document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step4").style.left = "-9999px";
				document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step5").style.left = "-9999px";
			}
			function change(mainImage, newImage, tag, text, index)
			{
				clearStepedMouse();
				document.getElementById(mainImage).src = newImage;
								
							
				clearvisable();
				if (tag == "ctl00_MainContent_templatehomeDomain_hdn_step1")
				{					
					document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step1").style.left = "0px";
				}
				if (tag == "ctl00_MainContent_templatehomeDomain_hdn_step2")
				{					
					document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step2").style.left = "0px";					
				}
				if (tag == "ctl00_MainContent_templatehomeDomain_hdn_step3")
				{					
					document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step3").style.left = "0px";					
				}
				if (tag == "ctl00_MainContent_templatehomeDomain_hdn_step4")
				{					
					document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step4").style.left = "0px";					
				}
				if (tag == "ctl00_MainContent_templatehomeDomain_hdn_step5")
				{					
					document.getElementById("ctl00_MainContent_templatehomeDomain_hdn_step5").style.left = "0px";					
				}
	
				
			}

			function linkMouseOver(id)
			{
				document.getElementById(id).style.fontWeight = "bold";
			}
			
			function linkMouseOut(id)
			{
				document.getElementById(id).style.fontWeight = "";
			}
			
			
				
				 			
function validEmail(emailAddrID)	//---------validEmail()------------checks email validity---------------
{
    var error = false;
	var email=document.getElementById(emailAddrID).value;
	invalidChars ="/:,; ";
	if  (email == "")//email not entered
		{
			errorString = "Please enter a valid email address";error = true;
		}
			
	for(i=0; i<invalidChars.length; i++)//checks for the invalid characters
    {
			badChar = invalidChars.charAt(i)
			if(email.indexOf(badChar,0)>-1)
				{
					if(badChar == ' ')
						{
							errorString = "Error: Email must not contain spaces.\n Please correct.";error = true;
						}
					else
						errorString = "Error: Email must not contain the character: ' " + badChar + " '.\n Please correct.";error = true;
	   			}
	}

   atPos = email.indexOf("@",1);//checks position
   if(atPos == -1)
		{
            errorString = "Email Error: Missplaced ' @ ' symblol.\n Please correct.";error =  true;
        }
   if(email.indexOf("@",atPos+1) !=-1)//checks pos
        {
          errorString = "Email Error: Missplaced ' @ ' symblol.\n Please correct.";error =  true;
        }
   periodPos=email.indexOf(".",atPos)//checks point for .provider
   if(periodPos ==-1)
        {
          errorString = "Email Error: Missplaced ' . ' symblol.\n Please correct.";error = true;
        }
   if(periodPos + 3 > email.length)//checks length of provider atleast 3 as standard
        {
          errorString = "Email Error: Error with right hand side of address.\n Please correct.";error = true;
        }
	if (error)
		{
			alert(errorString);
			return false;
		}
	for(i=0; i<email.length; i++)//checks for 'www' in email address
		if(email.charAt(i) == 'w' && email.charAt(i+1) == 'w' && email.charAt(i+2) == 'w' && wwwCheck == true)
			{
				if(confirm("Caution: WWW is for surfing the web, it is not usually part of an email address.\nClick OK to confirm or cancel to correct address.") == false)
					{
						return false;
					}
				else
			wwwCheck = false;
			}
    return true;
}	