function cut_text(str,start,len)
{
	if (str.length<len) return str;
	do{
		len++;
	}
	while (str.charAt(len)!=" ")
	return str.substr(start,len);
}

function mypopup(url)
 {
   mywindow = window.open (url,"Nadsoft","location=1,status=1,scrollbars=1,width=400,height=400");
  mywindow.moveTo(0,0);
 } 