﻿var mURL,mvURL,IID,XmlHTTP;

mURL = "/mdls/MusicS/MCount.aspx";
mvURL = "/mdls/MusicSMTV/MVCount.aspx";

function Mcount(IID){
	if (window.ActiveXObject) {		//InternetExplorer
	XmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XmlHTTP.open("POST",mURL+"?iid="+IID, true);
	XmlHTTP.send();
	
	}
	else if(window.XMLHttpRequest){	//Firefox
	XmlHTTP = new XMLHttpRequest();
	XmlHTTP.open("GET",mURL+"?iid="+IID, true);
	XmlHTTP.send(null);	
	}
	else{
	return;
	}
}

function MVcount(IID){
	if (window.ActiveXObject) {		//InternetExplorer
	XmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
	XmlHTTP.open("POST",mvURL+"?iid="+IID, true);
	XmlHTTP.send();
	
	}
	else if(window.XMLHttpRequest){	//Firefox
	XmlHTTP = new XMLHttpRequest();
	XmlHTTP.open("GET",mvURL+"?iid="+IID, true);
	XmlHTTP.send(null);	
	}
	else{
	return;
	}
}
