function disableStatuses()
 {
	 //onMouseOver
 //DisableEnableLinks(true);
 }
 
 function DisableEnableLinks(xHow){
  objLinks = document.links;
  for(i=0;i<objLinks.length;i++){
  try
  {
  objLinks[i].disabled = xHow;
	
    //link with onclick
    if(objLinks[i].onclick && xHow){  
        objLinks[i].onclick = new Function("return false;" + objLinks[i].onclick.toString().getFuncBody());
		
    }
    //link without onclick
    else if(xHow){  
      objLinks[i].onclick = function(){return false;}
    }
    //remove return false with link without onclick
    else if(!xHow && objLinks[i].onclick.toString().indexOf("function(){return false;}") != -1){            
      objLinks[i].onclick = null;
    }
    //remove return false link with onclick
    else if(!xHow && objLinks[i].onclick.toString().indexOf("return false;") != -1){  
      strClick = objLinks[i].onclick.toString().getFuncBody().replace("return false;","")
      objLinks[i].onclick = new Function(strClick);
    }
  }catch(expce)
  {
  }
  }
}

String.prototype.getFuncBody = function(){ 
  var str=this.toString(); 
  str=str.replace(/[^{]+{/,"");
  str=str.substring(0,str.length-1);   
  str = str.replace(/\n/gi,"");
  if(!str.match(/\(.*\)/gi))str += ")";
  return str; 
} 

function funclose()
{
	document.getElementById('trailVideorequest').style.display = 'none';
	//DisableEnableLinks(false);
}

function funclosewin()
{
	
	document.getElementById('trailVideoMail').style.display = 'none';
	//DisableEnableLinks(false);
}


function funclosewinthnaks()
{
	//DisableEnableLinks(false);
	document.getElementById('thanksmail').style.display = 'none';
}

function funclosewinvideoRequest()
{
	
	document.getElementById('thanksvideoRequest').style.display = 'none';
	//DisableEnableLinks(false);
}

function funclosewinemailverification()
{
	document.getElementById('emailverfication').style.display = 'none';
	 newemailvideorequest();
	//document.getElementById('trailVideorequest').style.display = 'Inline';
}

function tvMakeCall(){
    var x = document.getElementById('userPhone').value ;
    var foo = '<iframe src="http://c2c.thinkingvoice.com/c2t/calls/html/static/topLevel/noPrePhoneReqW140H90.html?identifier=79f14dde-e6a1-102b-bd28-001d096a3ed0'+ 
      '&phone=' + x + '" frameborder="0" left="10px" height="90px"' +
      ' width="140px" style="height:90px;' +
      ' width:140px; overflow:hidden;" MARGINHEIGHT="0px"' + 
      ' MARGINWIDTH="0px" frameborder=0 scrolling="no"> <\/iframe>';
    var bar = document.getElementById('tvChunk');
    bar.innerHTML = foo;
/*    window.open("http://c2c.thinkingvoice.com/c2t/calls/html/static/topLevel/noPrePhoneReqW140H90.html?identifier=79f14dde-e6a1-102b-bd28-001d096a3ed0&phone="+x, "Call Now!","width=140px,height= 90px, resizable=no");
*/}






