<!--
var backImage = new Array(); 
backImage[0] = "images/lefttopmenubg.jpg";

function showcontactus()
{
document.frmConfirmCustomerLogin.submit();
}

function submitLoginForm()
{
if(document.frmCustomerLogin.txtUserid.value == '')
	{
		alert("\"User Name\" is required.");
		document.frmCustomerLogin.txtUserid.focus();
		return;
	}
if(document.frmCustomerLogin.txtPassword.value == '')
	{
		alert("\"Password\" is required.");
		document.frmCustomerLogin.txtPassword.focus();
		return;
	}
//if(document.frmCustomerLogin.txtUserid.value != '' && document.frmCustomerLogin.txtPassword.value != '')
	//{
		//alert("Unsuccessful Login");
		//document.frmCustomerLogin.txtUserid.select();
	//document.frmCustomerLogin.Browser.value = navigator.appName
	//document.frmCustomerLogin.Platform.value = navigator.platform
	//document.frmCustomerLogin.Version.value = navigator.appVersion
	document.frmCustomerLogin.submit();	
	//}
}

function submitForm()
{
	if(document.frmFeedback.txtFirstName.value == '')
	{
		alert("\"First Name\" is required.");
		document.frmFeedback.txtFirstName.focus();
		return;
	}
//-------
	if(document.frmFeedback.txtLastName.value == '')
	{
		alert("\"Last Name\" is required.");
		document.frmFeedback.txtLastName.focus();
		return;
	}
//-------	
	if(!checkEmailAddress(document.frmFeedback.txtEmail.value,true,true))
	{
		//alert("The email address you\'ve entered is not valid");
		document.frmFeedback.txtEmail.focus();
		return;
	}
//-------	
	if(document.frmFeedback.txtAddress1.value == '')
	{
		alert("Address 1 is a required field.");
		document.frmFeedback.txtAddress1.focus();
		return;
	}
//-------
	if(document.frmFeedback.txtCity.value == '')
	{
		alert("City is a required field");
		document.frmFeedback.txtCity.focus();
		return;
	}
//-------	
	if(document.frmFeedback.selCountry.selectedIndex == 0)
	{
		alert("Please select a Country");
		document.frmFeedback.selCountry.focus();
		return;
	}
//-------
	if(document.frmFeedback.txtRegion.value == '')
	{
		alert("Region is a required field.");
		document.frmFeedback.txtRegion.focus();
		return;
	}
//-------
	if(document.frmFeedback.selCountry.selectedIndex == 0) 
	{
		alert("Please select a Country");
		document.frmFeedback.selCountry.focus();
		return;
	}
//-------
	if(document.frmFeedback.txtPostalCode.value == '')
	{	
		alert("PostalCode is a required field.");
		document.frmFeedback.txtPostalCode.focus();
		return;
	}
	else
	{
		if(!isInteger(document.frmFeedback.txtPostalCode.value))
		{
			alert("Please Enter a Numeric value for PostalCode");
			document.frmFeedback.txtPostalCode.select();
			return;
		}
	}
//-------	
	if(document.frmFeedback.txtJobTitle.value == '')
	{
		alert("JobTitle is a required field.");
		document.frmFeedback.txtJobTitle.focus();
		return;
	}
//-------	
	if(document.frmFeedback.txtPhone.value == '')
	{
		alert("Telephone is a required field.");
		document.frmFeedback.txtPhone.focus();
		return;
	}
//-------	
	if(document.frmFeedback.selSubject.selectedIndex == 0) 
	{
		alert("Please Select a \"Subject\"");
		document.frmFeedback.selSubject.focus();
		return;
	}
//-------	
	if(document.frmFeedback.txaComments.value == '') 
	{
		alert("\"Comments\" is a required field.");
		document.frmFeedback.txaComments.focus();
		return;
	}
	else if (document.frmFeedback.txaComments.value.length >250)
	{
		alert("\"Comments\" size is too long to store, please reduce the size.");
		document.frmFeedback.txaComments.focus();
		return;
	}
//-------	
	document.frmFeedback.Browser.value = navigator.appName
	document.frmFeedback.Platform.value = navigator.platform
	document.frmFeedback.Version.value = navigator.appVersion
	
	document.frmFeedback.submit();
}

