function showIt() {
			document.getElementById('hide').className = 'show';
}

function showSearch() {
			document.getElementById('changeVisible').style.display = "none";
			document.getElementById('searchField').style.display = "block";
}

function checkIt() {
			var userN = document.getElementById("userName").value;
			var eMail = document.getElementById("email").value;
			if (userN == "")
			{
				alert('please enter your name.');
			}
			if (eMail == "")
			{
				alert('please enter a valid email.');
			}else if (eMail != "")
			{
				echeck(eMail);
			}
			document.getElementById("form1").submit();
}
function switches(inputToSwitchTo) {
			var switchees = inputToSwitchTo;
			// A = executive, or benefit, or GTL
			// B = technology(pco process), or testing, or GTR
			// C = principals, or trials, or GTC
			// the following was added because of client error.
			// D = products 
			if (switchees == 'A')
			{
				document.getElementById('executive').style.display = 'block';
				document.getElementById('technology').style.display = 'none';
				document.getElementById('principals').style.display = 'none';
				document.getElementById('productsAbout').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHereActive';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'B')
			{
				document.getElementById('executive').style.display = 'none';
				document.getElementById('technology').style.display = 'block';
				document.getElementById('principals').style.display = 'none';
				document.getElementById('productsAbout').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHereActive';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'C')
			{
				document.getElementById('executive').style.display = 'none';
				document.getElementById('technology').style.display = 'none';
				document.getElementById('principals').style.display = 'block';
				document.getElementById('productsAbout').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHereActive';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'D')
			{
				
				document.getElementById('executive').style.display = 'none';
				document.getElementById('technology').style.display = 'none';
				document.getElementById('principals').style.display = 'none';
				document.getElementById('productsAbout').style.display = 'block';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHereActive';
			}
		}	
function switchess(inputToSwitchTo) {
			var switchees = inputToSwitchTo;
			// A = executive, or benefit, or GTL
			// B = technology(pco process), or testing, or GTR
			// C = principals, or trials, or GTC
			// the following was added because of client error.
			// D = products 
			if (switchees == 'A')
			{
				document.getElementById('executived').style.display = 'block';
				document.getElementById('technologyd').style.display = 'none';
				document.getElementById('principalsd').style.display = 'none';
				document.getElementById('productsAboutd').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHereActive';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'B')
			{
				document.getElementById('executived').style.display = 'none';
				document.getElementById('technologyd').style.display = 'block';
				document.getElementById('principalsd').style.display = 'none';
				document.getElementById('productsAboutd').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHereActive';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'C')
			{
				document.getElementById('executived').style.display = 'none';
				document.getElementById('technologyd').style.display = 'none';
				document.getElementById('principalsd').style.display = 'block';
				document.getElementById('productsAboutd').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHereActive';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHere';
			}else if (switchees == 'D')
			{
				
				document.getElementById('executived').style.display = 'none';
				document.getElementById('technologyd').style.display = 'none';
				document.getElementById('principalsd').style.display = 'none';
				document.getElementById('productsAboutd').style.display = 'block';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHere';
				document.getElementById('GWIZ').className = 'productsHereActive';
			}
		}	
function switchs(inputToSwitchTo) {
			var switches = inputToSwitchTo;
			// A = pro_one
			// B = pro_two
			// C = pro_three
			if (switches == 'A')
			{
				document.getElementById('pro_one').style.display = 'block';
				document.getElementById('pro_two').style.display = 'none';
				document.getElementById('pro_three').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHereActive';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHere';
			}else if (switches == 'B')
			{
				document.getElementById('pro_one').style.display = 'none';
				document.getElementById('pro_two').style.display = 'block';
				document.getElementById('pro_three').style.display = 'none';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHere';
				document.getElementById('GTC-12').className = 'productsHereActive';
			}else if (switches == 'C')
			{
				document.getElementById('pro_one').style.display = 'none';
				document.getElementById('pro_two').style.display = 'none';
				document.getElementById('pro_three').style.display = 'block';
				document.getElementById('GTL-12').className = 'productsHere';
				document.getElementById('GTR-12').className = 'productsHereActive';
				document.getElementById('GTC-12').className = 'productsHere';
			}
		}	


/**
 * DHTML email validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Invalid E-mail ID")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		    alert("Invalid E-mail ID")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		    alert("Invalid E-mail ID")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		    alert("Invalid E-mail ID")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		    alert("Invalid E-mail ID")
		    return false
		 }

 		 return true					
}