function imgSwap(oImg)
{
   var strOver  = "_on"    // image to be used with mouse over
   var strOff = "_off"     // normal image
   var strImg = oImg.src
   if (strImg.indexOf(strOver) != -1) 
      oImg.src = strImg.replace(strOver,strOff)
   else
      oImg.src = strImg.replace(strOff,strOver)
}

function viewImg1(id,type,path) {
  w = 205;
	h = 160;
 	x = (screen.availWidth - w) / 2;
 	y = (screen.availHeight - h) / 2;
 	var p = path;
 	
 	popwin = window.open(path+"/index.php?pg=public/viewimg&al=1&id="+id, "kep", "width=" + w + ",height=" + h + ",status=1,left=" + x + ",top=" + y + ",resizable=1,scrollbars=1"); 
}
function viewImg2(id,type,path,w,h) {
 	x = (screen.availWidth - w) / 2;
 	y = (screen.availHeight - h) / 2;
 	var p = path;
 	
 	popwin = window.open(path+"/index.php?pg=public/viewimg&al=1&m=1&id="+id, "kep", "width=" + w + ",height=" + h + ",status=1,left=" + x + ",top=" + y + ",resizable=1,scrollbars=1"); 
}