/*function checkEmailAddress(x){
   var email = x;
  if (x==null) {return false};
    if (email.indexOf("@") > 0){
      if (email.indexOf(".",email.indexOf("@")) > 0){
	     if (email.indexOf(" ") == -1){
		    if (email.indexOf(",") == -1){
			    return true;
		  }
	   }
	 }
   }
  return false;
}*/
function checkEmailAddress(addr,man,db) {
if (addr == '' && man) 
	{
		if (db) alert('email address is mandatory');
		return false;
	}
var invalidChars = '\/\'\\ ";:?!()[]\{\}^|';
for (i=0; i<invalidChars.length; i++) {
   if (addr.indexOf(invalidChars.charAt(i),0) > -1) {
      if (db) alert('email address contains invalid characters');
      return false;
   }
}
for (i=0; i<addr.length; i++) {
   if (addr.charCodeAt(i)>127) {
      if (db) alert("email address contains non ascii characters.");
      return false;
   }
}

var atPos = addr.indexOf('@',0);
if (atPos == -1) {
   if (db) alert('email address must contain an @');
   return false;
}
if (atPos == 0) {
   if (db) alert('email address must not start with @');
   return false;
}
if (addr.indexOf('@', atPos + 1) > - 1) {
   if (db) alert('email address must contain only one @');
   return false;
}
if (addr.indexOf('.', atPos) == -1) {
   if (db) alert('email address must contain a period in the domain name');
   return false;
}
if (addr.indexOf('@.',0) != -1) {
   if (db) alert('period must not immediately follow @ in email address');
   return false;
}
if (addr.indexOf('.@',0) != -1){
   if (db) alert('period must not immediately precede @ in email address');
   return false;
}
if (addr.indexOf('..',0) != -1) {
   if (db) alert('two periods must not be adjacent in email address');
   return false;
}
var suffix = addr.substring(addr.lastIndexOf('.')+1);
if (suffix.length != 2 && suffix != 'com' && suffix != 'net' && suffix != 'org' && suffix != 'edu' && suffix != 'int' && suffix != 'mil' && suffix != 'gov' & suffix != 'arpa' && suffix != 'biz' && suffix != 'aero' && suffix != 'name' && suffix != 'coop' && suffix != 'info' && suffix != 'pro' && suffix != 'museum') {
   if (db) alert('invalid primary domain in email address');
   return false;
}
return true;
}
//Validates in input value - Permits only integer input for postal code
function funValidateNum()
			{
			
				if(event.shiftKey == false)
					{
						if ((event.keyCode >= 48 && event.keyCode <= 57 ) || (event.keyCode >= 96 && event.keyCode <= 105 ) || (event.keyCode >= 37 && event.keyCode <= 40 ) || ( event.keyCode == 110 ) || ( event.keyCode == 190) || ( event.keyCode == 8) || ( event.keyCode == 13) || ( event.keyCode == 46) || ( event.keyCode == 9)) //check for alphabets 	
						return true;
						else
						{	
							event.returnValue =0
							return false;
						}
					}
				else if(event.shiftKey == true && event.keyCode==9)
					{
						return true
					}
					else
					{
						event.returnValue =0
						return false;
					}
			}
			
//general purpose function - input value entered?
function isEmpty(iS){
   var inputStr=trimIt(iS);
   if (inputStr == null || inputStr == ""){
      //window.alert("empty " + inputStr); 
	  return true;
   } 
   //window.alert("filled " + inputStr);
   return false;
}
 // general purpose function to see if a number is
 // positive or negative
 function isInteger(inputVal){
      inputStr = inputVal.toString();
	  for (var i=0; i<inputStr.length; i++){
	     var oneChar = inputStr.charAt();
		 if (i==0 && oneChar=="-"){
		  continue;
		  }
		 if (oneChar<"0" || oneChar>"9") {
		   return false;
		 }
	   }
	   return true;
  }
