aa = new Array("f" ,"امید" ,"گوگوش", "ابی" ,"عارف" ,"داریوش" ,"حبیب" ,"هایده" ,"سیاوش قمیشی" ,"معین" ,"مهستی");
var xmlHttp;
var u = 2 ;

function daryosh(r) {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
xmlHttp.onreadystatechange = h;
xmlHttp.open("GET", "index.aspx?persiansinger=" +r , true);
xmlHttp.send(null);
;
}
function h() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
document.getElementById("qs").innerHTML = "" ;
document.getElementById("dd").innerHTML = xmlHttp.responseText ;
}
}
}

function dar(t,s) {
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
xmlHttp.onreadystatechange = hh;
xmlHttp.open("GET", "index.aspx?t="+t+"&s="+s , true);
xmlHttp.send(null);
;
}
function hh() {
if(xmlHttp.readyState == 4) {
if(xmlHttp.status == 200) {
document.getElementById("qs").innerHTML = "" ;
document.getElementById("dd").innerHTML = xmlHttp.responseText ;
}
}
}


function musicalbum(r)
{
document.getElementById("qs").innerHTML = "...صبر کنید" ;
document.getElementById("q0").innerHTML = aa[r] ;
tt.setAttribute("background","pic/iran-music2.jpg")
if (r != 10){
t1.setAttribute("bgcolor","")
}
if (r != 9){
t2.setAttribute("bgcolor","");
}
if (r != 8){
t3.setAttribute("bgcolor","");
}
if (r != 7){
t4.setAttribute("bgcolor","");
}
if (r != 6){
t5.setAttribute("bgcolor","");
}
if (r != 5){
t6.setAttribute("bgcolor","");
}
if (r != 4){
t7.setAttribute("bgcolor","");
}
if (r != 3){
t8.setAttribute("bgcolor","");
}
if (r != 2){
t9.setAttribute("bgcolor","");
}
if (r != 1){
t10.setAttribute("bgcolor","");
}
document.getElementById("t"+(11-r)).setAttribute("bgcolor", "#FFCC00");

daryosh(r) ;

}

function ser()
{
var uu ;
if (document.getElementById("ts").value=="آهنگ")
{
uu="m" ;
}
else if (document.getElementById("ts").value=="خواننده")
{
uu="s" ;
}
document.getElementById("qs").innerHTML = "...صبر کنید" ;
dar(uu,document.getElementById("ss").value);
}
