
function openPreview(imgSrc,dimension){
	<!--
	var path_splited=imgSrc.split("/");
	imgClicked=path_splited[path_splited.length-1].split(".")[0];
	window.open("preview.htm","Preview",dimension+",scrollbars=no,resizable=no");
	-->
}



function replaceC(){
	var strBody=document.body.innerHTML;
//	strBody="<br /><div a>Content asda</div>";
	strBody=strBody.replace(/(<br \/>|)<(div)(.*)>content(.*)<\/(div)>/i,"");
//	alert (strBody);
	document.body.innerHTML=strBody+"</html>";
//	clipboardData.setData("Text",strBody);
}

function findObj(n, d) {
  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);

  return x;
}

var ie5  = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
var opac = 100;

//if(ie5) eval(document.getElementById('searchbox')).style.filter="alpha(opacity="+0+")";;
//if(ns6) document.getElementById('searchbox').style.MozOpacity = 0;
/*
function fadeOut() {
	if(opac > 0){
		opac-=15;
		if(ie5) eval(document.getElementById('searchbox')).style.filter="alpha(opacity="+opac+")";;
		if(ns6) document.getElementById('searchbox').style.MozOpacity = opac/100;
		setTimeout('fadeOut()', 50);
	}
}
*/