function clearForm(formname)
{
var frmname = formname;
	if (frmname == "ContactUs")
	{
		document.frmFeedback.reset();
		//iIndex = getRegions(document.frmFeedback.selCountry, document.frmFeedback.selRegion, "");
	}
	else if (frmname == "CustomerLogin")
	{
	document.frmCustomerLogin.reset();		
	}
}
function changeLocation()
{
	var sCountryName="";

	if (document.frmOfficeLocator.selOfficeLocator)
	{
		sCountryName = "contactus.aspx?c=" + document.frmOfficeLocator.selOfficeLocator.options[document.frmOfficeLocator.selOfficeLocator.selectedIndex].value+"&indx=" + document.frmOfficeLocator.selOfficeLocator.selectedIndex;
	}

	document.frmOfficeLocator.action = sCountryName;
	document.frmOfficeLocator.submit();
}



function changeBGImage(whichImage){
if (document.body){
document.body.background = backImage[whichImage];
}
}

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.0
  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 && document.getElementById) x=document.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];}
}

function HeaderOptionClick(menutype,hreflink)
{//hreflink is for identifying paragraph heading in a particular page	
if (menutype=="HOME") 
	{
		//alert("Home Clicked");
		window.parent.frames[2].location.href="leftmenu.aspx";
		window.parent.frames[3].location.href="home.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="SOFTWAREDEVELOPMENT")
	{
		// alert("Software clicked"); 
		if (hreflink != "FromLeftMenu") 
		{
			window.parent.frames[2].location.href="softwaredevelopmentleftmenu.aspx";
		}
		window.parent.frames[3].location.href="softwaredevelopment.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="PRODUCTS")
	{
		//alert("Products clicked"); 
		window.parent.frames[2].location.href="productsleftmenu.aspx";
		window.parent.frames[3].location.href="products.html";
		//window.parent.frames[4].location.href="productsrightfigures.aspx";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="NEWSANDALERTS")
	{
		//alert("News clicked");
		window.parent.frames[3].location.href="updatenews.aspx";
	}
else if (menutype=="PRODUCTS_ITEMS")
	{	
		window.parent.frames[2].location.href="productsleftmenu.aspx";
		if (hreflink == "Winternals")
		{
			window.parent.frames[3].location.href="products_winternals.html";
		}
		if (hreflink == "Xyloc")
		{
			window.parent.frames[3].location.href="products_xyloc.html";
		}
		if (hreflink == "Ultrabac")
		{
			window.parent.frames[3].location.href="products_ultrabac.html";
		}
		if (hreflink == "IPSwitch")
		{
			window.parent.frames[3].location.href="products_ipswitch.html";
		}
		if (hreflink == "Roomwizard")
		{
			window.parent.frames[3].location.href="products_roomwizard.html";
		}
		if (hreflink == "Copycam")
		{
			window.parent.frames[3].location.href="products_copycam.html";
		}
		if (hreflink == "Innovative")
		{
			window.parent.frames[3].location.href="products_Innovative.html";
		}
		if (hreflink == "Cricket")
		{
			window.parent.frames[3].location.href="products_cricket.html";
		}
		
	}
else if (menutype=="SERVICES")
	{
		//alert("Services clicked");
		window.parent.frames[2].location.href="servicesleftmenu.aspx";
		if (hreflink == "ITinfrastructure")
		{
			window.parent.frames[3].location.href="services_itinfrastructure.html";
		}
		if (hreflink == "CAD")
		{
			window.parent.frames[3].location.href="services_2D3Drendering.html";
		}
		if (hreflink == "Projectmanagementservices")
		{
			window.parent.frames[3].location.href="services_projectmanagementservices.html";
		}
		if (hreflink == "bpo")
		{
			window.parent.frames[3].location.href="services_bpo.html";
		}
		if (hreflink == "")
		{
			window.parent.frames[3].location.href="services.html";
		}
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
	
else if (menutype=="CONTACTUS")
	{
		//alert("Contact Us clicked");
		window.parent.frames[2].location.href="contactusleftmenu.aspx";
		window.parent.frames[3].location.href="contactus.aspx";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
/*else if (menutype=="CUSTOMERLOGIN") //This module is transfered to header.aspx page
	{
		//alert("Customer Login clicked");
		window.parent.frames[2].location.href="customerportalleftmenu.aspx";
		//window.parent.frames[3].location.href="customerlogin.aspx";
		
		window.parent.frames[3].location.href="ftp://<%=ipaddress%>";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}*/
else if (menutype=="ABOUTUS")
	{
		//alert("About Us clicked");
		window.parent.frames[2].location.href="aboutusleftmenu.aspx";
		window.parent.frames[3].location.href="aboutus_Introduction.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="ABOUTUS_CELEBRATINGLIFE")
	{
			window.parent.frames[3].location.href="aboutus_CelebratingLife.html";
			window.parent.frames[4].location.href="rightfigures.html";
	}
else if (menutype=="ABOUTUS_QUALITYEDGE")
	{
		window.parent.frames[3].location.href="aboutus_QualityEdge.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="ABOUTUS_DOMAINEDGE")
	{
		//alert("About Us Celebrating clicked");
		//window.parent.frames[2].location.href="aboutusleftmenu.aspx";
		window.parent.frames[3].location.href="aboutus_DomainEdge.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="SD_TECHNICALPROFILE")
	{
		//alert("About Us Celebrating clicked");
		//window.parent.frames[2].location.href="aboutusleftmenu.aspx";
		window.parent.frames[3].location.href="sd_technicalprofile.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="ABOUTUS_COMPETENCEEDGE")
	{
		window.parent.frames[3].location.href="aboutus_CompetenceEdge.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="ELYSIUMNEWS")
	{
		//alert(hreflink);
		window.parent.frames[3].location.href="elysiumnews.html#"+hreflink;
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
	//else if (menutype=="ELYSIUM_SOFTWAREDEVELOPMENT")
	//{
		//alert(hreflink);
	//	window.parent.frames[3].location.href="softwaredevelopment.html#"+hreflink;
	//	window.parent.frames[4].location.href="rightfigures.html";
	//}
else if (menutype=="SD_DEVELOPMENTMETHODOLOGY")
	{		
		window.parent.frames[2].location.href="softwaredevelopmentleftmenu.aspx";
		window.parent.frames[3].location.href="sd_developmentmethodology.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="SD_PROJECTMANAGEMENT")
	{		
		window.parent.frames[3].location.href="sd_projectmanagement.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="SD_TECHNOLOGYSPECIALISATION")
	{		
		window.parent.frames[3].location.href="sd_technologyspecialisation.html";
		//window.parent.frames[4].location.href="rightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="WHATMAKESUSDIFFERENT")
	{
		window.parent.frames[3].location.href="whatmakesusdifferent.html";
		//window.parent.frames[4].location.href="servicesrightfigures.html";
		window.parent.frames[4].location.href="productsrightfigures.aspx";
	}
else if (menutype=="INDIA")
	{
		window.parent.frames[3].location.href="elysiumatindia.html";
			}
else if (menutype=="SINGAPORE")
	{
		window.parent.frames[3].location.href="elysiumatsingapore.html";
	}
else if (menutype=="UAE")
	{
		window.parent.frames[3].location.href="elysiumatuae.html";
	}
else if (menutype=="ASSOCIATES")
	{
		window.parent.frames[3].location.href="elysiumassociates.html";
	}
	
}
//-->
