function popChat(hour) {
	if (hour >= 7 && hour < 18) {
		window.open('http://www.injurycases.net/chat.html','_blank','width=219,height=345,status=no,resizable=no,scrollbars=no,')
	}

	return false
}

function winPop(url){
	win = window.open(url)
}

var nn6 = (document.getElementById && !document.all);
function stopCopyNN(){
	if ((nn6) && (document.getSelection()!="")) {
		location.reload();
		alert('function disabled');
	} else {
		setTimeout("stopCopyNN()",10)
	}
}
//setTimeout("stopCopyNN()",10)

function Hide(){
	for (i=0; i<menu.length; i++){
	  obj = "p"+i
	  //if (nn4) document.layers[obj].visibility = 'hide'
	  if (ie4) document.all[obj].style.visibility = 'hidden'
	  if (nn6 || ie5) document.getElementById(obj).style.visibility = 'hidden'
	}
}

function unHide(num){
	obj = "p"+num

        //if (nn4) document.layers[obj].visibility = 'show'
	if (ie4) document.all[obj].style.visibility = 'visible'
	if (nn6 || ie5) document.getElementById(obj).style.visibility = 'visible'
	if (ie4 || ie5) document.body.focus()
}

//load a new file into a layer or iframe
function loadPage(url) {
	content_width = 420

	if (nn4) {
	  document.layers['contentLayer'].load(url, content_width)
	  window.scroll(0,0)
	} else if(ie4) {
	  parent.contentFRM.location = url;
	} else if(ie5 || nn6) {
	  document.getElementById('contentFRM').src = url
	}
	
	if (ie4 || ie5) 
	{
	  document.body.focus();
	}
}

//with ie and nn6 you have to load from the iframe in a layer
function showPage(id) {
	if (ie4) {
	  document.all[id].innerHTML = parent.contentFRM.document.body.innerHTML
	}
	//alert(top.getElementById(id));
	else if(nn6 || ie5) {
//var tmp = document.getElementById(id);
//if (tmp) alert('yippeee' + id); else alert('dohhh' + id)	 
	  document.getElementById(id).innerHTML = window.frames['contentFRM'].document.getElementById('theBody').innerHTML
	}

	window.scroll(0, 0)
	//setTimeout("showPage('theBody')", 1000)
}

function doTime(h, m){
  a = "am"

  if (h>=12){
	a = "pm"
  	if (h==13) h = 1
	else if (h==14) h = 2
	else if (h==15) h = 3
	else if (h==16) h = 4
	else if (h==17) h = 5
	else if (h==18) h = 6
	else if (h==19) h = 7
	else if (h==20) h = 8
	else if (h==21) h = 9
	else if (h==22) h = 10
	else if (h==23) h = 11
  }
  if (h==0) h = 12

  m = m + ""
  if (m.length == 1){
	m = "0"+m
  }

  time = h+":"+m+"&nbsp;"+a

  return time
}

function doDate(m, d, y){
	if (m == 1) m = "January"
	else if (m == 2) m = "February"
	else if (m == 3) m = "March"
	else if (m == 4) m = "April"
	else if (m == 5) m = "May"
	else if (m == 6) m = "June"
	else if (m == 7) m = "July"
	else if (m == 8) m = "August"
	else if (m == 9) m = "September"
	else if (m == 10) m = "October"
	else if (m == 11) m = "November"
	else if (m == 12) m = "December"

	date = m+"&nbsp;"+d+",&nbsp;"+y

	return date
}





function stopmouse(e) { 
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))  return false
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {  
 		alert("source locked")
		return false 
 	}
	
	return true
} 

document.onmousedown=stopmouse
if (document.layers) window.captureEvents(Event.MOUSEDOWN)
window.onmousedown=stopmouse

