
/*  popup functions
	Developer:  Wheng Gabitan (rowena.gabitan@vinciworks.com)
	Created:  21 April 2004
*/

/* generic popup */
function popMessage(url,w,h) 
	{ open (url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no,width=" + w +",height=" + h);
	}

function popWin(url,w,h)
	{ open (url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=no,width=" + w +",height=" + h);
		}

function popWinscroll(url,w,h)
	{ open (url,"","toolbar=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=no,width=" + w +",height=" + h);
		}
/* generic popup */

/* index */
function OpenWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
		}

		function forwardId(id) {
			//alert(id);
			document.mainIndex.newsId.value = id;
			document.mainIndex.submit();
		}		
		/*function openflash() {
			open("quickpollstatus.jsp","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=1,width=400,height=400");
		}*/	

function Clock() {
  if (!document.getElementById) return;
  theclock =document.getElementById("clock");
  now = new Date();
  weekday = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
  month = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
  date = now.getDate();
  year = now.getFullYear();
  gmt = now.toGMTString();

  hours=now.getHours();
  mins=now.getMinutes();
  secs=now.getSeconds();
  if (hours > 12) {
     hours = hours - 12;
     x = "PM";
  } else {
     x = "AM";
  }
  if (hours < 10) hours= "0" + hours;
  if (secs < 10) secs= "0" + secs;
  if (mins < 10) mins= "0" + mins;
	theclock.innerHTML = weekday[now.getDay()]+", "+date+" "+month[now.getMonth()]+" "+year+"   "+hours+":"+mins+":"+secs+" "+x+"<br>";
  //theclock.innerHTML = gmt;
  window.setTimeout("Clock();",250);      
}
/* index */

/* law dictionary */
<!--
function rldictionary(word)
{
rlditionary = window.open('http://dictionary.law.com/default2.asp?typed=' + word,'_dictionary','width=530,height=460,resizable,titlebar,addressbar');
}
//-->
/* law dictionary */

/* news story page */
function openflash() {
			open("quickpollstatus.jsp","","toolbar=no,directories=no,status=no,menubar=no,scrollbars=0,resizable=1,width=400,height=400");
		}
/* news story page */

