//<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

//if(self!=top){top.location.href=self.location.href;}

var uri='datu-sinsaoti.net';
var loc=document.location.href;

function printImg(){
	
	if(loc.indexOf('//localhost/') >= 0 || loc.indexOf('192.168.1.') >= 0 || loc.indexOf('192.168.0.2') >= 0){
		return;
	}

	
	dN=new Date;
	Mins=dN.getMinutes();
	Secs=dN.getSeconds();
	URL=document.referrer;
	var cls=getFilename();
	
	if(URL==""){URL="Unknown";}
	document.write("<img src=");
	document.write("http://www.datu-sinsaoti.net/report/logset.cgi?");
	document.write(cls);
	document.write(","+loc+","+URL+",");
	document.write(Mins+Secs);
	document.write(">");
}

function getFilename(){
	var dlength=uri.length;
	
	if(loc.indexOf(uri)){
		var tmp=loc.indexOf(uri,0)+dlength;
		var tmp=loc.substring(tmp);

		return(tmp);
	}
}
function printRes(tgt){
document.registform.comment.focus();
	tgt+="\n"+document.registform.comment.value;
	document.registform.comment.value='>>'+tgt;
}


function write_txt(str){
	document.open();
	document.write(str);
	document.close();
}


function changeLines(T,N){
	
	T.style.height=N;
/*	
	n=obj.value.match(/\r/g);
	var len = n ? n.length + 1:1;
*/


}
