// --------------------------
// JavaScript Document
// drSolutions - Site Temporário
// --------------------------
// Diego Mendes Rodrigues
// diego@drsolutios.com.br
// --------------------------

function abreQuemSomos() {
//	var w=600;
//	var h=400;
//	var winl = (screen.width - w) / 2;
//	var wint = (screen.height - h) / 2;
//	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';
//	win = window.open("quemsomos.php", "quemsomos", winprops);
//	if (parseInt(navigator.appVersion) >= 4) { 
//		win.window.focus(); 
//	}
	window.location="quemsomos.php";
}

function abreServicos() {
//	var w=600;
//	var h=400;
//	var winl = (screen.width - w) / 2;
//	var wint = (screen.height - h) / 2;
//	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';
//	win = window.open("servicos.php", "servicos", winprops);
//	if (parseInt(navigator.appVersion) >= 4) { 
//		win.window.focus(); 
//	}
	window.location="servicos.php";
}

function abrePortifolio() {
//	var w=600;
//	var h=400;
//	var winl = (screen.width - w) / 2;
//	var wint = (screen.height - h) / 2;
//	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';
//	win = window.open("portifolio.php", "portifolio", winprops);
//	if (parseInt(navigator.appVersion) >= 4) { 
//		win.window.focus(); 
//	}
	window.location="portifolio.php";
}

function abreContato() {
//	var w=600;
//	var h=400;
//	var winl = (screen.width - w) / 2;
//	var wint = (screen.height - h) / 2;
//	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';
//	win = window.open("contato.php", "contato", winprops);
//	if (parseInt(navigator.appVersion) >= 4) { 
//		win.window.focus(); 
//	}
	window.location="contato.php";
}

function validarLoginClientes() {
	if ( document.formcli.cliuser.value.length == 0 ) {
		alert("Informe seu login!");
		return false;
	}
	if ( document.formcli.clipass.value.length == 0 ) {
		alert("Informe sua senha!");
		return false;
	}
	if ( document.formcli.clidominio.value.length == 0 ) {
		alert("Informe seu domínio!");
		return false;
	}
	if ( document.formcli.clidominio.value == "www." ) {
		alert("Informe seu domínio!");
		return false;
	}	
	return true;
}


function abreStats1() {
	var h=500;
	var winl = 0;
	var wint = (screen.height - h) / 2;
	var win;	
	winprops = 'height='+h+',width='+ screen.width +',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=no,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';

	win = window.open("drstats.php", "Estatisticas_Internas", winprops);
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
}

function abreStats2() {
	var h=500;
	var winl = 0;
	var wint = (screen.height - h) / 2;
	var win;
	winprops = 'height='+h+',width='+ screen.width +',top='+wint+',left='+winl+',titlebar=no,toolbar=no,scrollbars=yes,menubar=no,status=no,directories=no,resize=yes,location=no,copyhistory=no';
	win = window.open("statsgoogle.php", "Estatisticas_Google", winprops);
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
}
