function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

theDate= new Date();
var months = new Array("", 
"January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
);
function printDate() {
document.write(theDate.getDate() + '&nbsp;'); // day
document.write(months[theDate.getMonth()+1] + '&nbsp;'); // month
document.write(theDate.getYear()); // day
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

var relation = new Array();
relation[0] = new Array("0","","0");

relation[1] = new Array("1","Choose Hospital","#");
relation[2] = new Array("1","Albury Wodonga ","/hospitals/ALB/ALB.asp");
relation[3] = new Array("1","Armidale","/hospitals/aph/aph.asp");
relation[4] = new Array("1","Baringa ","/hospitals/bar/bar.asp");
relation[5] = new Array("1","Berkeley Vale ","/hospitals/bvp/bvp.asp");
relation[6] = new Array("1","Castlecrag","/hospitals/cas/cas.asp");
relation[7] = new Array("1","Dudley","/hospitals/dph/dph.asp");
relation[8] = new Array("1","Figtree ","/hospitals/fig/fig.asp");
relation[9] = new Array("1","Hunters Hill ","/hospitals/hhp/hhp.asp");
relation[10] = new Array("1","Kareena","/hospitals/kar/kar.asp");
relation[11] = new Array("1","Lake Macquarie ","/hospitals/lmp/lmp.asp");
relation[12] = new Array("1","Lawrence Hargrave ","/hospitals/lhp/lhp.asp");
relation[13] = new Array("1","Macarthur","/hospitals/mac/mac.asp");
relation[14] = new Array("1","Mt Wilga ","/hospitals/mwp/mwp.asp");
relation[15] = new Array("1","North Shore ","http://ramsay/hospitals/nsp/");
relation[16] = new Array("1","Northside Clinic","/hospitals/nsc/nsc.asp");
relation[17] = new Array("1","Northside Cremorne","/hospitals/ncc/ncc.asp");
relation[18] = new Array("1","Northside West","/hospitals/nwc/nwc.asp");
relation[19] = new Array("1","Nowra","/hospitals/now/now.asp");
relation[20] = new Array("1","Port Macquarie","/hospitals/pmp/pmp.asp");
relation[21] = new Array("1","Southern Highlands","/hospitals/shp/shp.asp");
relation[22] = new Array("1","St George","/hospitals/stg/stg.asp");
relation[23] = new Array("1","Strathfield","/hospitals/str/str.asp");
relation[24] = new Array("1","Tamara ","/hospitals/tam/tam.asp");
relation[25] = new Array("1","Warners","/hospitals/war/war.asp");
relation[26] = new Array("1","Westmead ","http://ramsay/hospitals/WMP/");
              
relation[27] = new Array("2","Choose Hospital","#");
relation[28] = new Array("2","Caboolture","/hospitals/cab/cab.asp");
relation[29] = new Array("2","Cairns ","http://cphweb/");
relation[30] = new Array("2","Caloundra","/hospitals/cal/cal.asp");
relation[31] = new Array("2","Greenslopes ","http://gphweb/");
relation[32] = new Array("2","Hillcrest - Rockhampton","/hospitals/hrp/hrp.asp");
relation[33] = new Array("2","John Flynn - Gold Coast","/hospitals/jfp/jfp.asp");
relation[34] = new Array("2","Nambour Selangor","/hospitals/nph/nph.asp");
relation[35] = new Array("2","New Farm","http://nfcweb/");
relation[36] = new Array("2","Noosa","/hospitals/noo/noo.asp");
relation[37] = new Array("2","North West","/hospitals/nwp/nwp.asp");
relation[38] = new Array("2","Pindara - Gold Coast","/hospitals/pin/pin.asp");
relation[39] = new Array("2","Pindata Day Surgery","/hospitals/pdp/pdp.asp");
relation[40] = new Array("2","Short Street Day Surgery","/hospitals/ssd/ssd.asp");
relation[41] = new Array("2","St Andrew's Ipswich","/hospitals/sta/sta.asp");

relation[42] = new Array("3","Choose Hospital","#");
relation[43] = new Array("3","Albert Road","/hospitals/arc/arc.asp");
relation[44] = new Array("3","Beleura ","/hospitals/bel/bel.asp");
relation[45] = new Array("3","Donvale Rehabilitation","/hospitals/drh/drh.asp");
relation[46] = new Array("3","Frances Perry","/hospitals/fph/fph.asp");
relation[47] = new Array("3","Glenferrie ","/hospitals/gfp/gfp.asp");
relation[48] = new Array("3","Linacre","/hospitals/lph/lph.asp");
relation[49] = new Array("3","Masada","/hospitals/mas/mas.asp");
relation[50] = new Array("3","Mildura Base ","http://www.ramsayhealth.com.au/mbh/");
relation[51] = new Array("3","Mitcham ","/hospitals/mph/mph.asp");
relation[52] = new Array("3","Murray Valley ","/hospitals/mvp/mvp.asp");
relation[53] = new Array("3","Peninsula Private","/hospitals/pph/pph.asp");
relation[54] = new Array("3","Shepparton","/hospitals/sph/sph.asp");
relation[55] = new Array("3","The Avenue","/hospitals/tah/tah.asp");
relation[56] = new Array("3","Wangaratta","/hospitals/wan/wan.asp");
relation[57] = new Array("3","Warringal","/hospitals/wng/wng.asp");
relation[58] = new Array("3","Waverley","/hospitals/wav/wav.asp");
              
relation[59] = new Array("4","Choose Hospital","#");
relation[60] = new Array("4","Adelaide Clinic","/hospitals/tac/tac.asp");
relation[61] = new Array("4","Fullarton","/hospitals/ful/ful.asp");
relation[62] = new Array("4","Kahlyn ","/hospitals/kph/kph.asp");
relation[63] = new Array("4","North Eastern","/hospitals/nec/nec.asp");
              
relation[64] = new Array("5","Choose Hospital","#");
relation[65] = new Array("5","Attadale","/hospitals/att/att.asp");
relation[66] = new Array("5","Coastal","/hospitals/coa/coa.asp");
relation[67] = new Array("5","Glengarry","/hospitals/ggp/ggp.asp");
relation[68] = new Array("5","Hollywood ","http://insidehollywood/");
relation[69] = new Array("5","Joondalup","/hospitals/jhc/jhc.asp");

relation[70] = new Array("6","Choose Hospital","#");
relation[71] = new Array("6","RS Internasional Bintaro","/hospitals/ind/ind.asp");
relation[72] = new Array("6","RS Mitra Internasional","/hospitals/ind/ind.asp");
relation[73] = new Array("6","RS Surabaya Internasional","/hospitals/ind/ind.asp");

function load_per(start)
{
len = relation.length;
len_box = document.form_select.Hospital.options.length;
for (j=len_box;j>=0;j--)
{
 document.form_select.Hospital.options[j] = null;
}
counter = 0;
for (i=0;i<len;i++)
{
 if (relation[i][0] == start)
  {
    text = relation[i][1];
    value = relation[i][2];
    document.form_select.Hospital.options[counter]= new Option(text,value);
    counter++;
  }
}
}

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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}