var mmsid = GUArgs("mmsid");
var u = GUArgs("u");
var uu = GUArgs("uu");
var URLExt = "u=" + u + "&uu=" + uu;

function GUArgs(strArg) {
  var _url = location.href + "&";
  var regex = new RegExp("(\\?|\\&)" + strArg + "=([^\\&\\?]*)\\&", "gi");
  if (! regex.test(_url)) return "";
  var arr = regex.exec(_url);
  return RegExp.$2;
}

function CLsmall(Soid) {
  var t = "";
  t = "/utils/SendServlet?id=" + Soid + "&" + URLExt;
  t = window.open(t,"SendIVRSmall","width=500,height=365,scrollbars=no,resizable=yes");
  t.focus();
}

function CLframe(Soid) {
  var t = "";
  t = "/frame/auth.php?id=" + Soid + "&" + URLExt;
  t = window.open(t,"SendIVRFrame","scrollbars=yes,resizayble=yes,top=10,left=10,toolbar=yes,menubar=yes,location=yes");
  t.focus();
}

function CLframe1(Soid) {
  var t = "";
  t = document.getElementsByName("I1")[0];
  t.src = "/frame/sndUrl.php?id=" + Soid + "&" + URLExt;
}

function SearchKey(Soid) {
  window.open("/utils/SearchServlet?radiobutton=sing&textfield=" + Soid + "&" + u)
}

function union(Soid) {
  window.open("http://union.cmusic.com.cn/?u=" + u)
}
