// JavaScript Document
function TopContainer(){	document.write(' <a href="index.html"><img src="images/logo.gif" alt="Xerago - Analytical, Direct &amp; Interactive Marketing Services" title="Xerago - Analytical, Direct &amp; Interactive Marketing Services"  /></a><ul>      <li><a href="customer_value.html"><img src="images/cvm.gif" alt="Customer Value Maximization" title="Customer Value Maximization" /></a></li>      <li><a href="engagement.html"><img src="images/engagement.gif" alt="Engagement" title="Engagement" /></a></li>      <li><a href="services.html"><img src="images/services-normal.gif" alt="Services" title="Services" /></a>	  <ul class="menu">            <li><a href="portals.html" title="Portals">Portals</a></li>            <li><a href="digital_channels.html" title="Digital Channels">Digital Channels</a></li>           	<li><a href="media.html" title="Media">Media</a></li>			<li><a href="web-analtics.html" title="Web Analytics">Web Analytics</a></li>			<li><a href="campaign.html" title="Analytics and Campaign Management">Analytics and Campaign Management</a></li> <li><a href="http://www.xerago.com/qa/" title="Quality Assurance" target="_blank">Quality Assurance</a></li>         </ul>	  </li>  <li><a href="case_studies.html"><img src="images/case-studies.gif" alt="Clients and Case Studies" title="Clients and Case Studies" /></a></li> <li><a href="about-us.html"><img src="images/about-normal.gif" alt="About Us" title="About Us"   /></a>        <ul class="menuAbt">          <li><a href="manage-team.html" title="Xerago\'s Management Team">Xerago\'s Management Team</a></li>          <li><a href="toolsa-tech.html" title="Xerago\'s Tools and Technologies">Xerago\'s Tools and Technologies</a></li>        </ul>      </li>  <li style="padding-top:6px;"><a href="careers.php"><img src="images/career_normal.gif" alt="Careers" title="Careers" /></a></li>                    <li><a href="contact.html"><img src="images/contactus.gif" alt="Contact Us" title="Contact Us" /></a></li>    </ul>');}

function Footer(){	document.write('<div id="footer">    <p><span>To initiate an outsourcing conversation with us, mail <a href="mailto:solutions@xerago.com"><img src="images/solutions-at-xerago.gif" alt="solutions@xerago.com" title="solutions@xerago.com"></a> right now. We are grateful for your business.</span></p>    <p>Copyright 2011, Xerago, India. ( XHTML 1.0 / CSS 2.1 ) Privacy Note: We won\'t share your contact info with anyone. Unless the Government threatens us with dire consequences!</p><p class="font0"></p> </div>  <div style="display:none">		   <img src="images/call-normal.gif"  />		   <img src="images/mail-over.gif"  />		   <img src="images/web-ex-over.gif"  />		   <img src="images/dropin-over.gif"  />		   </div>');}

function showhide(src,img){
	var imgopen = 'images/arrow-close.gif';
	var imgclose = 'images/arrow-open.gif';
		if(document.getElementById(src).style.display == 'none'){
			document.getElementById(src).style.display = 'block';
			document.getElementById(img).src = imgopen;

		}
		else 
		{
			document.getElementById(src).style.display = 'none';
			document.getElementById(img).src = imgclose;
		}
}

function mouseover(id)
{
	 document.getElementById(id).style.backgroundColor='#f4f4f4'  ;
	  document.getElementById(id).style.textDecoration=''  ;
}

function mouseout(id)
{
	 document.getElementById(id).style.backgroundColor=''  ;
	  document.getElementById(id).style.textDecoration=''  ;
}

function close_cal()
	{	
	closewin("demo1");
	closewin("demo2");
	closewin("demo3");
	}
function trimSpace(x)
    {
	   var emptySpace = / /g;
	   var trimAfter = x.replace(emptySpace,"");
	   return(trimAfter);
    }

function textValidate(incomingString, defaultValue)
{
	if(trimSpace(incomingString).length == 0 || incomingString.search(/[^a-zA-Z ]/g) != -1 || incomingString==defaultValue)
	{
		return false;
	}
	else
		return true;
}

