﻿function $(ID){return document.getElementById(ID);}
function selectAll(checked)
{
    var gv = $("GridView1");
    var c = gv.rows[0].cells[0].firstChild.checked;
    for (i=1; i<gv.rows.length-1; i++)
        gv.rows[i].cells[0].firstChild.checked = checked;
}

function setHeight(id){
    var iframe = $(id);
    try{
        var bHeight = iframe.contentWindow.document.body.scrollHeight;
        var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
        var height = Math.max(bHeight, dHeight);
        iframe.height =  height;
    }catch (ex){}
}


/// 层同高 ///
function sameHeight(ID1,ID2){
	if ($(ID2).clientHeight>$(ID1).clientHeight){
		$(ID1).style.height=$(ID2).clientHeight+"px";
	}else{
		$(ID2).style.height=$(ID1).clientHeight+"px";
	}
}
try{
window.defaultStatus="热烈祝贺汤臣倍健签约姚明 汤臣倍健插上品牌腾飞翅膀";
}catch(e){
window.status="热烈祝贺汤臣倍健签约姚明 汤臣倍健插上品牌腾飞翅膀";
}