function website_remove(website_id,website_domain) {
	  
	  
	if(confirm('Уверены, что хотите удалить домен '+website_domain+'?')){
	  
	  
	  var xmlhttp = getXmlHttp()
			xmlhttp.open('GET', '/xml_my_website_delete?website_id='+website_id, true);
			xmlhttp.onreadystatechange = function() {
			  if (xmlhttp.readyState == 4) {
			     if(xmlhttp.status == 200) {

					show_message(xmlhttp.responseText);
  					
		         }
			  }
			};
			xmlhttp.send(null);
			setTimeout("location=parent.location;",3000);
		
	
  			
			
	}

}

function website_add() {
	 
	
		var website_domain = prompt ("Введите доменное имя","doblox.ru") ;
	if (website_domain) {
	  var xmlhttp = getXmlHttp()
			
			var website_domain = encodeURI(website_domain);
			xmlhttp.open('GET', '/xml_my_website_add?website_domain='+website_domain, true);
			xmlhttp.onreadystatechange = function() {
			  if (xmlhttp.readyState == 4) {
			     if(xmlhttp.status == 200) {

					show_message(xmlhttp.responseText);
  					
		         }
			  }
			};
			xmlhttp.send(null);
			setTimeout("location=parent.location;",3000);
		}
}



