// winsizer maximum
function WinSizer() {
windowWidth = window.screen.availWidth;
windowHeight = window.screen.availHeight;
window.moveTo(0,0);
window.resizeTo(windowWidth,windowHeight);
}



// hide loading
function HideDiv(div){
 document.getElementById(div).style.display = "none";
}



// open and clouse group
function OpenDivGroup(div, td){
	if (document.getElementById(div).style.display == "none")
	{
		document.getElementById(div).style.display = "block";
	}
	else
	{
		document.getElementById(div).style.display = "none";
    }
}



// print
function selfprint() {
self.print();
}



// only numbers in textbox
function isNumberKey(evt)
{
   var charCode = (evt.which) ? evt.which : event.keyCode
   if (charCode > 31 && (charCode < 48 || charCode > 57))
      return false;
    return true;
}



// only tiny words
function UCase()
{
 if ((event.keyCode > 96 && event.keyCode < 123)||(event.keyCode > 223 && event.keyCode< 254))
  {
   event.keyCode = event.keyCode - 32;
  }
}



// popups
function popup350x200(URL) {
window.open(URL,'','width=350, height=200, top=80, left=150, scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}

