﻿function detectUserAgent()
{
 //alert('helloo');
 var agent=navigator.userAgent.toLowerCase();
 //alert(agent);
 var is_iphone = (agent.indexOf('iphone')!=-1);
 var is_ipad = (agent.indexOf('ipad')!=-1);
 if (is_iphone) { 
	//alert('this is iphone');
   document.getElementById('main-img').innerHTML="<img src='flash\\imgs\\open-world-ipad.jpg' />";
   document.getElementById('body-inner-right').innerHTML="<img src='flash\\imgs\\eventss.jpg' />";
   
  }
  else if (is_ipad){
	  
	//alert('this is ipad');
	document.getElementById('main-img').innerHTML="<img src='flash\\imgs\\open-world-ipad.jpg' />";
	document.getElementById('body-inner-right').innerHTML="<img src='flash\\imgs\\eventss.jpg' />";
	
  }
  else
  { // alert('this is not iphone');
     document.getElementById('main-img').innerHTML="<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='980' height='167'> <param name='movie' value='flash/inner_banner.swf'><param name='quality' value='high'><param name='wmode' value='transparent'> <param name='menu' value='false'><embed src='flash/inner_banner.swf' width='980' height='167' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed></object>";
	 
	 document.getElementById('body-inner-right').innerHTML="<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='386' height='204'> <param name='movie' value='flash/Events & Alliances.swf'><param name='quality' value='high'><param name='wmode' value='transparent'> <param name='menu' value='false'><embed src='flash/Events & Alliances.swf' width='386' height='204' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' wmode='transparent' menu='false'></embed></object>";

	  
	 
	
   }
}
        

function search_form(fcs_Form) {
var results_location = "results.asp";
                    if (fcs_Form.d.value.length > 0) {

                                    document.cookie = "d=" + escape(fcs_Form.d.value);

                                    window.location = results_location;

                    }
}
function valid(obj)
{
	//alert(obj.value);
	if(obj.value=='bdw'){	
	   window.location="business.asp";	
	}
	if(obj.value=='dsr'){	
	   window.location="dsrmanagement.asp";	
	}	
		else if(obj.value=='erp'){	
	   window.location="eresource.asp";	
	}	
	else if(obj.value=='crm'){	
	   window.location="customer.asp";	
	}	
		else if(obj.value=='bia'){	
	   window.location="BIApps.asp";	
	}	
		else if(obj.value=='Coll09'){	
	   window.location="Collabrato09.asp";	
	}
	else if(obj.value=='itservices'){	
	   window.location="softwaretesting.asp";	
	}	
	else if(obj.value=='eai'){	
	   window.location="eapplication.asp";	
	}	
	else if(obj.value=='security'){	
	   window.location="security.asp";	
	}	
	else if(obj.value=='portal'){	
	   window.location="portal.asp";	
	}	
	else if(obj.value=='pes'){	
	   window.location="productengineering.asp";	
	}	
	else if(obj.value=='fcsoracle'){	
	   window.location="fcsoracle.asp";	
	}	
	else if(obj.value=='fcstimetrax'){	
	   window.location="fcstimetrax.asp";	
	}	
		else if(obj.value=='fcsretailadapter'){	
	   window.location="RetailAdapter.asp";	
	}
	else if(obj.value=='fcsoutlookconnecter'){	
	   window.location="OutlookConnector.asp";	
	}
	else if(obj.value=='fcsenterpriseplus'){	
	   window.location="fcsenterpriseplus.asp";	
	}	
	else if(obj.value=='fcsrecruiter'){	
	   window.location="fcsrecruiter.asp";	
	}	
	else if(obj.value=='mic'){	
	   window.location="microsoft.asp";	
	}	
	else if(obj.value=='WebMethods'){	
	   window.location="webmethods.asp";	
	}	
	else if(obj.value=='Oracle'){	
	   window.location="oracle.asp";	
	}	
	else if(obj.value=='Sap'){	
	   window.location="sap.asp";	
	}	
	else if(obj.value=='Java'){	
	   window.location="java.asp";	
	}	
	else if(obj.value=='Open Source'){	
	   window.location="opensource.asp";	
	}	
	else if(obj.value=='IBM'){	
	   window.location="ibm.asp";	
	}	
}

function validIndustry(obj)
{
	//alert(obj.value);
	if(obj.value == "Banking, Insurance & Financial Services")
	{
		window.location="industries.asp#bif";
	}
	else if(obj.value == "Higher Education")
	{
		window.location="industries.asp#he";
	}
	else if(obj.value == "HealthCare")
	{
		window.location="industries.asp#hc";
	}
	else if(obj.value == "Manufacturing")
	{
		window.location="industries.asp#ma";
	}
	else if(obj.value == "consumer")
	{
		window.location="industries.asp#cn";
	}
	
	
	else if(obj.value == "Retail")
	{
		window.location="industries.asp#re";
	}
	else if(obj.value == "Energy & Utility")
	{
		window.location="industries.asp#eu";
	}
}

//press.asp
function popup()
	{
		 window.open ("press_detail.asp","mywindow","scrollbars=1,toolbar=1,width=450,height=350");
	}
function popup1()
	{
		 window.open ("press_detail1.asp","mywindow","scrollbars=1,toolbar=1,width=450,height=350");
	}
//press.asp