<!--
function doNew(action)
{
	document.URL = "index.php?action="+ action +"&LOGINID="+ list.LOGINID.value +"&subaction=preAdd";
}
function doDelete(form)
{
	if (confirm("ÕæµÄÒªÉ¾³ýÂð£¿"))
	{
		var idListValue;
		idListValue = "";
		for(var i=0;i<form.elements.length;i++)
		{
			var e = form.elements[i];
			if ((e.type == "checkbox") && (e.name != "checkAll"))
			{
				if (e.checked == true)
					idListValue = idListValue + e.value + ",";
			}
		}
		if (idListValue != "")
		{
			form.subaction.value = "del";
			form.idList.value = idListValue;
			form.submit();
		}
	}
}

function doEditPhoto(id)
{
	returnValue = window.showModalDialog("webGen/fileUpload.asp?currentType=expert&id="+id,window,"dialogWidth:375pt;dialogHeight:275pt;help:No;scrolling:No;resizable:No;status:No");
	if(returnValue==1)
		location.reload();
}

function doEditImg(id)
{
	returnValue = window.showModalDialog("webGen/fileUpload.asp?currentType=links&id="+id,window,"dialogWidth:375pt;dialogHeight:275pt;help:No;scrolling:No;resizable:No;status:No");
	if(returnValue==1)
		location.reload();
}

function doModify(form)
{
	var idListValue;
	idListValue = "";
	for(var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if ((e.type == "checkbox") && (e.name != "checkAll"))
		{
			if (e.checked == true)
				idListValue = idListValue + e.value + ",";
		}
	}
	if (idListValue != "")
	{
		form.subaction.value = "modify";
		form.idList.value = idListValue;
		form.submit();
	}

}
function doSearch(action)
{
	document.URL = "index.php?action="+ action +"&LOGINID="+ list.LOGINID.value +"&subaction=search";
}

function m_in(name,imgName)
{
	with (document.all[name].style)
	{
		borderLeft   = "1px solid buttonhighlight";
		borderRight  = "1px solid buttonshadow";
		borderTop    = "1px solid buttonhighlight";
		borderBottom = "1px solid buttonshadow";
		padding      = "1px";
	}
	document.all[imgName].style.filter="";
}

function m_out(name,imgName)
{
	with (document.all[name].style)
	{
		borderLeft   = "0px solid buttonshadow";
		borderRight  = "0px solid buttonhighlight";
		borderTop    = "0px solid buttonshadow";
		borderBottom = "0px solid buttonhighlight";
		padding      = "0px";
	}
	document.all[imgName].style.filter="gray()";
}

function m_down(name,imgName)
{
	with (document.all[name].style)
	{
		borderLeft   = "1px solid buttonshadow";
		borderRight  = "1px solid buttonhighlight";
		borderTop    = "1px solid buttonshadow";
		borderBottom = "1px solid buttonhighlight";
		paddingTop    = "2px";
		paddingLeft   = "2px";
	}
}

function openW(theUrl,height,width)
{
	window.open(theUrl,null,"height="+height+",width="+width+",status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,location=no");	
}

function OnCheckAll(form)
{
	for(var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if (e.name != 'checkAll')
			e.checked = form.checkAll.checked; 
	}
}
//-->