///////////////// top search box /////////////////////
function NoneImg()
{
	document.query_box.p.style.backgroundImage = "";
}
function InsertImg()
{
	var text = document.query_box.p.value;
	text = text.replace(/(^\s*)/g,"");

	if (!text)
		document.query_box.p.style.backgroundImage = "url()";
	else
		NoneImg();
}
///////////////// top search box /////////////////////

///////////////// clear Text /////////////////////
function clearText(y)
{
	if (y.defaultValue==y.value)
		y.value = ""
}
///////////////// clear Text /////////////////////

///////////////// img size popup //////////////////
function ViewImage(ifile,ix,iy,ititle) {
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}
if(sWidth!=ix || sHeight!=iy) {
win.close();
setTimeout("ViewImage('"+ifile+"',"+ix+","+iy+",'"+ititle+"')", 250);
return;
}
win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}
///////////////// img size popup //////////////////

//////////////Layer Show Hide////////////////
var nscp = (navigator.appName == "Netscape")
    var ismc = (navigator.appVersion.indexOf("Mac") != -1)
    var vers = parseFloat(navigator.appVersion.substring(22,25))

    function getObj(obj) {
       if (nscp) {
           compLayr = document.layers[obj]
       }else{
           compLayr = eval("document.all." + obj + ".style")
       }
       return compLayr
    }

    function showHide(name){
       obj = getObj(name) ;

       if (obj.visibility=="hidden"){
       obj.visibility = "visible" ;
       } else {
       obj.visibility = "hidden" ;
       }
    }
//////////////Layer Show Hide////////////////

////////////////// bluring //////////////////////
<!--
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG"||event.srcElement.tagName=="AREA") document.body.focus();
}
document.onfocusin=bluring;
// -->
////////////////// bluring //////////////////////
