function business_intelligence()
{
//alert('2');
document.write(' <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" WIDTH="708" HEIGHT="597">');
document.write(' <PARAM NAME="movie" VALUE="flash/test.swf">');
document.write('<PARAM NAME="quality" VALUE="high"> ');
document.write('<PARAM NAME="bgcolor" VALUE="#FFFFFF"> ');
document.write('<EMBED src="flash/test.swf" quality="high" bgcolor="#FFFFFF" WIDTH="708" HEIGHT="597" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write('</EMBED>');
document.write('</OBJECT>');

}






x=true;
function toggDiv()
{
 if (x==true){
 document.getElementById('tblDir').style.display="";
 x = !x;
 }
 else {
 document.getElementById('tblDir').style.display="none";
 x = !x;
}
}

var home, services, products, case_studies, clients, partners, about_us, contact_us, support;
function top_menu()
{
//HOME
	if (home == "yes")
	{ document.write('<a href="home.php4"><img src="images/nav_home_f2.gif" width="66" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="home.php4"><img src="images/nav_home.gif" width="66" height="37" border="0"></a>'); }

//SERVICES
	if (services == "yes")
	{ document.write('<a href="services_bi.php4" onMouseOver="enterTopItem (0);" onMouseOut="exitTopItem (0);"  ><img src="images/nav_services_f2.gif" width="84" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="services_bi.php4" onMouseOver="enterTopItem (0);" onMouseOut="exitTopItem (0);"  ><img src="images/nav_services.gif" width="84" height="37" border="0"></a>'); }

//PRODUCTS
	if (products == "yes")
	{ document.write('<a href="products.php4" onMouseOver="enterTopItem (1);" onMouseOut="exitTopItem (1);"  ><img src="images/nav_products_f2.gif" width="92" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="products.php4" onMouseOver="enterTopItem (1);" onMouseOut="exitTopItem (1);"  ><img src="images/nav_products.gif" width="92" height="37" border="0"></a>'); }

//CASE STUDIES
	if (case_studies == "yes")
	{ document.write('<a href="case_studies.php4" onMouseOver="enterTopItem (2);" onMouseOut="exitTopItem (2);"  ><img src="images/nav_case_studies_f2.gif" width="100" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="case_studies.php4" onMouseOver="enterTopItem (2);" onMouseOut="exitTopItem (2);"  ><img src="images/nav_case_studies.gif" width="100" height="37" border="0"></a>'); }
/*
//CASE STUDIES
	if (case_studies == "yes")
	{ document.write('<a href="case_studies_fin1.php4" onMouseOver="enterTopItem (2);" onMouseOut="exitTopItem (2);"  ><img src="images/nav_case_studies_f2.gif" width="100" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="case_studies_fin1.php4" onMouseOver="enterTopItem (2);" onMouseOut="exitTopItem (2);"  ><img src="images/nav_case_studies.gif" width="100" height="37" border="0"></a>'); }
*/

//CLIENTS
	if (clients == "yes")
	{ document.write('<a href="customers.php4" ><img src="images/nav_clients_f2.gif" width="78" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="customers.php4" ><img src="images/nav_clients.gif" width="78" height="37" border="0"></a>'); }

//PARTNERS
	if (partners == "yes")
	{ document.write('<a href="partners.php4" ><img src="images/nav_partners_f2.gif" width="91" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="partners.php4" ><img src="images/nav_partners.gif" width="91" height="37" border="0"></a>'); }

/*
//ABOUT US
	if (about_us == "yes")
	{ document.write('<a href="about_us.php4"><img src="images/nav_about_us_f2.gif" width="89" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="about_us.php4"><img src="images/nav_about_us.gif" width="89" height="37" border="0"></a>'); }
*/

//ABOUT US
	if (about_us == "yes")
	{ document.write('<a href="about_us.php4" onMouseOver="enterTopItem (3);" onMouseOut="exitTopItem (3);" ><img src="images/nav_about_us_f2.gif" width="89" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="about_us.php4" onMouseOver="enterTopItem (3);" onMouseOut="exitTopItem (3);" ><img src="images/nav_about_us.gif" width="89" height="37" border="0"></a>'); }


//SUPPORT
	if (support == "yes")
	{ document.write('<a href="support.php4"><img src="images/nav_support_f2.gif" width="81" height="37" border="0"></a>'); }
	else 
	{ document.write('<a href="support.php4"><img src="images/nav_support.gif" width="81" height="37" border="0"></a>'); }

 //CONTACT US
 	if (contact_us == "yes")
 	{ document.write('<a href="contact_us.php4"><img src="images/nav_contact_us_f2.gif" width="96" height="37" border="0"></a>'); }
 	else 
 	{ document.write('<a href="contact_us.php4"><img src="images/nav_contact_us.gif" width="96" height="37" border="0"></a>'); }

}

function selectAnchor(nbrOfItems)
{
	for (i=0; i<nbrOfItems; i++)
	{
		document.getElementById('sub'+i).style.display="none";
	}
	x=document.getElementById('services').value;
	document.getElementById('sub'+x).style.display="block";
}

/****START: Support Mail Validations ****/
function setOptions(chosen) {
	var varSelBox = document.requestForm.productVersion;		 
	varSelBox.options.length = 0;

	switch(chosen){
		case "0":
				varSelBox.options[varSelBox.options.length] = new Option('Please select one of the options above first','');
				break;
		case "eLustro":
				varSelBox.options[varSelBox.options.length] = new Option('3.3','3.3');
				varSelBox.options[varSelBox.options.length] = new Option('3.4','3.4');
				varSelBox.options[varSelBox.options.length] = new Option('3.5','3.5');
				varSelBox.options[varSelBox.options.length] = new Option('3.6','3.6');
				break;
		case "eLustroHarmony":
				varSelBox.options[varSelBox.options.length] = new Option('2.0','2.0');
				break;
		case "Job Mapping":
				varSelBox.options[varSelBox.options.length] = new Option('1.1','1.1');
				varSelBox.options[varSelBox.options.length] = new Option('1.2','1.2');
	}
}
function validate() { 
name=document.requestForm.name.value;
cname=document.requestForm.company.value;
/********************/
var reason = "";
  reason += validateEmail(requestForm.email);      
  if (reason != "") {
    alert(reason);
    return false;
  }
/********************/

//email=document.requestForm.email.value;
phone=document.requestForm.phoneno.value;
desc=document.requestForm.desc.value;

if(name==""){alert("Name is blank");document.requestForm.name.focus();return false;}
if(document.requestForm.title[document.requestForm.title.selectedIndex].value==""){alert("Select a Title");return false;}
if(cname==""){alert("Company Name is blank");document.requestForm.company.focus();return false;}
//if(email==""){alert("E-mail is blank");document.requestForm.email.focus();return false;}
if(phone==""){alert("Phone Number is blank");document.requestForm.phoneno.focus();return false;}
if(desc==""){alert("Description is blank");document.requestForm.desc.focus();return false;}
if(document.requestForm.country[document.requestForm.country.selectedIndex].value==""){alert("Select Country");return false;}
if(document.requestForm.productName[document.requestForm.productName.selectedIndex].value==""){alert("Select Product Name");return false;}
if(document.requestForm.productVersion[document.requestForm.productVersion.selectedIndex].value==""){alert("Select Product Version");return false;}
}


function trim(s)
{
  return s.replace(/^\s+|\s+$/, '');
}

function validateEmail(fld) {
    var error="";
    var tfld = trim(fld.value);                        // value of field with whitespace trimmed off
    var emailFilter = /^[^@]+@[^@.]+\.[^@]*\w\w$/ ;
    var illegalChars= /[\(\)\<\>\,\;\:\\\"\[\]]/ ;
	var caps = /[A-Z]/;
   
    if (fld.value == "") {
        fld.style.background = '#cee97a';
        error = "You didn't enter an email address.\n";
    } else if (!emailFilter.test(tfld)) {              //test email for illegal characters
        fld.style.background = '#cee97a';
        error = "Please enter a valid email address.\n";
    } else if (fld.value.match(illegalChars)) {
        fld.style.background = '#cee97a';
        error = "The email address contains Illegal characters.\n";
    } else if (fld.value.match(caps)) {
        fld.style.background = '#cee97a';
        error = "The email address contains Capital Letters.\n";
    } else {
        fld.style.background = '#ffffff';
    }
    return error;
}
/****END: Support Mail Validations ****/
