function reloadPage(init) { 
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=reloadPage; }}
  else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
reloadPage(true);

function findObject(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=findObject(n,d.layers[i].document);
  if(!x && document.getElementById) 
    x=document.getElementById(n); 
  return x;
}

function showOrHide() { 
  var i,p,v,obj,args=showOrHide.arguments;
  for (i=0; i<(args.length-2); i+=3) 
      if ((obj=findObject(args[i]))!=null) 
      { v=args[i+2];
        if (obj.style) 
        { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; 
        }
      obj.visibility=v; 
      }
}

function ApplyOnline()
{
var url=window.open('http://www.crvexecutivesearch.com/Submitcv/default.asp','','dependent=yes,scrollbars=1,resizable=1,width=800,height=600');
if(url.opener=="")
	url.opener=self;
	
url.focus();
}

function detailOnline(cnt)
{
var url=window.open('http://www.crvexecutivesearch.com/details.asp?count='+ cnt,'','dependent=yes,scrollbars=1,resizable=1,width=800,height=600');
if(url.opener=="")
	url.opener=self;
	
url.focus();
}


