function goUrl(pageUrl) {
		document.location = pageUrl;
	}
function showPreview(turl, mms, image, audio) {
	if (mms == 'true')
	{
		var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=480,width=440,status=no");
	}
	else if(image == 'true')
	{
		var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=700,width=550,status=no");
	}
	else
	{
		var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=350,width=550,status=no");
	}
	newWin.opener = this.window;
}

function showPreviewMelody(turl) {
	var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=560,width=530");
	newWin.opener = this.window;
}

function openBuy(repID, url, catId) {
	var turl = url;
	turl = turl + "?rep_id=" + repID;
	turl = turl + "&st=1";
	if (catId != "") {
		turl = turl + "&cat_id=catId";
	}
	newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=505,width=453,status=no,resizable=yes");
	newWin.focus();
	newWin.opener = this.window;	
}

function openArtistBuy(repID, url, artistId) {
	var turl = url;
	turl = turl + "?rep_id=" + repID + "&artistid=" + artistId;
	turl = turl + "&st=1";
	newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=505,width=453,status=no,resizable=yes");
	newWin.focus();	
	newWin.opener = this.window;
}

function showDisclaimer(turl, topID, catID, disclaimerID) {
	var turl = turl + "?top_id=" + topID + "&d_id=" + disclaimerID;
	if (catID > 0) {
		turl = turl + "&cat_id=" + catID;
	}
	var newWin = window.open(turl, "subWin", "toolbar=no, scrollbars=yes, height=455,width=418");
	newWin.opener = this.window;
}

function showPreviewJ(turl){
        var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=600,width=530,status=no");
        newWin.opener = this.window;
}

function swapArrow(i, d){
	if(i.getElementsByTagName("img")[0]) i.getElementsByTagName("img")[0].src = d;
}

function showTAF(turl){
 var newWin = window.open(turl, "subWin", "toolbar=no,scrollbars=yes,height=210,width=500,status=no,resizable=no");
    newWin.opener = this.window;
}

