
function playSong(title,file,flg)
{
	var mySource;
	var rube;
	
	if (flg == '1')
	{
		mySource = "./recordings/" + file + ".wma";
		rube = "Now Playing: ";
	}
	else
	{
		mySource = "./recordings/" + file + ".mp3";
		rube = "Now Playing extract from:";
	}
	var error_features = "status=no,directories=no,toolbar=no,location=no,resizable=no,scrollbars=no,width=300,height=115";
 	confirm_win = window.open("", "Extract", error_features);
    	confirm_win.document.open("text/html","replace");
    confirm_win.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 3.2 Final//EN'><HTML><HEAD><TITLE>Mehboob Chohan - ");
confirm_win.document.write(title);
confirm_win.document.write("</TITLE>");
confirm_win.document.write("<STYLE TYPE='text/css'>");
confirm_win.document.write(".text { color: #993333; font-size: 11px; font-weight: bold; font-family: frutiger, verdana, arial;  }");
confirm_win.document.write(".text2 { color: #FF6600; font-size: 10px; font-weight: bold; font-family: frutiger, verdana, arial;  }");
confirm_win.document.write("input.button{color:#FFFFFF;background-color:#FF6600;font-size:70%; font-weight: bold; font-family: frutiger, verdana, arial;}</STYLE>"); 
confirm_win.document.write("</HEAD><BODY BGCOLOR='#FFFFFF' leftmargin=0 topmargin=0><TABLE BORDER=0 WIDTH=300><TR><TD WIDTH=15>&nbsp;</TD><TD class='text' valign=center><BR>");
confirm_win.document.write(rube);
confirm_win.document.write("&nbsp;&nbsp;<span class='text2'>");
confirm_win.document.write(title);
confirm_win.document.write("</span></TD></TR><TR><TD>&#160;</TD><TD align='center'>");
    confirm_win.document.write("<EMBED SRC='" + mySource + "' VOLUME='50' HEIGHT='30' WIDTH='144'>");
    confirm_win.document.write("</TD></TR><TR><TD>&#160;</TD><TD align='right'><input type='button' value='Close' class='button' onClick='JavaScript:window.close();'>&nbsp;&nbsp;</TD></TR></TABLE>");
    confirm_win.document.write("&nbsp;");
    confirm_win.document.write("</BODY></HTML>");
    confirm_win.focus();
}
//function hide & display layers
function tB(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

function Pop(mySource, myName, mySelfName)
{
        var tc_features = "status=no,directories=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,width=700,height=420";

        var time = new Date();
        ord=(time.getTime());

        var newWindow = window.open(mySource, myName + ord, tc_features);
        self.name = mySelfName;
}

function Pop2(mySource, myName, mySelfName)
{
        var tc_features = "status=yes,directories=yes,toolbar=yes,location=yes,resizable=yes,scrollbars=yes,width=850,height=550";

        var time = new Date();
        ord=(time.getTime());

        var newWindow = window.open(mySource, myName + ord, tc_features);
        self.name = mySelfName;
}
function Pop3(mySource, myName, mySelfName)
{
        var tc_features = "status=no,directories=no,toolbar=no,location=no,resizable=yes,scrollbars=yes,width=780,height=420";

        var time = new Date();
        ord=(time.getTime());

        var newWindow = window.open(mySource, myName + ord, tc_features);
        self.name = mySelfName;
}
function sendit()
{
	var d = document.contact;
	var em = d.email.value;
	var sb = d.submission.value;
	var msg;
	msg="";
	if (em == "") msg += "\nYou have failed to fill in your email address.";
	if (sb == "") msg += "\nYou have failed to add a message.";
	if (msg != "")
	{
		
		alert("Sorry - there is a problem with your message\n" + msg + "\n\nPlease amend & try again.\n\nThank You.");
	}
	else
	{
		document.forms[0].submit();
	}
}
function Albumpop(targ)
{
	var url = "http://www.zenkim.co.uk/cgi-bin/frameAPIMB.cgi?target=" + targ;
	var popup = window.open ("","Album","height=635,width=700,scrollbars=yes,resizable=no,status=no,location=no,menubar=no,toolbar=no");
    popup.location.href = url;
    if (popup.opener == null) popup.opener = window;
    popup.opener.name = "opener";
    popup.focus();	
}

