//============================================= 显示隐藏层 =============================================
function showDiv(showDivId,hideDivId){
var showedDiv=$(showDivId), hidedDiv=$(hideDivId);
showedDiv.style.display="";
hidedDiv.style.display="none";
}
function showDiv2(DivId){
var div=$(DivId);
if(div.style.display==""||div.style.display=="block")
div.style.display="none";
else
div.style.display="";
}
function showTipMassage(divId){
var div=$(divId), content=$("content");
div.style.visibility="visible"; //alert(document.body.scrollWidth+" "+document.body.clientWidth+" "+document.body.offsetWidth);
//div.style.top+=parseInt(content.scrollTop);
var hideTipMassage_temp=function(divId){
return function(){
hideTipMassage(divId);
}
}
setTimeout(hideTipMassage_temp(divId),1000);
}
function hideTipMassage(divId){
$(divId).style.visibility="hidden";
}
//============================================= 给文本赋值。
function evaluateToText(eObj,objId){
var obj=$(objId);
obj.value=eObj.src;
}
//判断复选框选是否被选中,选中返回选中后的ID值
function getEmenVale(objid){
var form=$(objid),eles = form.elements;
var reId="";
var k=0;
if (eles.length > 0){
var checkedboxNum=0; //选中的复选筐
for (var i=0; i<eles.length; i++){
var node = eles[i];
if (node.type == "checkbox" && node.disabled == false){
if(node.checked){
if (k == 0) {
reId = "'" + node.value+ "'";
k=k+1;
}else {
reId = reId + ",'" + node.value + "'";
k=k+1;
}
}
}
}
}
return reId;
}
//判断复选框选是否被选中,选中返回选中后的ID值(不包含“‘”号)
function getEmenValeTwo(objid){
var form=$(objid),eles = form.elements;
var reId="";
if (eles.length > 0){
var checkedboxNum=0; //选中的复选筐
for (var i=0; i<eles.length; i++){
var node = eles[i];
if (node.type == "checkbox" && node.disabled == false){
if(node.checked){
reId = reId + "," + node.value;
}
}
}
}
return reId;
}
function showDiv(showDivId,hideDivId){
var showedDiv=$(showDivId), hidedDiv=$(hideDivId);
showedDiv.style.display="";
hidedDiv.style.display="none";
}
function showDiv2(DivId){
var div=$(DivId);
if(div.style.display==""||div.style.display=="block")
div.style.display="none";
else
div.style.display="";
}
function showTipMassage(divId){
var div=$(divId), content=$("content");
div.style.visibility="visible"; //alert(document.body.scrollWidth+" "+document.body.clientWidth+" "+document.body.offsetWidth);
//div.style.top+=parseInt(content.scrollTop);
var hideTipMassage_temp=function(divId){
return function(){
hideTipMassage(divId);
}
}
setTimeout(hideTipMassage_temp(divId),1000);
}
function hideTipMassage(divId){
$(divId).style.visibility="hidden";
}
//============================================= 给文本赋值。
function evaluateToText(eObj,objId){
var obj=$(objId);
obj.value=eObj.src;
}
//判断复选框选是否被选中,选中返回选中后的ID值
function getEmenVale(objid){
var form=$(objid),eles = form.elements;
var reId="";
var k=0;
if (eles.length > 0){
var checkedboxNum=0; //选中的复选筐
for (var i=0; i<eles.length; i++){
var node = eles[i];
if (node.type == "checkbox" && node.disabled == false){
if(node.checked){
if (k == 0) {
reId = "'" + node.value+ "'";
k=k+1;
}else {
reId = reId + ",'" + node.value + "'";
k=k+1;
}
}
}
}
}
return reId;
}
//判断复选框选是否被选中,选中返回选中后的ID值(不包含“‘”号)
function getEmenValeTwo(objid){
var form=$(objid),eles = form.elements;
var reId="";
if (eles.length > 0){
var checkedboxNum=0; //选中的复选筐
for (var i=0; i<eles.length; i++){
var node = eles[i];
if (node.type == "checkbox" && node.disabled == false){
if(node.checked){
reId = reId + "," + node.value;
}
}
}
}
return reId;
}