function changeto(obj,highlightcolor){
highlightcolor=="on"?obj.style.backgroundColor ="#fff7e3":obj.style.backgroundColor =""
}
isDOM=document.getElementById?true:false
  isOpera=isOpera5=window.opera && isDOM
  isOpera6=isOpera && window.print
  isOpera7=isOpera && document.readyState
  isMSIE=isIE=document.all && document.all.item && !isOpera
  isStrict=document.compatMode=='CSS1Compat'
  isNN=isNC=navigator.appName=="Netscape"
  isNN4=isNC4=isNN && !isDOM
  isMozilla=isNN6=isNN && isDOM





function getElementsByClassName(strClass, strTag, objContElm) {
  strTag = strTag || "*";
  objContElm = objContElm || document;
  var objColl = (strTag == '*' && document.all && !window.opera) ? document.all : objContElm.getElementsByTagName(strTag);
  var arr = new Array();
  var delim = strClass.indexOf('|') != -1  ? '|' : ' ';
  var arrClass = strClass.split(delim);
  for (var i = 0, j = objColl.length; i < j; i++) {
    var arrObjClass = objColl[i].className.split(' ');
    if (delim == ' ' && arrClass.length > arrObjClass.length) continue;
    var c = 0;
    comparisonLoop:
    for (var k = 0, l = arrObjClass.length; k < l; k++) {
      for (var m = 0, n = arrClass.length; m < n; m++) {
        if (arrClass[m] == arrObjClass[k]) c++;
        if (( delim == '|' && c == 1) || (delim == ' ' && c == arrClass.length)) {
          arr.push(objColl[i]);
          break comparisonLoop;
        }
      }
    }
  }
  return arr;
}

// To cover IE 5.0's lack of the push method
Array.prototype.push = function(value) {
  this[this.length] = value;
}





function showdisblg(obj,ow,bg,obTop){
var myObjColl = getElementsByClassName('floatset');
for (var i = 0, j = myObjColl.length; i < j; i++) {
   myObjColl[i].style.display="none";
}
var marginT=50
if (isMSIE)
{
var selectoff=document.getElementsByTagName("select")
for (var i=0; i<selectoff.length; i++)
{
if (selectoff[i].className.match("canhide")!==null){
	selectoff[i].style.display="none"
}
}
}
var obj=document.getElementById(obj)
obj.style.display="block";
obj.style.zIndex="111100";
obj.style.width=ow;
obj.style.left="300px";//(document.documentElement.clientWidth-obj.offsetWidth)/2+"px"

if(obTop!=="cus"){
if (!isOpera){
if (obj.offsetHeight<document.documentElement.clientHeight)
{ 
obj.style.top=document.documentElement.scrollTop+(document.documentElement.clientHeight-obj.offsetHeight)/2+"px"
 }else{
 obj.style.top=(document.documentElement.scrollTop)+marginT+"px"}
              }
else  {
if (obj.offsetHeight<window.innerHeight)
{ 
obj.style.top=document.documentElement.scrollTop+(window.innerHeight-obj.offsetHeight)/2+"px"
 }else{
 obj.style.top=(document.documentElement.scrollTop)+marginT+"px"}
}
}
//else{obj.style.top=obTop+"px"}

if(bg=="bgon"){
if(document.getElementById('bgDiv')){
document.getElementById('bgDiv').style.display="block"
document.getElementById('bgDiv').style.height=document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement.scrollHeight:document.documentElement.clientHeight+"px"
}
else{
sWidth=document.documentElement.scrollWidth>document.documentElement.clientWidth?document.documentElement.scrollWidth:document.documentElement.clientWidth;
sHeight=document.documentElement.scrollHeight>document.documentElement.clientHeight?document.documentElement.scrollHeight:document.documentElement.clientHeight;
var bgObj=document.createElement("div");
			bgObj.setAttribute('id','bgDiv');
			bgObj.style.position="absolute";
			bgObj.style.top="0";
			bgObj.style.background="#234A67";
			bgObj.style.filter="alpha(opacity=30);";
			bgObj.style.opacity="0.3";
			bgObj.style.left="0";
			bgObj.style.width=sWidth+ "px";
			bgObj.style.height=sHeight + "px";
			bgObj.style.zIndex = "10000";
			document.body.appendChild(bgObj)
			}
			
}			
}

function hidedisblg(obj){
if(document.getElementById('bgDiv')){document.getElementById('bgDiv').style.display="none"};
obj.style.display="none"
 var selecton=document.getElementsByTagName("select")

if (isMSIE)
{var selecton=document.getElementsByTagName("select")
for (var i=0; i<selecton.length; i++)
{if (selecton[i].className.match("canhide")!==null){
	selecton[i].style.display=""}}}}