function textValidate1(incomingString, defaultValue)
{
	if(trimSpace(incomingString).length == 0 ||  incomingString==defaultValue)
	{
		return false;
	}
	else
		return true;
}
function numberValidate(incomingString, defaultValue)
{
	if(trimSpace(incomingString).length == 0 || incomingString.search(/[^0-9]/g) != -1 || incomingString==defaultValue || parseInt(incomingString, 10) <= 0 )
	{
		return false;
	}
	else
		return true;	
}

//var emailexp = /^([a-zA-Z0-9_\-\.]+)@([a-zA-Z\-]+)\.(([a-zA-Z]{2,3}|[0-9]{1,3})|([a-zA-Z]{2}\.[a-zA-Z]{2}))$/;
var emailexp =/^([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9\-]+)\.(([a-zA-Z]{2,}|[0-9]{2,})|([a-zA-Z]{2,}\.[a-zA-Z]{2,})|([a-zA-Z]{2,}\.[a-zA-Z]{2,}\.[a-zA-Z]{2,}))$/;

function formcontent()
{
	
	}	


	
function hideall(){
	for(  j = 0 ; j < noofquestions ; ++j ){
		var div_id = "question_" + (j);
		document.getElementById(div_id).style.display = 'none';
	}
	document.getElementById('next').style.display = 'block';
	document.getElementById('previous').style.display = 'none';
	document.getElementById('bar').style.display = 'none';
}



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];}
}	

function gittab(re){

if( re == 'Image11' )
{ 
document.getElementById('tab1').style.display = 'block';
document.getElementById('tab2').style.display = 'none';
document.getElementById('tab3').style.display = 'none';
document.getElementById('tab4').style.display = 'none';
document.getElementById('Image11').src="images/call-over.gif";
document.getElementById('Image12').src="images/mail-normal.gif";
document.getElementById('Image13').src="images/web-ex-normal.gif";
document.getElementById('Image14').src="images/dropin-normal.gif";
document.getElementById('Image11').parentNode.style.cursor="pointer";
document.getElementById('Image12').parentNode.style.cursor="pointer";
document.getElementById('Image13').parentNode.style.cursor="pointer";
document.getElementById('Image14').parentNode.style.cursor="pointer";
document.getElementById(re).parentNode.style.cursor="default";
}
else if( re == 'Image12' )
{ 
document.getElementById('tab2').style.display = 'block';
document.getElementById('tab1').style.display = 'none';
document.getElementById('tab3').style.display = 'none';
document.getElementById('tab4').style.display = 'none';
document.getElementById('Image11').src="images/call-normal.gif";
document.getElementById('Image12').src="images/mail-over.gif";
document.getElementById('Image13').src="images/web-ex-normal.gif";
document.getElementById('Image14').src="images/dropin-normal.gif";
document.getElementById('Image11').parentNode.style.cursor="pointer";
document.getElementById('Image12').parentNode.style.cursor="pointer";
document.getElementById('Image13').parentNode.style.cursor="pointer";
document.getElementById('Image14').parentNode.style.cursor="pointer";
document.getElementById(re).parentNode.style.cursor="default";
}
else if( re == 'Image13' )
{ 
document.getElementById('tab3').style.display = 'block';
document.getElementById('tab2').style.display = 'none';
document.getElementById('tab1').style.display = 'none';
document.getElementById('tab4').style.display = 'none';
document.getElementById('Image11').src="images/call-normal.gif";
document.getElementById('Image12').src="images/mail-normal.gif";
document.getElementById('Image13').src="images/web-ex-over.gif";
document.getElementById('Image14').src="images/dropin-normal.gif";
document.getElementById('Image11').parentNode.style.cursor="pointer";
document.getElementById('Image12').parentNode.style.cursor="pointer";
document.getElementById('Image13').parentNode.style.cursor="pointer";
document.getElementById('Image14').parentNode.style.cursor="pointer";
document.getElementById(re).parentNode.style.cursor="default";
}
else if( re == 'Image14' )
{ 
document.getElementById('tab3').style.display = 'none';
document.getElementById('tab2').style.display = 'none';
document.getElementById('tab1').style.display = 'none';
document.getElementById('tab4').style.display = 'block';
document.getElementById('Image11').src="images/call-normal.gif";
document.getElementById('Image12').src="images/mail-normal.gif";
document.getElementById('Image13').src="images/web-ex-normal.gif";
document.getElementById('Image14').src="images/dropin-over.gif";
document.getElementById('Image11').parentNode.style.cursor="pointer";
document.getElementById('Image12').parentNode.style.cursor="pointer";
document.getElementById('Image13').parentNode.style.cursor="pointer";
document.getElementById('Image14').parentNode.style.cursor="pointer";
document.getElementById(re).parentNode.style.cursor="default";
sc_down();
}
}




