function validRequestInfoBoxwithCAPTCHA(theForm) {

	if (theForm.first_name.value.length==0||theForm.last_name.value.length==0||theForm.email.value.length==0||theForm.recaptcha_response_field.value.length==0) 
	{
		if (theForm.first_name.value.length>0&&theForm.last_name.value.length>0&&theForm.email.value.length>0){
			alert ('Please enter Confirmation Code');
		}else{
			alert ('Please fill out all required fields');
		}
		return false;
	} else { 	
		return true;
	}

}

function validRequestInfoBox(theForm) {

	if (theForm.name.value.length==0||theForm.last_name.value.length==0||theForm.email.value.length==0) 
	{
		alert ('Please fill out all required fields');
		return false;
	} else { 	
		return true;
	}

}
function validConfidentialityAgreementCheckBoxes(theForm) {

	if (theForm.first_name.value.length==0||theForm.last_name.value.length==0||theForm.email.value.length==0||theForm.TermsChecked.checked == false) 
	{
		if (theForm.first_name.value.length>0&&theForm.last_name.value.length>0&&theForm.email.value.length>0){
			alert ('Please agree Context\'s Confidentiality Agreement');
		}else{
			alert ('Please fill out all required fields');
		}
		return false;
	} else { 	
		return true;
	}

}

function togglenews(e,toggleid) {
 var ele = document.getElementById(toggleid);
	var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }

  if(myWidth>974){
  myWidth=(myWidth-950)/2;
  
  }else{
  myWidth=0;
  }

   // Set the div top to the height 
     ele.style.top =125;
	 ele.style.right =myWidth;
     // Set the div Left to the height 
    // ele.style.right = (parseInt(myWidth)-940)/2
     
	if(ele.style.display == "block") {
    		ele.style.display = "none";
  	}
	else {
		ele.style.display = "block";
	}
} 



function hidetogglenews() {
	var ele = document.getElementById('togglenews');
	ele.style.display = "none";
}

