function Closed(){
	window.opener=null;
	window.close();
}
function minimizeWIN() 
	{
	top.window.moveTo(0,0);
	if ( (top.opener) && (!top.opener.closed) ) { top.opener.window.focus(); }
	top.window.blur()
}

function MinimizeWindow(){                
var str='<object id=syuwin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="MINIMIZE"></object>';         
if(!document.getElementById("syuwin"))document.body.insertAdjacentHTML("BeforeEnd",str);         
syuwin.Click();               
}  


function killErrors() { 
	return true; 
} 
window.onerror = killErrors; 

function look(){
	if(  event.altKey ) return false;
 } 
document.onkeydown=look; 

function openme(object){
	object.style.background="#f7f7f7";
}
function closeme(object){
	object.style.background="#ffffff";
}


var currentpos,timer;
var position = 0;
var timeoutid=null; 
function sc(){clearInterval(timer);position=1000;}
function initialize(){timer=setInterval("scrollwindow()",1);}
function scrollwindow(){currentpos=document.body.scrollTop;window.scroll(0,++currentpos);}
function PCDisable(e)
{  if(!document.PCDisable) // initialize
  {
    if(document.layers) 
    { document.captureEvents(Event.MOUSEDOWN); document.onmousedown =PCDisable;   }
    else {document.oncontextmenu =PCDisable;};
    return document.PCDisable= true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {  if (e.which==2||e.which==3){return false; }}
  else
  {  return false;}
}
PCDisable();


function setstatus(){  
 var now = new Date();
 window.status= now.toLocaleString();   
 window.setTimeout("setstatus()",1000);     
}
setstatus();


function SelectAll(chkbox){ 
		for (var i=0;i < document.forms[0].elements.length;i++)
		{
			var elemento = document.forms[0].elements[i];
			if (elemento.type == "checkbox")
			{
				elemento.checked = chkbox.checked;
			}
		}
	}



function showhint(iconid, str)
{
	var imgUrl='../images/hint.gif';
	if (iconid != 0)
	{
		imgUrl = '../images/warning.gif';
	}
	document.write('<div style="background:url(' + imgUrl + ') no-repeat 20px 10px;border:1px dotted #DBDDD3; background-color:#FDFFF2; margin:10px; padding:10px 10px 10px 56px;">');
	document.write(str + '</div><div style="clear:both;"></div>');
}

function showloadinghint(divid, str)
{
	if (divid=='')
	{
		divid='PostInfo';
	}
	document.write('<div id="' + divid + ' " style="display:none;position:relative;border:1px dotted #DBDDD3; background-color:#FDFFF2; margin:auto;padding:10px" width="90%"  ><img border="0" src="../images/ajax_loading.gif" /> ' + str + '</div>');
}