function showhide1(src,img){
	var imgopen = 'images/about_overs.gif';
	var imgclose = 'images/about_normal.gif';

		if(document.getElementById(src).style.display == 'none'){
			document.getElementById(src).style.display = 'block';
			document.getElementById(img).src = imgopen;

		}
		else 
		{
			document.getElementById(src).style.display = 'none';
			document.getElementById(img).src = imgclose;
		}
}


	

//Show hide option.....
var dhtmlgoodies_slideSpeed = 10;	// Higher value = faster
var dhtmlgoodies_timer = 10;	// Lower value = faster

var objectIdToSlideDown = false;
var dhtmlgoodies_activeId = false;
var dhtmlgoodies_slideInProgress = false;
function showHideContent(e,inputId)
{/*

	if(dhtmlgoodies_slideInProgress)return;
	dhtmlgoodies_slideInProgress = true;
	if(!inputId)inputId = this.id;
	inputId = inputId + '';
	var numericId = inputId.replace(/[^0-9]/g,'');
	var answerDiv = document.getElementById('showhide_a' + numericId);

	if(answerDiv.offsetHeight != 0){
	}
	
	var rightpanl = 'rightpaneltitle_' + numericId;
    if(rightpanl=='rightpaneltitle_1') document.getElementById ('rightpaneltitle_1').innerHTML = "<a s style='cursor:pointer;'><img src='images/four-min-over.gif' alt='4 Minute Test' title='4 Minute Test' /></a>";
	else document.getElementById ('rightpaneltitle_1').innerHTML = "<a s style='cursor:pointer;'><img src='images/four-min-normal.gif' alt='4 Minute Test' title='4 Minute Test' /></a>";
	
  if(rightpanl=='rightpaneltitle_2') document.getElementById ('rightpaneltitle_2').innerHTML = "<a s style='cursor:pointer;'><img src='images/ywass-over.gif' alt='Your Work Assesment' title='Your Work Assesment'/></a>";
	else document.getElementById ('rightpaneltitle_2').innerHTML = "<a s style='cursor:pointer;'><img src='images/ywass-normal.gif' alt='Your Work Assesment' title='Your Work Assesment' /></a>";
	
    if(rightpanl=='rightpaneltitle_3') document.getElementById ('rightpaneltitle_3').innerHTML = "<a s style='cursor:pointer;'><img src='images/gintouch-over.gif' alt='Get in Touch' title='Get in Touch' /></a>";
	else document.getElementById ('rightpaneltitle_3').innerHTML = "<a s style='cursor:pointer;'><img src='images/gintouch-normal.gif' alt='Get in Touch' title='Get in Touch' /></a>";
	
	objectIdToSlideDown = false;
	
	if(!answerDiv.style.display || answerDiv.style.display=='none'){
			if(dhtmlgoodies_activeId &&  dhtmlgoodies_activeId!=numericId){
			objectIdToSlideDown = numericId;
			slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
		}else{
			
			answerDiv.style.display='block';
			answerDiv.style.visibility = 'visible';
						slideContent(numericId,dhtmlgoodies_slideSpeed);
		}
	}else{
		if(dhtmlgoodies_activeId &&  dhtmlgoodies_activeId!=numericId){
					objectIdToSlideDown = numericId;
			slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
		}else{
			answerDiv.style.display='block';
			answerDiv.style.visibility = 'visible';
			slideContent(numericId,dhtmlgoodies_slideSpeed);
		}
		}	*/
}
function slideContent(inputId,direction)
{

	var obj =document.getElementById('showhide_a' + inputId);
	var contentObj = document.getElementById('showhide_ac' + inputId);
	height = obj.clientHeight;
	if(height==0)height = obj.offsetHeight;
	height = height + direction;
	rerunFunction = true;
	if(height>contentObj.offsetHeight){
		height = contentObj.offsetHeight;
		rerunFunction = false;
	}
	if(height<=1){
		height = 1;
		rerunFunction = false;
	}

	obj.style.height = height + 'px';
	var topPos = height - contentObj.offsetHeight;
	if(topPos>0)topPos=0;
	contentObj.style.top = topPos + 'px';
	if(rerunFunction){
		setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer);
	}else{
		if(height<=1){
			obj.style.display='none'; 
			if(objectIdToSlideDown && objectIdToSlideDown!=inputId){
				document.getElementById('showhide_a' + objectIdToSlideDown).style.display='block';
				document.getElementById('showhide_a' + objectIdToSlideDown).style.visibility='visible';
				slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);				
			}else{
				dhtmlgoodies_slideInProgress = false;
			}
		}else{
			dhtmlgoodies_activeId = inputId;
			dhtmlgoodies_slideInProgress = false;
		}
	}
}

