var place = location.hostname+location.pathname;
function openMsgwin(MemberID,strArtist)
{
	var popWin, strHref;
	strHref = "../msgPage.aspx?MemberID="+MemberID+"&dir="+place+"&Artist="+strArtist;
	popWin = open(strHref, "MsgWin","resizable=1,location=0,menubar=0,status=1,toolbar=0,width=500,height=400",true);
	popWin.focus();
}
function openWrite(ComID,GalID)//galID is memberid
{	
	
	var popWin, strHref;
	
	strHref = "../ReplyPageX.aspx?commentID="+ComID+"&FileID="+GalID+"&dir="+place+"&bSend="+PortID;
	commentWin = open(strHref, "commentWin","resizable=1,location=0,menubar=0,status=1,toolbar=0,width=640,height=400",true);
	commentWin.focus();
}

function setSource(theOver,theUp)
{
	document.images["ndex"].src = Indxo.src =  theOver.src;
	Indxu.src = theUp.src;
}
function doRolls(theImage,theSrc)
{
	document.images[theImage].src = eval(theSrc+".src");
}
function openImg(strFile)
{
	commentWin = open(strFile, "PicWin","scrollbars=1 resizable=1,location=0,menubar=0,status=1,toolbar=0,width=600,height=600",true);
	commentWin.focus();
}
strPicName = "look";

function showPageBlock(CommentID,myButton,strText)
{
	var myCommentsStyle = (isIE)? document.all[CommentID].style : (document.getElementById(CommentID)).style;
	flipBlock(myCommentsStyle,myButton,strText);

}
function flipBlock(myCommentsStyle,myButton, strText)
{
	if(myCommentsStyle.display != "none")
		{	
			myCommentsStyle.display = "none"
			myButton.value = "Show "+strText;
		}
		else
		{
			myCommentsStyle.display = "inline"
			myButton.value = "Hide "+strText;
		}
}