var _pset = {"button":{"pin":0,"hash":"PhQT_ylStolEd78rLuLA5w","PATH_TO_CALLME_SCRIPT":"http:\/\/www.comtube.ru\/modules\/WCcallme\/WCcallme_script.php"},"PATH_TO_IMG":"http:\/\/www.comtube.ru\/res\/images","PATH_TO_ROOT":"http:\/\/www.comtube.ru","PATH_TO_ROOT_SCRIPT":"http:\/\/www.comtube.ru\/index","call_to":0};
var FilteredCallNumber="";

function FilterCallNumber()
{
 var xmlhttpcont;
 if(window.XMLHttpRequest)  {  xmlhttpcont=new XMLHttpRequest();  }
 else
  if (window.ActiveXObject)  {  xmlhttpcont=new ActiveXObject("Microsoft.XMLHTTP");  }
  else  {  /* alert("Your browser does not support XMLHTTP!"); */  }

xmlhttpcont.onreadystatechange=function()
{
 if(xmlhttpcont.readyState==4) {
  //if(document.getElementById("ExContacts")) { document.getElementById("ExContacts").innerHTML = xmlhttpcont.responseText; }
 } 
}

 UnFilteredCallNumber=document.getElementById('input_user_phone_1').value;
 xmlhttpcont.open("GET",("/forms/show-contacts-call.asp?call=").concat(UnFilteredCallNumber.replace(/[\&\?\#\']/g, "_")),true)
 xmlhttpcont.send(null);

 FilteredCallNumber=UnFilteredCallNumber.replace(/[\+\(\)\s\-]/g, "");
 OnCall(FilteredCallNumber);
}


function ShowExContacts()  //show extended contacts
{
 var xmlhttpcont;
 if(window.XMLHttpRequest)  {  xmlhttpcont=new XMLHttpRequest();  }
 else
  if (window.ActiveXObject)  {  xmlhttpcont=new ActiveXObject("Microsoft.XMLHTTP");  }
  else  {  /* alert("Your browser does not support XMLHTTP!"); */  }

xmlhttpcont.onreadystatechange=function()
{
 if(xmlhttpcont.readyState==4) {
  //if(document.getElementById("ExContactsSkype")) {document.getElementById("ExContactsSkype").innerHTML="<img src='http://www.ld.ru/cabinet/files/skype_sipnet_ru.gif' width=309 height=462 hspace=0 vspace=160 border=0 align='right'>";}
  if(document.getElementById("ExContacts")) {document.getElementById("ExContacts").innerHTML=xmlhttpcont.responseText;}
  if(document.getElementById("ExContactsLink")) {document.getElementById("ExContactsLink").innerHTML = "бесплатный звонок на телефоны в других городах России:";}
 } 
}

xmlhttpcont.open("GET","/forms/show-contacts-ex.asp",true);
xmlhttpcont.send(null);
}