function initShowHideDivs()
{
	var divs = document.getElementsByTagName('DIV');

	var divCounter = 1;
	for(var no=0;no<divs.length;no++){
		if(divs[no].className=='showhide_question'){
			//divs[no].onclick = showHideContent('',divCounter);
			divs[no].id = 'showhide_q'+divCounter;
			var answer = divs[no].nextSibling;
			while(answer && answer.tagName!='DIV'){
				answer = answer.nextSibling;
			}
			answer.id = 'showhide_a'+divCounter;	
			contentDiv = answer.getElementsByTagName('DIV')[0];
			contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px'; 	
			contentDiv.className='showhide_answer_content';
			contentDiv.id = 'showhide_ac' + divCounter;
			answer.style.display='none';
			answer.style.height='1px';
			divCounter++;
		}		
	}


}

function showCall(state,id)
{

if(state=="1"){
  if(document.schedulecall.timezone.selectedIndex==0) {
		alert("Please select your TimeZone")
		document.schedulecall.timezone.focus()
		return false
	}  
	if(trimSpace(document.schedulecall.call_date.value)=="") {
		alert("Please select your Date")
		document.schedulecall.call_date.focus()
		return false
	}  
}

if(state=="2"){
 

		if(document.schedulecall.hh.selectedIndex==0) {
			alert("Please select your Hour")
			document.schedulecall.hh.focus()
			return false
		}  

		if(document.schedulecall.min.selectedIndex==0) {
			alert("Please select your minute")
			document.schedulecall.min.focus()
			return false
		}  

if(document.schedulecall.min.selectedIndex==1 && document.schedulecall.hh.selectedIndex==1 )
		{
			alert("Please select your minute")
			document.schedulecall.min.focus()
			return false
		}



		if(document.schedulecall.call[0].checked==false && document.schedulecall.call[1].checked==false) {
			alert("Please select the type of call")
			document.schedulecall.call[0].focus()
			return false
		}

	

		if(document.schedulecall.exhh.selectedIndex==0) {
			alert("Please select your Hour of Duration")
			document.schedulecall.exhh.focus()
			return false
		}  
		if(document.schedulecall.exmin.selectedIndex==0) {
			alert("Please select your Minute of Duration")
			document.schedulecall.exmin.focus()
			return false
		}  
	   document.getElementById("captcha_call").src="includes/captcha/CaptchaSecurityImages_right.php?width=70&height=30&characters=5&"+Math.random();
	
}

if(state=="3" || state=="4"){

	if(!textValidate(document.schedulecall.txtName1.value,''))
           {
	         alert("Please enter your Name.(ALPHABETS ONLY)");
			 document.schedulecall.txtName1.focus();
	         document.schedulecall.txtName1.select();
			 return false
		   }



if(!textValidate1(document.schedulecall.txtEmail1.value,''))
           {
	         alert("Please enter your Email Id");
			 document.schedulecall.txtEmail1.focus();
	         document.schedulecall.txtEmail1.select();
			 return false
		   }

	if(document.schedulecall.txtEmail1.value!="")
		  {
		   if(!emailexp.test(document.schedulecall.txtEmail1.value,''))
			   {
					alert("Please enter your Email ID")
					document.schedulecall.txtEmail1.focus();
					document.schedulecall.txtEmail1.select();
					return false
			   } 
		   }

	if(trimSpace(document.schedulecall.txtPhone.value)=="")
	{
		alert("Please Enter Your Phone Number")
		document.schedulecall.txtPhone.focus();
		document.schedulecall.txtPhone.select();
		return false
	}

	if(!phone_validate(document.schedulecall.txtPhone.value,''))
	{
		alert("Please Enter Your Correct Number")
		document.schedulecall.txtPhone.focus();
		document.schedulecall.txtPhone.select();
		return false
	}
   if(state=="4") 
   {
   if(document.schedulecall.callsecurity_code.value=="")
		  {
				alert("Please enter your Security Code")
				document.schedulecall.callsecurity_code.focus();
				document.schedulecall.callsecurity_code.select();
				return false
		  }
	else {
			//  cllSecurity1(document.schedulecall.callsecurity_code.value);
			return true;
	     }
		 return false;
   }
		 
	
}






document.getElementById("call_1").style.display="none";
document.getElementById("call_2").style.display="none";
document.getElementById("call_3").style.display="none";

document.getElementById("call_"+id).style.display="block";

}




