function count(email, type){
	var xhrObject = false;

  /*@cc_on
  @if (@_jscript_version >= 5)
     try
     {
        xhrObject = new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
     {
        try
        {
           xhrObject = new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (E)
        {
           xhrObject = false;
        }
     }
  @else
     xhrObject = false;
  @end @*/


  if (!xhrObject && typeof XMLHttpRequest != 'undefined')
  {
     try
     {
        xhrObject = new XMLHttpRequest();
     }
     catch (e)
     {
        xhrObject = false;
     }
  }




	if(window.XMLHttpRequest){
		xhrObject = new XMLHttpRequest();
	}
	else if(window.ActiveXObject){
		xhrObject = new ActiveXObject("Microsoft.XMLHTTP");
	}
	if(email.value!="" && type.value!="" ){
		if(xhrObject){
			//call
			xhrObject.open('GET', 'phplib/counter.php?email='+email+"&type="+type, true);
			//return
			xhrObject.onreadystatechange = function(){
				 if (xhrObject.readyState == 4)
		        {
		           if (xhrObject.status == 200){
				   		return;
				   }
				   else{
				   		return;
				   }
		        }
			}
			//send vars
			xhrObject.send(null);
		}
	}
}