// Start Images script --------------------------------------------------------------------------------->
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

// End Images script ------------------------------------------------------------------------------------->



//-----------------------Validation function's-------------------------------------------------------------------
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}



if (!pass) 
{
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
pass =false;
}

if (pass)
{
	elem=eval("document."+which.name+".requiredemail")
	if(elem!=undefined)		
	{
		
		var tempStr=new String(elem.value)
		//alert("elem.value:-"+elem.value)
		tempStr=tempStr.trim()
			//alert(tempStr)

		if (!isEMail(tempStr))
		 {
			shortFieldName=elem.name.substring(8,30).toUpperCase();
			alert("Please make sure the "+shortFieldName+" field was properly completed.");
			pass =false;
                        return pass 
		 }
		 else
		{
			return true;
		
		}
	}
	else
	{
		return pass
	}

}

else
return pass;
}
//---------------------------------------------------------------------------------------------------------------



//-----------------------Validation function's for Excecutive Challenge 2004 ------------------------------------
function execcheckpwd() {

var x
//x=prompt("Enter Password.","",left=100,right=100)
x=window.showModalDialog("ecpassword.asp","_self","status:no;dialogWidth:7cm;dialogHeight:3cm")
if(x=="EC2004")
{
  document.frmExecChal.hidIsValid.value="valid"
  document.frmExecChal.action="registerEC2004.asp"
  document.frmExecChal.submit()
}
else if(x!="")
  alert("Invalid Password! Please Enter the Password Correctly...")
}
//---------------------------------------------------------------------------------------------------------------

// menu_items.js file
// comments block here

var MENU_ITEMS =[

	
	["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nobr><b>ABOUT US</b></nobr>", "aboutus.html",
		["&nbsp;Profile", "corporateprofile.html"],
		["&nbsp;Management Team", "management.html"],
		//["&nbsp;News & Events", "news.html"],
		["&nbsp;Alliance Partners", "alliancepartners.html"],
		["&nbsp;Awards", "awards.html"],
		["&nbsp;Locations", "locations.html"],
		["&nbsp;Training", "courses.html"],
		
		
	],

		["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nobr><b>PRACTICES</b></nobr>", "enterpriseapplication.html",
		["&nbsp;Enterprise Application", "enterpriseapplication.html"],
		["&nbsp;Application Development", "applicationdevelopment.html"],
		["&nbsp;Product Development", "Productdevelopment.html"],
		["&nbsp;Electronic Gaming", "eletronicgaming.html"],
		["&nbsp;Voice-Based Applications", "voicebased.html"],
	
	],
		["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nobr><b>VERTICALS</b></nobr>", "financialservices.html",
		["&nbsp;Financial Services", "financialservices.html"],
		["&nbsp;Healthcare", "healthcare.html"],
		["&nbsp;Telecom", "telecom.html"],
		["&nbsp;Insurance", "insurance.html"],
		["&nbsp;Pharmaceuticals", "pharmaceuticals.html"],
		["&nbsp;Manufacturing", "manufacturing.html"]
	
	],
		["&nbsp;<nobr><b>SUCCESS STORIES</b></nobr>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", "successstories.html",
		//["&nbsp;Financial Services", "financial.html"],
	

	],
		["&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<nobr><b> </b></nobr>", "courses.html",
		//["&nbsp;Financial Services", "financial.html"],	

	]
	
];

<!-- Hide script from old browsers

coolPhrase = new Array

phraseCnt = coolPhrase.length;
//javascript: picPhrase();

function picPhrase() {
randomNum = Math.floor ((Math.random() * phraseCnt))
trashTalk = coolPhrase[randomNum]
//document.write ("<title>" + trashTalk + "</title>")
//document.write ("<p align='center'><b><font color='#990000' size='+1'>Gary&acute;s Web Building: " + trashTalk + "</font></b></p>")
document.write (trashTalk  )
//window.testspan.title = trashTalk
//window.table1.rows(1).item(1) =  trashTalk
}

// End hiding script from old browsers -->



//----- Search Submission Script -----


function ValidateSearch()
{

if (document.search.txtSearch.value=="")
{
	alert("Please enter a text to search");
	document.search.txtSearch.focus();
	return false;
}
	var check = document.search.txtSearch.value;
	document.search.action = "search.asp";
	document.search.submit();
}


//-----------------------Validation function's for Excecutive Challenge 2005 ------------------------------------

//-----------------------------------Email Validity Function ----------------------------------------------------------------------------

//--------------Trim Function ---------------------------------------------
String.prototype.trim = function() 
            {
		  return this.replace(/(^\s+)|(\s+$)/g, '');
		}


		String.prototype.ltrim = function() {
		  return this.replace(/^\s+/g, '');
		}


		String.prototype.rtrim = function() {
		  return this.replace(/\s+$/g, '');
		}   
		function trim(strText) {
		    // this will get rid of leading spaces
		    while (strText.substring(0,1) == ' ') {
		        strText = strText.substring(1, strText.length);
		    }
		        
		    // this will get rid of trailing spaces
		    while (strText.substring(strText.length-1,strText.length) == ' ') {
		        strText = strText.substring(0, strText.length - 1);
		    }
		        
		    return strText;
		}


