///////// 只能输入数字和小数点
function fucCheckNUM(NUM)
{
	var i,j,strTemp;
	strTemp="0123456789.";
	if ( NUM.length== 0)
		return 0
	for (i=0;i<NUM.length;i++)
	{
		j=strTemp.indexOf(NUM.charAt(i));	
		if (j==-1)
		{
			return 0;
		}
	}
	return 1;
}

function checknum(theform) 
{
 	if ((fucCheckNUM(theform.value)==0) )
	{	
	   theform.value="";
		return false;
	}
}
///////////////////////////////////////

function CheckEmpty(Field, FieldTitle)
{
	if (Field.value == "")
	{
		alert("请在\"" + FieldTitle + "\"一栏中输入内容.");
		Field.focus();
		return false;
	}
		
	return true;
}

function checkform2(field,flagname,fieldtitle){

 if (field.value =="")
{
document.all(flagname).innerHTML='<font color=#ff0000><img src=images/wrong.gif>'+fieldtitle+':必须填写</font>';
return false;
}
else
{
document.all(flagname).innerHTML='<img src=images/right_flag.gif>';
}		  		    
              
}
 