function phone_validate(incomingString, defaultValue)
{
	if(trimSpace(incomingString).length == 0 || incomingString.search(/[^0-9\.\+\-]/g) != -1 || incomingString==defaultValue)
	{
		return false;
	}
	else
		return true;
}


function reset1()
{
hideall();
WMhideall();

inti=0;
WMinti=0;

document.frmmintest.reset();
document.getElementById('question_0').style.display = 'block';
myProgBar.setBar(0);
myProgBar.setCol('#BBD800'); //change the colour of the progress bar

WMmyProgBar.WMsetBar(0);
WMmyProgBar.WMsetCol('#BBD800'); //change the colour of the progress bar
return false
}



function reset2()
{

resethideall();
wsinti=0;
document.siteaccess.reset();
document.getElementById('wsquestion_0').style.display = 'block';
wsmyProgBar.wssetBar(0);
wsmyProgBar.wssetCol('#BBD800'); //change the colour of the progress bar
return false
}


function call_reset(obj)
{
document.getElementById("call_1").style.display="block";
document.getElementById("call_2").style.display="none";
document.getElementById("call_3").style.display="none";

document.schedulecall.reset();
return false
}

function show_web(id)
{

   
if(id=="2"){
 if(!textValidate(document.schedulewebex.Name.value,''))
           {
	         alert("Please enter your Name.(ALPHABETS ONLY)");
			 document.schedulewebex.Name.focus();
	         document.schedulewebex.Name.select();
			 return false
		   }
	if(!textValidate(document.schedulewebex.Nickname.value,''))
           {
	         alert("Please enter your Nickname.(ALPHABETS ONLY)");
			 document.schedulewebex.Nickname.focus();
	         document.schedulewebex.Nickname.select();
			 return false
			   }
		
			
			
}

if(id=="3"){

if(!textValidate1(document.schedulewebex.Designation.value,''))
			   {
				 alert("Please enter your Designation");
				 document.schedulewebex.Designation.focus();
				 document.schedulewebex.Designation.select();
				 return false
			   }

if(document.schedulewebex.Organization.value!="")
		  {
		   if(!textValidate1(document.schedulewebex.Organization.value,''))
			   {
					alert("Please enter your Organization")
					document.schedulewebex.Organization.focus();
					document.schedulewebex.Organization.select();
					return false
			   } 
		   }

 if(!textValidate1(document.schedulewebex.Email.value,''))
           {
	         alert("Please enter your Email Id");
			 document.schedulewebex.Email.focus();
	         document.schedulewebex.Email.select();
			 return false
		   }

	if(document.schedulewebex.Email.value!="")
		  {
		   if(!emailexp.test(document.schedulewebex.Email.value,''))
			   {
					alert("Please enter your Email ID")
					document.schedulewebex.Email.focus();
					document.schedulewebex.Email.select();
					return false
			   } 
		   }
		  
} 
if(id=="4"){
  if(document.schedulewebex.timezone.selectedIndex==0)
          {
	           alert("Please select your TimeZone")
	           document.schedulewebex.timezone.focus()
	           return false
          }  
		  
  if(trimSpace(document.schedulewebex.date_webex.value)=="")
	{
		alert("Please Enter Your Date")
		document.schedulewebex.date_webex.focus();
		document.schedulewebex.date_webex.select();
		return false
	}
	if(document.schedulewebex.webxsecurity_code.value=="")
		  {
				alert("Please enter your Security Code")
				document.schedulewebex.webxsecurity_code.focus();
				document.schedulewebex.webxsecurity_code.select();
				return false
		   }

return true;
}


document.getElementById("web_1").style.display="none";
document.getElementById("web_2").style.display="none";
document.getElementById("web_3").style.display="none";
document.getElementById("web_"+id).style.display="block";


}

