var overPlant = new Array();
overPlant[1]=0;
myPlant[1]=0;


function showBigPic(id,widt,heit,type,bro,isback){
if (window.big_item){big_item.close();}
if (bro==0){hei=((screen.height-heit)/2-30);wid=((screen.width-widt)/2);big_item=window.open("/showpic/"+id+"/"+type+"/"+isback+"/","mapp","width="+(widt-4)+",height="+(heit-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){widt=widt+8;heit=heit+8;hei=((screen.height-heit)/4);wid=((screen.width-widt)/2);big_item=window.open("/showpic/"+id+"/"+type+"/"+isback+"/","mapp","width="+(widt-8)+",height="+(heit-8)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}

function showCont(id,widt,heit,bro){
if (window.big_item){big_item.close();}
if (bro==0){hei=((screen.height-heit)/2-30);wid=((screen.width-widt)/2);big_item=window.open("/showcont/"+id+"/","mapp","width="+(widt-4)+",height="+(heit-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){widt=widt+8;heit=heit+8;hei=((screen.height-heit)/4);wid=((screen.width-widt)/2);big_item=window.open("/showcont/"+id+"/","mapp","width="+(widt-8)+",height="+(heit-8)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}

function showNews(id,widt,heit,bro){
if (window.big_item){big_item.close();}
if (bro==0){hei=((screen.height-heit)/2-30);wid=((screen.width-widt)/2);big_item=window.open("/shownews/"+id+"/","mapp","width="+(widt-4)+",height="+(heit-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){widt=widt+8;heit=heit+8;hei=((screen.height-heit)/4);wid=((screen.width-widt)/2);big_item=window.open("/shownews/"+id+"/","mapp","width="+(widt-8)+",height="+(heit-8)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}

function ChangeFoto(n,bro){
if (n==1){if (Counter<(pics.length-1)){Counter++;}}
if (n==2){if (Counter>0){Counter--;}}
document.all["foto"].src="/download/"+pics[Counter];
btns = document.getElementsByName('fotolenta'); 
if (Counter<(pics.length-1)){
document.all["fforward"].innerHTML='<img src=/img/active.jpg width=13 height=15 alt="Следующее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto(1,'+bro+');>';
}
else{
document.all["fforward"].innerHTML='<img src=/img/dead2.jpg width=13 height=15>';
}
if (Counter>0){
document.all["fback"].innerHTML='<img src=/img/active2.jpg width=13 height=15 alt="Предыдущее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto(2,'+bro+');>';
}
else{
document.all["fback"].innerHTML='<img src=/img/dead.jpg width=13 height=15>';
}
if(pics_b[Counter]!=""){
document.all["zoom"].innerHTML='<img src=/img/zoom.jpg width=22 height=25 alt="Увеличить изображение" border=0 style="cursor:hand;cursor:pointer;" onclick=ShowFoto('+bro+');>';
}
else{document.all["zoom"].innerHTML='';}
document.all["ftext"].innerHTML=texts[Counter];
}


function AutoChangeFoto(n,bro){
if (pics.length>1){
if (n==1){if (Counter<(pics.length-1)){Counter++;}}
if (Counter==(pics.length-1)){Counter=0;}
if (n==2){if (Counter>0){Counter--;}}
if (navigator.appName == "Microsoft Internet Explorer"){
foto.style.filter="blendTrans(duration=2)";
foto.style.filter="blendTrans(duration=crossFadeDuration)";
foto.filters.blendTrans.Apply();
foto.filters.blendTrans.Play();
}
document.all["foto"].src="/download/"+pics[Counter];
btns = document.getElementsByName('fotolenta'); 
if (Counter<(pics.length-1)){
document.all["fforward"].innerHTML='<img src=/img/active.jpg width=13 height=15 alt="Следующее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto(1,'+bro+');>';
}
else{
document.all["fforward"].innerHTML='<img src=/img/dead2.jpg width=13 height=15>';
}
if (Counter>0){
document.all["fback"].innerHTML='<img src=/img/active2.jpg width=13 height=15 alt="Предыдущее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto(2,'+bro+');>';
}
else{
document.all["fback"].innerHTML='<img src=/img/dead.jpg width=13 height=15>';
}
if(pics_b[Counter]!=""){
document.all["zoom"].innerHTML='<img src=/img/zoom.jpg width=22 height=25 alt="Увеличить изображение" border=0 style="cursor:hand;cursor:pointer;" onclick=ShowFoto('+bro+');>';
}
else{document.all["zoom"].innerHTML='';}
if(document.getElementById('ftext')){
document.all["ftext"].innerHTML=texts[Counter];
}
setTimeout("AutoChangeFoto(1,"+bro+")",3500);
}
}


function getFotos(n,bro){
if(document.getElementById('foto')){
setTimeout("AutoChangeFoto(1,"+bro+")",3500);
}
}

function ChangeFoto2(n,bro){
if (n==1){if (Counter<(pics.length-1)){Counter++;}}
if (n==2){if (Counter>0){Counter--;}}
document.all["foto"].src="/download/"+pics[Counter];
btns = document.getElementsByName('fotolenta'); 
if (Counter<(pics.length-1)){
document.all["fforward"].innerHTML='<img src=/img/active.jpg width=13 height=15 alt="Следующее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto2(1,'+bro+');>';
}
else{
document.all["fforward"].innerHTML='<img src=/img/dead2.jpg width=13 height=15>';
}
if (Counter>0){
document.all["fback"].innerHTML='<img src=/img/active2.jpg width=13 height=15 alt="Предыдущее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto2(2,'+bro+');>';
}
else{
document.all["fback"].innerHTML='<img src=/img/dead.jpg width=13 height=15>';
}
if(pics_b[Counter]!=""){
document.all["zoom"].innerHTML='<img src=/img/zoom.jpg width=22 height=25 alt="Увеличить изображение" border=0 style="cursor:hand;cursor:pointer;" onclick=ShowFoto('+bro+');>';
}
else{document.all["zoom"].innerHTML='';}
}


function ChangeFoto2_(n,bro){
if (n==1){if (Counter_<(pics_.length-1)){Counter_++;}}
if (n==2){if (Counter_>0){Counter_--;}}
document.all["foto_"].src="/download/"+pics_[Counter_];
btns = document.getElementsByName('fotolenta_'); 
if (Counter_<(pics_.length-1)){
document.all["fforward_"].innerHTML='<img src=/img/active.jpg width=13 height=15 alt="Следующее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto2_(1,'+bro+');>';
}
else{
document.all["fforward_"].innerHTML='<img src=/img/dead2.jpg width=13 height=15>';
}
if (Counter_>0){
document.all["fback_"].innerHTML='<img src=/img/active2.jpg width=13 height=15 alt="Предыдущее фото" style="cursor:hand;cursor:pointer;" onclick=ChangeFoto2_(2,'+bro+');>';
}
else{
document.all["fback_"].innerHTML='<img src=/img/dead.jpg width=13 height=15>';
}
if(pics_b_[Counter_]!=""){
document.all["zoom_"].innerHTML='<img src=/img/zoom.jpg width=22 height=25 alt="Увеличить изображение" border=0 style="cursor:hand;cursor:pointer;" onclick=ShowFoto_('+bro+');>';
}
else{document.all["zoom_"].innerHTML='';}
}

function ShowFoto(bro){
xp=xx_b[Counter]/2;
yp=yy_b[Counter]/2;
if (bro==0){hei=(screen.height/2-yp);wid=(screen.width/2-xp);big_item=window.open("/showfoto/"+pics_b[Counter]+"/","mapp","width="+(xx_b[Counter]-4)+",height="+(yy_b[Counter]-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){hei=(screen.height/2-yp);wid=(screen.width/2-xp);big_item=window.open("/showfoto/"+pics_b[Counter]+"/","mapp","width="+xx_b[Counter]+",height="+yy_b[Counter]+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}

function ShowFoto_(bro){
xp=xx_b[Counter_]/2;
yp=yy_b[Counter_]/2;
if (bro==0){hei=(screen.height/2-yp);wid=(screen.width/2-xp);big_item=window.open("/showfoto/"+pics_b_[Counter_]+"/","mapp","width="+(xx_b_[Counter_]-4)+",height="+(yy_b_[Counter_]-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){hei=(screen.height/2-yp);wid=(screen.width/2-xp);big_item=window.open("/showfoto/"+pics_b_[Counter_]+"/","mapp","width="+xx_b_[Counter_]+",height="+yy_b_[Counter_]+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}


function ShowFotoX(id,widt,heit,bro){
if (window.big_item){big_item.close();}
if (bro==0){hei=((screen.height-heit)/2-30);wid=((screen.width-widt)/2);big_item=window.open("/showfotox/"+id+"/","mapp","width="+(widt-4)+",height="+(heit-4)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
if (bro==1){widt=widt+8;heit=heit+8;hei=((screen.height-heit)/4);wid=((screen.width-widt)/2);big_item=window.open("/showfotox/"+id+"/","mapp","width="+(widt-8)+",height="+(heit-8)+",screenX=0,screenY=0,left="+wid+",top="+hei+",scrollbars=no");big_item.focus();}
}

function checkForm() {
if (document.sendtz.f1.value=='') {
alert('Не указано название предприятия.');
location.href="#name";
return false;
}
document.sendtz.submit();
}

function quit(){
alert(1);
}

function closewindow(){
document.getElementById("newyear").className="shownone";
}


function changeTdHeight(){
if (document.getElementById("thistd").height<222){
if (document.getElementById("thistd").height<201){
document.getElementById("thistd").style.display="block";
var h=parseInt(document.getElementById("thistd").height)+20;
document.getElementById("thistd").height=h;
setTimeout("changeTdHeight()",1);
}
else{
var h=parseInt(document.getElementById("thistd").height)+10;
document.getElementById("thistd").height=h;
document.getElementById("thistd2").style.display="block";
}
}
}

function changeTdHeightBack(){
if (document.getElementById("thistd").height>20){
document.getElementById("thistd").style.display="block";
var h=parseInt(document.getElementById("thistd").height)-20;
document.getElementById("thistd").height=h;
setTimeout("changeTdHeightBack()",1);
}
else{
document.getElementById("thistd").style.display="none";
}
}

function PlantOn(id){
document.getElementById("plant"+id).src="/img/_plant_.png";
overPlant[id]=1;
setTimeout("growPlant("+id+")",1);
//ccc1.style.marginTop="290px";
//ccc1.style.marginLeft="75px";
}

function PlantOver(id){
document.getElementById("plant"+id).src="/img/_plant__.png";
myPlant[id]=1;
setTimeout("myPlant("+id+")",1);
}

function PlantOut(id){
document.getElementById("plant"+id).src="/img/_plant.png";
myPlant[id]=2;
setTimeout("myPlantBack("+id+")",1);
}


function PhoneOver(id){
document.getElementById("plant"+id).src="/img/_phone__.png";
myPlant[id]=1;
setTimeout("myPhone("+id+")",1);
}

function PhoneOut(id){
document.getElementById("plant"+id).src="/img/_phone.png";
myPlant[id]=2;
setTimeout("myPhoneBack("+id+")",1);
}

function myPlant(id){
if (document.getElementById("plant"+id).width<40 && myPlant[id]==1){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width+1;
retheight=Math.round((document.getElementById("plant"+id).width*21)/27);
document.getElementById("plant"+id).height=retheight;
setTimeout("myPlant("+id+")",1);
}
}

function myPhone(id){
if (document.getElementById("plant"+id).width<34 && myPlant[id]==1){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width+1;
retheight=Math.round((document.getElementById("plant"+id).width*30)/26);
document.getElementById("plant"+id).height=retheight;
setTimeout("myPhone("+id+")",1);
}
}



function PhoneOn(id){
document.getElementById("plant"+id).src="/img/_phone_.png";
overPlant[id]=1;
setTimeout("growPhone("+id+")",1);
//ccc1.style.marginTop="290px";
//ccc1.style.marginLeft="75px";
}

function growPlant(id){
if (document.getElementById("plant"+id).width<71 && overPlant[id]==1){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width+4;
retheight=Math.round((document.getElementById("plant"+id).width*21)/27);
document.getElementById("plant"+id).height=retheight;
setTimeout("growPlant("+id+")",1);
}
else{
document.getElementById("city"+id).className="showall";
}
}

function growPhone(id){
if (document.getElementById("plant"+id).width<50 && overPlant[id]==1){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width+4;
retheight=Math.round((document.getElementById("plant"+id).width*30)/26);
document.getElementById("plant"+id).height=retheight;
setTimeout("growPhone("+id+")",1);
}
else{
document.getElementById("city"+id).className="showall";
if (id==3 || id==6 || id==10){document.getElementById("cityy"+id).src="/img/pix.gif";}
}
}


function PlantOff(id){
if (overPlant[id]!=3){
overPlant[id]=2;
setTimeout("reducePlant("+id+")",1);
}
}

function setPlantSeed(id){
if (overPlant[id]!=3){
overPlant[id]=1;
}
}


function PhoneOff(id){
if (overPlant[id]!=3){
overPlant[id]=2;
setTimeout("reducePhone("+id+")",1);
}
}


function setPlantSeedRev(){
for (ii=1;ii<9;ii++){overPlant[ii]=3;}
}

function setPlantSeedRevBack(id){
for (ii=1;ii<9;ii++){overPlant[ii]=1;}
}

function reducePlant(id){
if (document.getElementById("plant"+id).width<65 && overPlant[id]==2){
document.getElementById("city"+id).className="shownone";
}
if (document.getElementById("plant"+id).width>27 && overPlant[id]==2){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width-4;
retheight=Math.round((document.getElementById("plant"+id).width*21)/27);
document.getElementById("plant"+id).height=retheight;
setTimeout("reducePlant("+id+")",1);
}
else{
if (document.getElementById("plant"+id).width==27){
document.getElementById("plant"+id).src="/img/_plant.png";
}
}
}


function myPlantBack(id){
if (document.getElementById("plant"+id).width>27 && myPlant[id]==2){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width-1;
retheight=Math.round((document.getElementById("plant"+id).width*21)/27);
document.getElementById("plant"+id).height=retheight;
setTimeout("myPlantBack("+id+")",1);
}
}

function myPhoneBack(id){
if (document.getElementById("plant"+id).width>26 && myPlant[id]==2){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width-1;
retheight=Math.round((document.getElementById("plant"+id).width*30)/26);
document.getElementById("plant"+id).height=retheight;
setTimeout("myPhoneBack("+id+")",1);
}
}


function reducePhone(id){
if (document.getElementById("plant"+id).width<55 && overPlant[id]==2){
document.getElementById("city"+id).className="shownone";
if (id==3){document.getElementById("cityy"+id).src="/img/_7.png";}
if (id==6){document.getElementById("cityy"+id).src="/img/_2.png";}
if (id==10){document.getElementById("cityy"+id).src="/img/_10.png";}
}
if (document.getElementById("plant"+id).width>26 && overPlant[id]==2){
document.getElementById("plant"+id).width=document.getElementById("plant"+id).width-4;
retheight=Math.round((document.getElementById("plant"+id).width*30)/26);
document.getElementById("plant"+id).height=retheight;
setTimeout("reducePhone("+id+")",1);
}
else{
if (document.getElementById("plant"+id).width==26){
document.getElementById("plant"+id).src="/img/_phone.png";
}
}
}

function waitManager(){
if (document.getElementById("menprod").value=='all' && document.getElementById("mencity").value=='all'){
document.location="/about/people/";
}
else{
document.getElementById("menscroll").style.left='10%';
document.getElementById("menshow").innerHTML="<div style='padding-top:10px;'><table cellspacing=0 cellpadding=0 border=0><td valign=top><img src=/img/loader.gif></td><td valign=center class=mtx style='padding-left:10px;'>подготовка<br>результатов<br>поиска</td></table></div>";
document.getElementById("menscroll2").style.height="100";
setTimeout("findManager()",500);
}
}


function findManager(){
var req = getXmlHttp();

req.onreadystatechange = function() {  
if (req.readyState == 4) { 
if(req.status == 200) {
document.getElementById("menscroll").style.height='1px';document.getElementById("menscroll").style.paddingTop="30px";
document.getElementById("menshow").innerHTML=req.responseText;
if (document.getElementById("menprod").value=='all'){document.getElementById("menscroll").style.left='2%';}
setTimeout("openLayer()",1);
}
}
}
req.open('GET', '/getManager.php?mencity='+encodeURI(document.getElementById("mencity").value)+'&menprod='+encodeURI(document.getElementById("menprod").value), true);  
req.send(null);  // отослать запрос
}

function changePrices(){
var req = getXmlHttp();

req.onreadystatechange = function() {  
if (req.readyState == 4) { 
if(req.status == 200) {
var response=req.responseText;
var massiv = response.split("#");
document.getElementById("pricelink").href=massiv[0];
document.getElementById("menprice").innerHTML=massiv[1];
}
}
}
req.open('GET', '/changePrices.php?mencity='+encodeURI(document.getElementById("mencityprice").value), true);  
req.send(null);  // отослать запрос
}


function swapProd(){
var oldprod=document.getElementById("menprod").value;
var req = getXmlHttp();
req.onreadystatechange = function() {  
if (req.readyState == 4) { 
if(req.status == 200) { 

var oHouseList = document.forms["managerform"].elements["menprod"];
var oHouseListOptionsCnt = oHouseList.options.length;
oHouseList.length = 0;
var response=req.responseText;
var massiv = response.split("#");
var cityNames = massiv[0].split(",");
var cityValues = massiv[1].split(",");
for (i = 0; i < cityValues.length; i++){
if (document.createElement){
var newHouseListOption = document.createElement("OPTION");
newHouseListOption.text = cityNames[i];
newHouseListOption.value = cityValues[i];
if (oldprod==cityValues[i]){newHouseListOption.selected=true;}
if (i==0){newHouseListOption.style.color="green";}
(oHouseList.options.add) ? oHouseList.options.add(newHouseListOption) : oHouseList.add(newHouseListOption, null);
}
}

}
}
}
req.open('GET', '/swapProd.php?str3='+encodeURI(document.getElementById("mencity").value), true);  
req.send(null);  // отослать запрос
}


function getXmlHttp(){
  var xmlhttp;
  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
  } catch (e) {
    try {
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    } catch (E) {
      xmlhttp = false;
    }
  }
  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }
  return xmlhttp;
}

function openLayer(){
var h=parseInt(document.getElementById("menscroll").style.height);
var h2=parseInt(document.getElementById("menshow").offsetHeight);
var h3=parseInt(document.getElementById("menscroll").style.paddingTop);
if (h3>0){h3=h3-1;document.getElementById("menscroll").style.paddingTop=h3;}
if (h<h2 || h3>0){
h=h+20;
if (h>h2){h=h2;}
document.getElementById("menscroll").style.height=h;
document.getElementById("menscroll2").style.height=h;
setTimeout("openLayer()",1);
}
}


function changeLink(){
document.getElementById("subLink").className="qavn_";
}

function changeLinkBack(){
document.getElementById("subLink").className="qavn";
}

function subscribeShow(){
var w=parseInt((document.body.clientWidth-667)/2);
document.getElementById("subscribeForm").className="showall";
var h=parseInt(document.body.scrollTop+(document.body.clientHeight-document.getElementById("subscribeForm").offsetHeight)/2);
document.getElementById("subscribeForm").style.top=h+"px";
document.getElementById("subscribeForm").style.left=w+"px";
}

function subscribeClose(){
document.getElementById("subscribeForm").className="shownone";
document.getElementById("mysubscribe").innerHTML='<table width=70% cellspacing=0 cellpadding=0 border=0><tr><td valign=top  class=tzag style="padding-left:5;">Подписка на новости и спецпредложения</td></tr><tr><td  height=30></td></tr><tr><td valign=top  class=mtx style="padding-left:5;">Представьтесь, пожалуйста <span class=redd><b>*</b></span></td></tr><tr><td valign=top style="padding-top:3;"><input type=text class=tinput name=yourname id=yourname></td></tr><tr><td  height=20></td></tr><tr><td valign=top  class=mtx style="padding-left:5;">Укажите адрес Вашей электронной почты <span class=redd><b>*</b></span></td></tr><tr><td valign=top style="padding-top:3;"><input type=text class=tinput name=yourmail id=yourmail></td></tr><tr><td  height=20></td></tr><tr><td valign=top  class=mtx style="padding-left:5;">Ваш город</td></tr><tr><td valign=top style="padding-top:3;"><input type=text class=tinput name=yourcity id=yourcity></td></tr><tr><td  height=20></td></tr><tr><td valign=top  class=mtx style="padding-left:5;">Укажите, пожалуйста, контактный телефон</td></tr><tr><td valign=top style="padding-top:3;"><input type=text class=tinput name=yourphone id=yourphone></td></tr><tr><td  height=20></td></tr><tr><td align=center id=subNews><img src=/img/subscribe.gif width=184 height=34 alt="Подписаться" style="cursor:hand;cursor:pointer;" onclick=subscribeNews();></td></tr><tr id=messNews class=shownone><td align=center class=redd style="padding-top:10px;">Не заполнены все необходимые поля</td></tr></table>';

}

function subscribeNews(){
document.getElementById("messNews").className="shownone";
document.getElementById("subNews").innerHTML='<table cellspacing=0 cellpadding=0 border=0><td valign=center><img src=/img/ajax.gif width=34 height=34></td><td valign=center class=tzag style="padding-left:10px;">отправка данных</td></table>';
setTimeout("subscribeRealNews()",500);
}

function subscribeRealNews(){
if (document.getElementById("yourmail").value=='' || document.getElementById("yourname").value==''){
document.getElementById("subNews").innerHTML='<img src=/img/subscribe.gif width=184 height=34 alt="Подписаться" style="cursor:hand;cursor:pointer;" onclick=subscribeNews();>';
document.getElementById("messNews").className="showall";
}
else{
var req = getXmlHttp();
req.onreadystatechange = function() {  
if (req.readyState == 4) { 
if(req.status == 200) {
document.getElementById("mysubscribe").innerHTML=req.responseText;
var h=parseInt(document.body.scrollTop+(document.body.clientHeight-document.getElementById("subscribeForm").offsetHeight)/2);
document.getElementById("subscribeForm").style.top=h+"px";
}
}
}
req.open('GET', '/subscribe.php?mailer='+encodeURI(document.getElementById("yourmail").value)+'&person='+encodeURI(document.getElementById("yourname").value)+'&city='+encodeURI(document.getElementById("yourcity").value)+'&phone='+encodeURI(document.getElementById("yourphone").value), true);  
req.send(null);
}
}
