function print_day_select(name,d)
{
	document.write('<select name="'+name+'">');
	for (i=1; i<32; i++) {
		if (i == d) { selected = "selected";}
		else {selected = "";}
		if (i < 10) {i = "0"+i;}
		document.write('<option value="'+i+'" '+selected+'>'+i+'</option>');
	}
	document.write('</select>');
}

function print_month_select(name,m)
{
	var month = new Array;
	month[1] = "январь";
	month[2] = "февраль";
	month[3] = "март";
	month[4] = "апрель"
	month[5] = "май";
	month[6] = "июнь";
	month[7] = "июль";
	month[8] = "август";
	month[9] = "сентябрь";
	month[10] = "октябрь";
	month[11] = "ноябрь";
	month[12] = "декабрь";

	document.write('<select name="'+name+'">');
	for (i=1; i<13; i++) {

		if (i == m) { selected = "selected";}
		else {selected = "";}
		if (i < 10) {j = "0"+i;} else {j=i;}
		document.write('<option value="'+j+'" '+selected+'>'+month[i]+'</option>');
	}
	document.write('</select>');
}

function print_zodiac_select(name,z)
{
	var zodiac = new Array;
	zodiac[0] = "не выбрано";
	zodiac[1] = "козерог";
	zodiac[2] = "водолей";
	zodiac[3] = "рыбы";
	zodiac[4] = "овен";
	zodiac[5] = "телец"
	zodiac[6] = "близнецы";
	zodiac[7] = "рак";
	zodiac[8] = "лев";
	zodiac[9] = "дева";
	zodiac[10] = "весы";
	zodiac[11] = "скорпион";
	zodiac[12] = "стрелец";

	document.write('<select name="'+name+'">');
	for (i=0; i<13; i++) {

		if (i == z) { selected = "selected";}
		else {selected = "";}
		if (i < 10) {j = "0"+i;} else {j=i;}
		document.write('<option value="'+j+'" '+selected+'>'+zodiac[i]+'</option>');
	}
	document.write('</select>');
}


function comment()
{

}


function add_creation()
{
	cr = window.open("/creations/add.php", "addcr", "width=500,height=550,resizable=1");
}

function edit_creation(id)
{
	cr = window.open("/creations/edit.php?id="+id, "editcr", "width=500,height=550,resizable=1");
}