function show_webback(ids)
{
document.getElementById("web_1").style.display="none";
document.getElementById("web_2").style.display="none";
document.getElementById("web_3").style.display="none";
document.getElementById("web_"+ids).style.display="block";
}
function webex_reset(ids)
{
document.schedulewebex.reset();
document.getElementById("web_1").style.display="block";
document.getElementById("web_2").style.display="none";
document.getElementById("web_3").style.display="none";
return false;
}
/* Progress bar 

var MWJ_progBar = 0;

function getRefToDivNest( divID, oDoc ) {
	if( !oDoc ) { oDoc = document; }
	if( document.layers ) {
		if( oDoc.layers[divID] ) { return oDoc.layers[divID]; } else {
			for( var x = 0, y; !y && x < oDoc.layers.length; x++ ) {
				y = getRefToDivNest(divID,oDoc.layers[x].document); }
			return y; } }
	if( document.getElementById ) { return document.getElementById(divID); }
	if( document.all ) { return document.all[divID]; }
	return document[divID];
}

function progressBar( oBt, oBc, oBg, oBa, oWi, oHi, oDr ) {
	MWJ_progBar++; this.id = 'MWJ_progBar' + MWJ_progBar; this.dir = oDr; this.width = oWi; this.height = oHi; this.amt = 0;
	//write the bar as a layer in an ilayer in two tables giving the border
	document.write( '<table border="0" cellspacing="0" cellpadding="'+oBt+'"><tr><td bgcolor="'+oBc+'">'+
		'<table border="0" cellspacing="0" cellpadding="0"><tr><td height="'+oHi+'" width="'+oWi+'" bgcolor="'+oBg+'">' );
	if( document.layers ) {
		document.write( '<ilayer height="'+oHi+'" width="'+oWi+'"><layer bgcolor="'+oBa+'" name="MWJ_progBar'+MWJ_progBar+'"></layer></ilayer>' );
	} else {
		document.write( '<div style="position:relative;top:0px;left:0px;height:'+oHi+'px;width:'+oWi+';">'+
			'<div style="position:absolute;top:0px;left:0px;height:0px;width:0;font-size:1px;background-color:'+oBa+';" id="MWJ_progBar'+MWJ_progBar+'"></div></div>' );
	}
	document.write( '</td></tr></table></td></tr></table>\n' );
	this.setBar = resetBar; //doing this inline causes unexpected bugs in early NS4
	this.setCol = setColour;
}

function resetBar( a, b ) {
	//work out the required size and use various methods to enforce it
	this.amt = ( typeof( b ) == 'undefined' ) ? a : b ? ( this.amt + a ) : ( this.amt - a );
	if( isNaN( this.amt ) ) { this.amt = 0; } if( this.amt > 1 ) { this.amt = 1; } if( this.amt < 0 ) { this.amt = 0; }
	var theWidth = Math.round( this.width * ( ( this.dir % 2 ) ? this.amt : 1 ) );
	var theHeight = Math.round( this.height * ( ( this.dir % 2 ) ? 1 : this.amt ) );
	var theDiv = getRefToDivNest( this.id ); if( !theDiv ) { window.status = 'Progress: ' + Math.round( 100 * this.amt ) + '%'; return; }
	if( theDiv.style ) { theDiv = theDiv.style; theDiv.clip = 'rect(0px '+theWidth+'px '+theHeight+'px 0px)'; }
	var oPix = document.childNodes ? 'px' : 0;
	theDiv.width = theWidth + oPix; theDiv.pixelWidth = theWidth; theDiv.height = theHeight + oPix; theDiv.pixelHeight = theHeight;
	if( theDiv.resizeTo ) { theDiv.resizeTo( theWidth, theHeight ); }
	theDiv.left = ( ( this.dir != 3 ) ? 0 : this.width - theWidth ) + oPix; theDiv.top = ( ( this.dir != 4 ) ? 0 : this.height - theHeight ) + oPix;
}


function setColour( a ) {
	//change all the different colour styles
	var theDiv = getRefToDivNest( this.id ); if( theDiv.style ) { theDiv = theDiv.style; }
	theDiv.bgColor = a; theDiv.backgroundColor = a; theDiv.background = a;
}
*/
function startCallback_call()
{

}



