	var current = 0;
	var x = 0;
	var speed = 100;
	var speed2 = 1200;

	function initArray(n)
	{
  	this.length = n;
	  for (var i =1; i <= n; i++) { this[i] = ' '; }
	}

	typ = new initArray(6)
	typ[0]="Bem-Vindo(a) à IrqZero.net!"
	typ[1]="Hospedagem de Sites!"
	typ[2]="Hospede com qualidade e economia!"
	typ[3]="Aqui você pode ter domínios adicionais ilimitados!"
	typ[4]="Transferência ilimitada!"
	typ[5]="Bancos de dados e contas FTP ilimitadas!"

	function typewrite()
	{
		var m = typ[current]
		window.status = m.substring(0, x++) + " |<Irqzero.net>"
		if (x == m.length + 1) {
		x = 0
		current++
			if (current > typ.length - 1) { current = 0; }
			setTimeout("typewrite()", speed2)
	}
	else {	setTimeout("typewrite()", speed);	}
	}

function WindowCenter(mypage, myname, w, h, scroll, sbars)
{
	if(screen.width == 640)
	{
		if(w >= 300)
		{
			w = w - 100;
			h = h - 100;
		}
	}
	var winl = ((screen.width - w) / 2)-5;
	var wint = ((screen.height - h) / 2)-15;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+sbars+',resizable='+scroll+''
	win = window.open(mypage, myname, winprops);
//	win.location.reload(true);
//	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}


   	ok=false;
  	function Check(form)
  	{
  		if(!ok)
  		{
  		  for (var i=0;i<(form.elements.length);i++)
  		  {	form.elements[i].checked = true; ok=true; }
  		}
  		else
  		{
  			for (var i=0;i<(form.elements.length);i++)
  			{	form.elements[i].checked = false;	ok=false; }
  		}
  	}

function Obtem_ids(form,msg,path)
{
  var armazena='';
  for (var j=0;j<(form.elements.length);j++)
  {
  	if(form.elements[j].checked)
    	{
				armazena = armazena+form.elements[j].name+'-';
    	}
  }
	if(armazena=='')
 	{
  	  alert('Você precisa selecionar no mínimo um ítem a excluir!');
  	  return;
  	}
  	if(confirm(msg))
	{
        	window.location.replace(path+armazena);
	        return false;
	}
	else return false;
}

function set_status(io, text)
{
   prefix="Bem vindo ao site!";
   if(io == 0)
     window.status = text;
   else
     window.status = prefix;
   return true;
}
