document.write('<link rel="stylesheet" href="/styles/styles.css" type="text/css">');

function changeService(obj)
{
	var value;	

	value=obj.options.selectedIndex;
	if(value==0)
	{
		return true
	}
	if(value==1)
	{
		url="applicationsmanagement.htm"
	}
	if(value==2)
	{
		url="offshoreoutsourcing.htm"	
	}
	if(value==3)
	{
		url="systemsintegration.htm"	
	}
	if(value==4)
	{
		url="mainframe.htm"	
	}
	if(value==5)
	{
		url="crmecrm.htm"
	}
	if(value==6)
	{
		url="net.htm"	
	}
	if(value==7)
	{
		url="oracleportals.htm"	
	}
	if(value==8)
	{
		url="financialservices.htm"	
	}
	if(value==9)
	{
		url="government.htm"
	}
	if(value==10)
	{
		url="telecomservices.htm"	
	}
	
		parent.location="http://www.mastek.com/" + url;
		
}


function changePage1(obj)
{
	for (var i=0;i<obj.options.length;i++)
	{
		if(obj.options[i].selected)
		{
			if (obj.options[i].value=="japan")
			{
				parent.location="http://www.mastek.com/content/index_j.asp?sbupath=japan";
			}
			else if (obj.options[i].value=="germany")
			{
				parent.location="http://www.mastek.de";
			}
			else if (obj.options[i].value=="Switzerland")
			{
				parent.location="http://www.mastek.ch";
			}
			else if (obj.options[i].value=="Austria")
			{
				parent.location="http://www.mastek.at";
			}
			else if (obj.options[i].value=="india")
			{
				parent.location="http://www.mastek.com/content/contactus/index_in.asp";
			}
			else if (obj.options[i].value=="asiapacific")
			{
				parent.location="http://www.mastek.com/content/contactus/index_ap.asp";
			}
			else if (obj.options[i].value=="uk")
			{
                parent.location="http://www.mastek.co.uk";
              //parent.location="http://mastek.absolutions.fi";
			}
			else if (obj.options[i].value=="middleeast")
			{
                parent.location="http://www.mea.mastek.com";
              //parent.location="http://mastek.absolutions.fi";
			}
			else if (obj.options[i].value=="usa")
			{
				//parent.location="http://www.mastek.com/content/contactus/index_usa.asp"; Commented on 17_Jan_2006
				parent.location="http://www.majescomastek.com";
			}
		}
	}
}

function quickLinks(obj)
{
	var value;	

	value=obj.options.selectedIndex;
	if(value==0)
	{
		return true
	}
	if(value==1)
	{
		url="casestudies/index.asp"	
	}
	if(value==2)
	{
		url="whitepapers/index.asp"	
	}
	if(value==3)
	{
		url="clients/index.asp"	
	}
	if(value==4)
	{
		url="alumni/index.asp"	
	}
	if(value==5)
	{
		url="newsroom/index.asp"
	}
	if(value==6)
	{
		url="ezines/index.asp"	
	}
	if(value==7)
	{
		url="downloads/index.asp"	
	}
	
		parent.location="http://www.mastek.com/content/" + url;
		
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  window.open(theURL,winName,features);
}
function check()
{
if(document.search.terms.value=="")
{
alert("Please enter some subject of interest");
document.search.terms.focus;
return false;
}
else {
document.search.submit();
return true;
}
}

function winOpen(fname)
{
window.open(fname,"popup","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,copyhistory=0,save=0,width=540,height=600,left=20,top=10");
}

function winOpenpoll(fname)
{
window.open(fname,"popup","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,copyhistory=0,save=0,width=400,height=300,left=20,top=10");
}

function winOpen1(fname)
{
window.open(fname,"popup","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,copyhistory=0,save=0,width=600,height=445,left=20,top=10");
}

function winOpentest(fname)
{

window.open(fname,"popup","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,copyhistory=0,save=0,width=418,height=151,left=361,top=349");
}

function winVirtual(fname)
{

window.open(fname,"popup","toolbar=0,location=0,directories=0,status=yes,menubar=0,scrollbars=1,resizable=0,copyhistory=0,save=0,width=796,height=446,left=0,top=20");
}

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_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_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 MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

<!-- Begin image refresh function used in Microsites

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = 'http://www.mastek.com//images/customertalk/guentero.gif'
theImages[1] = 'http://www.mastek.com//images/customertalk/ahmado.gif'
theImages[2] = 'http://www.mastek.com//images/customertalk/david1o.gif'
theImages[3] = 'http://www.mastek.com//images/customertalk/kinjio.gif'
theImages[4] = 'http://www.mastek.com//images/customertalk/ooino.gif'
theImages[5] = 'http://www.mastek.com//images/customertalk/petero.gif'
theImages[6] = 'http://www.mastek.com//images/customertalk/rianuo.gif'
theImages[7] = 'http://www.mastek.com//images/customertalk/simono.gif'
theImages[8] = 'http://www.mastek.com//images/customertalk/sitio.gif'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'" width="143" height="215" border="0">');
}
//  End Image refresh function used in Microsites-->

function showdate()
{
	var adate = new Date();
	var strdate = adate + "/";
	strmonth = strdate.substr(4,3);
	var aday;
	aday = strdate.substr(8,2);
	//aday=adate.getDay();
	strmonth = strdate.substr(4,3);
	ayear=adate.getYear();
	ayear=ayear + "/";
	var x=ayear.length;
	y="";
	y=y+ayear.charAt(x-3)+ayear.charAt(x-2)
	document.write(strmonth + " " + aday + ", 20" + y)
}