var objectsPropertiesNames = new Array (
"Имя:","Возраст:","Знак зодиака:","Рост:","Вес:","Образование:","Род занятий:","Цель знакомства:",
"О себе:","Аб. №:","Кто я:","С кем хочу познакомиться:","E-mail:", "Моя веб-страница:", "Фото:", "ICQ:"
/*, "Пароль"*/
);

//возраст ?
/*
	var now=new Date();
	var now=now.getFullYear();
function getAge (yearOfBorn) {
	var age = now-yearOfBorn;
	return age;
	}
*/

function showDetails (thisRecord) {
	mysex="";
	yoursex=""
	var divide = thisRecord.split("|");
	title = divide[0];
	divide[1] = getAge (divide[1]) + " лет";
	divide[2]=znak[divide[2]];
	divide[3]=divide[3] + " см";
	divide[4]=divide[4] + " кг";
	divide[5]=educ[divide[5]];
	divide[6]=rabota[divide[6]];
	divide[7]=zel[divide[7]];

	if (divide[10]==1) {mysex="мужчина"}
	if (divide[10]==0) {mysex="женщина"}
	if (divide[11]==0) {yoursex="женщиной"}
	if (divide[11]==1) {yoursex="мужчиной"}

newWindow=window.open('','details', 'copyHistory=no, directories=no, height=340, width=520, left=140, top=110, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no');
newWindow.document.open();
newWindow.document.write('<html><head><META content=\'text/html; charset=windows-1251\' http-equiv=Content-Type><title>Знакомства в Полтаве: ' + title.toUpperCase() + '</title><style>* {font-family: Verdana, Tahoma, Arial, Sans-serif;font-size:12;} .title {font-weight:bold; color:#ff6633; padding:5; clear:both;}</style></head><body bgColor=#ffffff>');

newWindow.document.write ('<div style="color:#b00000">Анкета № ' + divide[9] + '</div>' + mysex + ', ' + divide[1] + ',  познакомлюсь с ' + yoursex + ' ... ' + divide[7] + ' ...<hr size=1 noshade>');

if (divide[14].length>5) {
newWindow.document.write ('<img width=25% src=' + divide[14] + ' style=\'float:left; margin-right: 1em\'>');
}
newWindow.document.write ('<b>' +
	divide[0] +
	'</b><br>' + divide[1] + ', ' + divide[2] +
	'<br>' + divide[3] + ', ' + divide[4] + '<p>'
);

newWindow.document.write ('<table border=0 bgColor=#b00000 cellspacing=1 cellpadding=4>');

for (i=5; i< objectsPropertiesNames.length; i++) {
	if (i==9) continue;
	if (i==10) continue;
	if (i==11) continue;
	if (i==13) {if (divide[i]=='' || divide[i]=='#') continue;
	else divide[i] = '<a target=_blank href=\"http://' + divide[i] + '\">http://' + divide[i] + '</a>' ;}
	if (i==14) continue;
	if (i==15) {if (divide[i].length<8) continue;
	else {divide[i] = '<img src=\"http://web.icq.com/whitepages/online?icq=' + divide[i] + '&img=5\" width=18 height=18 border=0 alt=\"ICQ status\" align=absmiddle> ' + divide[i];}
}

newWindow.document.write ('<tr valign=top bgColor=#e2e7ed><td>' + objectsPropertiesNames[i] + '<td>' + divide[i] + '</tr>');
}
newWindow.document.write ('</table>');
newWindow.document.write ('<div class=title>Я &ndash; ' + title + '. Напишите мне!</div>');

newWindow.document.write('<hr size=1 noshade><img src="http://counter.yadro.ru/hit?r'+escape(document.referrer)+((typeof(screen)=='undefined')?'':';s'+screen.width+'*'+screen.height+'*'+(screen.colorDepth?screen.colorDepth:screen.pixelDepth))+';'+Math.random()+'" width=1 height=1 alt="">');
newWindow.document.write('<a href="http://top100.rambler.ru/top100/"><img src="http://counter.rambler.ru/top100.cnt?426917" alt="" width=1 height=1 border=0></a>');
newWindow.document.write('<a href="http://www.a-counter.com/" target=_blank><img src="http://www2.a-counter.kiev.ua/a/88x31x7.png?id=20692&w=0&c=0&r=" width=88 height=31 border=0></a>');

newWindow.document.write ('</body></html>');
newWindow.document.close();
newWindow.focus();
}
//
function getRecord (records, recordNumber) {var thisRecord = records[recordNumber];return thisRecord;}

///////////////////
// те, у кого много "О себе"
function filterForAbout (sex) {
	if (sex==1) var title = "Мужчины о себе...";
	if (sex==0) var title  = "Женщины о себе...";
	document.write('<h1>' + title + '</h1>');
	for (i = 0; i < profiles.length; i++) {
		var divide = profiles[i].split("|");
   		if (divide[8].length>164 && divide[10]==sex) {
			if (divide[14].length>8) {var photo = '+ фото'} else {var photo =''};
			document.write('<p><div class=col2><i>... ' + divide[8] + '...</i></div>');
			document.write('<div style="text-align:right"><A HREF="javascript: void(0);" onClick="var title=this.innerText;  var thisRecord = getRecord (profiles,' + i + '); showDetails (thisRecord);" onMouseOver="window.status=window.defaultStatus+\' \'+this.innerText; return true;">' + divide[0] + ',</A> ' + divide[12] + ' <b>' + photo + '</b></div>');
		}
	}
}

