if (!document.layers&&!document.all&&!document.getElementById)
event="test"

function showtip(current,e,text)
{
 if (document.all||document.getElementById)
 {
 thetitle=text.split('<br>')
 if (thetitle.length>1)
 {
  thetitles=''
  for (i=0;i<thetitle.length;i++)
  thetitles+=thetitle[i]
  current.title=thetitles
  }
  else
  current.title=text
 }

 else if (document.layers)
 {
 document.tooltip.document.write('<layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
 document.tooltip.document.close()
 document.tooltip.left=e.pageX+5
 document.tooltip.top=e.pageY+5
 document.tooltip.visibility="show"
 }
}

function hidetip()
{
if (document.layers)
document.tooltip.visibility="hidden"
}

function openwin(thisForm){
	var x=thisForm.pdf.value;
	if (x!="") {
	window.open('http://www.giscoews.com/sdm/metadata/' + x + '.pdf','metadata','');
	}
}

function openWindow(url, name, width, height) {
	var newWin = window.open(url, name, 'toolbar=no, location=no, top=0, left=0, directories=no, status=yes, menubar=no, scrollbars=yes, resizable=yes, width=' + width + ', height=' + height+ '');
	//opener.parent.window.name.focus();
	newWin.focus();
	return newWin;
}

