function pageScroll() {
    	window.scrollBy(50000,0); // horizontal and vertical scroll increments

}

//function for forcing form submission
function checkEnter(e, searchWord){
var characterCode
var sWord = searchWord;
	 if(e && e.which){
	 e = e
	 characterCode = e.which
	 }
	 else{
	 e = event
	 characterCode = e.keyCode
	 }	 
	 if(characterCode == 13){
 	 searchtool(sWord)
 	 return false;
	 }
	 else
	 {
	 return false;
	 }
}

// Search function
function searchtool(searchWord) {


		var searchURL="search.php?q="+searchWord;

  		location.href=searchURL;
}

function goToUrl( destUrl )
{
	location.href=destUrl;
}

function showtable(theTable, theField)
{	
	obj = document.getElementsByTagName('TR');
	var cnt = 0;
	for (i=0; i<obj.length; i++)
	{
		if (obj[i].id == theTable)
		{
			if (obj[i].style.display == 'none')
			{
          		obj[i].style.display = 'block';
				if (cnt == 1) 
				{
					document.getElementById(theField).focus();
				}
				cnt++;
		 	}
		  	else
		  	{
         		obj[i].style.display = 'none';
				cnt = 0;
			}
		}
	}
}

function hidetable(theTable)
{
     obj = document.getElementsByTagName('TR');
     for (i=0; i<obj.length; i++)
     {
          if (obj[i].id == theTable)
          obj[i].style.display = 'none';
     }
}
