var strTemp;
strTemp = window.document.all.item("ipUpload").value;//取值
strTemp=strTemp.replace(/^(/s)*|(/s)*$/g,"");//去掉字符串两边的空格
if (strTemp.length > 0)
{ if(checkImgType(window.document.all.item("ipUpload").value,"图片格式不正确") == false)
{ return false; } }