function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
function clrImg(obj){obj.style.backgroundImage="";obj.onkeydown=obj.onmousedown=null;}
function toggle(ggambo) {
	if (ggambo.style.display == "none")
		{ ggambo.style.display = ""; }
	else 	{ ggambo.style.display = "none"; }
	}
function findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function swapImage() {
  var i,j=0,x,a=swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function ggambo_img_check2(){
	var ggambo_cell_width = document.ggambo_table_width.width;
	var ggambo_resize_num = document.ggambo_resize.length;
	for(i=0;i<ggambo_resize_num;i++){ 
		if(document.ggambo_resize[i].width > ggambo_cell_width) {
			document.ggambo_resize[i].width = ggambo_cell_width;
		}
	}
}
window.onload = ggambo_img_check2;
function zb_formresize(obj) {
	obj.rows += 3;
}
function img_filetype_view() 
        {
        img_views = "view_" + event.srcElement.name.split("file")[1];
        
        if(event.srcElement.value.match(/(.jpg|.jpeg|.gif|.png|.bmp|.pdf)$/))
        {
                document.images[img_views].src = event.srcElement.value;
                document.images[img_views].style.display = "";
        }
        else
        {
                document.images[img_views].style.display = "none";
        }
        }
function namosw_cell_rollover(cell, classname) {
  if (document.all || document.getElementById) {
    cell.classBackup = cell.className;
    cell.className   = classname;
  }
}

function namosw_cell_rollout(cell)
{
  if (document.all || document.getElementById) {
    cell.className   = cell.classBackup;
  }
}