//-------------------------------------------------------------
// Select all the checkboxes (Hotmail style)
//-------------------------------------------------------------

function SelectAllCheckboxes(spanChk)
{
	var xState=spanChk.checked;

	elm = spanChk.form.elements;
	for(i = 0; i < elm.length; i++)
	{
		if(elm[i].type == "checkbox" && elm[i].id != spanChk.id)
		{
			if(elm[i].checked!=xState)
				elm[i].click();
		}
	}
}

//-------------------------------------------------------------
// 获取鼠标在数据行和离开数据行的样式
//-------------------------------------------------------------
function ListMouseMove( row, style)
{
	if(row.childNodes[0].childNodes[0].type=="checkbox")
	{
		chkB = row.childNodes[0].childNodes[0];
		if(chkB.checked)
		{
			row.className='tr0';
		}
		else
		{
			row.className=style;
		}
	}
	else
	{
		row.className=style;
	}
}

//-------------------------------------------------------------
// 弹出窗口，获取上传的图片或者上传新的图片
//-------------------------------------------------------------
function GetImg( url )
{
	window.document.Form1.txtTitleImg.value = window.showModalDialog(url,"","dialogwidth:600px;dialogheight:480px;center:yes;status:no;scroll:yes;help:no");
	//window.document.Form1.txtTitleImg.value = window.open(url,"","width=560px,height=360px,align=center,scrollbars=yes");
}

//-------------------------------------------------------------
// 弹出详细信息窗口控制
//-------------------------------------------------------------    
function PrintShowWin(url)
{
    window.open(url,"","width=680px,height=480px,align=center,scrollbars=yes");
}
