
function show()
{
debugger;
document.getElementById('img').click();
}

/**********************打开一个弹出式的窗口******************/
    function newwin(url) 
     { 
    var popup; 
    url=url; 
    popup=window.open(url,null,"top=5,left=5,width=600,resizable=yes,height=400,menubar=no,toolbar=no,scrollbars=yes,status=yes"); 
    popup.focus(); 
     } 

/**********************CheckBox全选*************************/
function CA(){
var frm=document.Form1;
for (var i=0;i<frm.elements.length;i++)
{
var e=frm.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
e.checked=frm.allbox.checked;
if (frm.allbox.checked)
{
hL(e);
}//endif
else
{
dL(e);
}//endelse

}//endif
}//endfor
}
//CheckBox选择项
function CCA(CB)
{
var frm=document.Form1;
if (CB.checked)
hL(CB);
else
dL(CB);

var TB=TO=0;
for (var i=0;i<frm.elements.length;i++)
{
var e=frm.elements[i];
if ((e.name != 'allbox') && (e.type=='checkbox'))
{
TB++;
if (e.checked)
TO++;
}
}
frm.allbox.checked=(TO==TB)?true:false;
}


function hL(E){
while (E.tagName!="TR")
{E=E.parentElement;}
E.className="H";
}

function dL(E){
while (E.tagName!="TR")
{E=E.parentElement;}
E.className="";
}


//*******************************弹出一个新窗口*****************************
 function NewsPopWin(url) 
     { 
    var popup; 
    url=url; 
    popup=window.open(url,null,"top=5,left=5,width=600,resizable=yes,height=400,menubar=no,toolbar=no,scrollbars=yes,status=yes"); 
    popup.focus(); 
     } 
/*****************************************************************************/

function CheckForm()
{
	if(document.all.txtCustomName.value=="")
	{
		alert("客户姓名不能为空！");
		return false;
	}
	else if(document.forms.txtHostID.value=="")
	{
		alert("网站ID不能为空！");
		return false;
	}
	else if(document.all.txtCorpName.value=="")
	{
		alert("公司名称不能为空！");
		return false;
	}
	else if(document.all.txtContactTel.value=="")
	{
		alert("联系电话不能为空！");
		return false;
	}
	else if(document.all.txtEmail.value=="")
	{
		alert("E-MAIL地址不能为空！");
		return false;
	}
	else if(document.all.txtContactZip.value=="")
	{
		alert("邮政编码不能为空！");
		return false;
	}
	else if(document.all.txtNeedContent.value=="")
	{
		alert("您的扩容需求不能为空！");
		return false;
	}
	return true;
}
/*****************************************************************************/

/*****************************************************************************/

/*****************************************************************************/
