function MM_findObj(n, d) { //v4.01
  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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(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 openWin1(url)
{
var j=window.open(url,"jj","left=20, top=20, width=315,height=190,scrollbars=1") 
}

function openWin12(url)
{
var j=window.open(url,"jj","left=20, top=20, width=355,height=240,scrollbars=1") 
}

function openWinCustom(url)
{
var j=window.open(url,"Jimspost","menubar=1,resizable=1,scrollbars=1") 
}

function openWinFull(url)
{
var j=window.open(url,"Jimspost","menubar=1,resizable=1,scrollbars=1,location=1") 
}
function openWin11(url)
{
var j=window.open(url,"jj","left=20, top=20, width=275,height=145,scrollbars=1") 
}

function openWin2(url)
{
var j=window.open(url,"jj","left=20, top=20, width=550,height=520,scrollbars=1") 
}

function openWin3(url)
{
var j=window.open(url,"jj","left=20, top=20, width=500,height=300,scrollbars=1") 
}

function openWin4(url)
{
var j=window.open(url,"jj","left=20, top=20, width=800,height=690,scrollbars=1") 
}
function MM_openBrWindow4(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function openWin5(url)
{
var j=window.open(url,"jj","left=20, top=20, width=500,height=307,scrollbars=1") 
}
function openWin6(url)
{
var j=window.open(url,"jj","left=20, top=20, width=500,height=570,scrollbars=1") 
}
 function GetFile(file)
    {
            var strurl;
            strurl = window.opener.location.href;
            if(strurl.lastIndexOf(".php")<=0)
             {
                window.opener.location.href = file; 
                window.close();
             }else
             {
                var i = strurl.lastIndexOf(".php");
                s1 = strurl.substring(0, i + 5);
              var url= window.opener.location;
              //var url1=window.opener.location.substring(0,5);
              //alert(url1);
              window.opener.location =  file;
              //window.opener.location.reload();
              window.close();
    //        window.opener.location.refresh();
            }
        
    }