function startCallback_frmins()
{

}

function completeCallback_frmins(response) 
{
	if(urlvalidAccess==1 && document.getElementById('frmins_security_code').value!="")
	{ 
		if(response=="success"){ 
			document.frmmintest.reset();
			$("#sidebar div:eq(0) fieldset").hide();
			$("#msg_frmin").html("Thank you for taking the Customer Value Maximization Maturity Assessment. We will get in touch with you soon.");
			urlvalidAccess=0;
		}
		else {
			$('#error1c').html(response);
			$('#error1c').show();
			
		}
	}
}	


function startCallback_web()
{

}


function startCallback_wasmnt()
{

}

function completeCallback_wasmnt(response)  
{ 
		if(urlvalidAccess==1 && document.getElementById('site_security_code').value!="")
		{
			if(response=="sucess" ){ 
				document.siteaccess.reset();
				$("#sidebar div:eq(2) fieldset").hide();
				$("#msg_wasmn1").html("Thank you for sharing your business challenges with us. We will get in touch with you shortly.");
				urlvalidAccess=0;
			}else{ 
				$('#error3').html(response);
				$('#error3').show();
			}
		}
}


		var timeout = 0;
		var closetimer = 0;
		var ddmenuitem = 0;
		
		function ddmenu_open(){
			ddmenu_canceltimer();
		   	ddmenu_close();

			if(this.id=="menu41"){
			MM_swapImage('Image41','','file://///10.0.30.45/website/xerago/xhtml/js/images/services_over.gif',1);
			}
			if(this.id=="menu51")
			{
			MM_swapImage('imgd2','','file://///10.0.30.45/website/xerago/xhtml/js/images/about_overs.gif',1);
			}
		   	ddmenuitem = $(this).find('ul').css('visibility', 'visible');
		}
		
		function ddmenu_close(){ 
		
			if(ddmenuitem) { ddmenuitem.css('visibility', 'hidden');
			MM_swapImgRestore();
			}
		}
		
		function ddmenu_timer(){
			closetimer = window.setTimeout(ddmenu_close, timeout);
		}
		
		function ddmenu_canceltimer(){  
			if(closetimer){  
				window.clearTimeout(closetimer);
		        closetimer = null;
		}}
		
	
		
		document.onclick = ddmenu_close;




