function setManset(num){
	eval( "idVal = self.document.frmManset.manset_id_"+num+".value;" );
	eval( "titleVal = self.document.frmManset.manset_title_"+num+".value;" );
	eval( "imageVal = self.document.frmManset.manset_image_"+num+".value;" );
	eval( "spotVal = self.document.frmManset.manset_spot_"+num+".value;" );
	eval( "dateVal = self.document.frmManset.manset_dateNews_"+num+".value;" );
	eval( "linkVal = self.document.frmManset.manset_link_"+num+".value;" );

	document.getElementById("manset_title").innerHTML = "<a class=\"atxtNavy_10\" href=\""+linkVal+"\"><strong>"+titleVal+"</strong></a>";
	document.getElementById("manset_image").src = "http://www.objektifbakis.com/images/news/" + imageVal + ".jpg";
	document.getElementById("manset_image").alt = titleVal;
	document.getElementById("manset_link").href = linkVal;
	document.getElementById("manset_spot").innerHTML = spotVal;
	document.getElementById("manset_date").innerHTML = dateVal;
}

function setAuthor(num){
	eval( "idVal = self.document.frmAuthor.author_id_"+num+".value;" );
	eval( "titleVal = self.document.frmAuthor.author_title_"+num+".value;" );
	eval( "imageVal = self.document.frmAuthor.author_image_"+num+".value;" );

	document.getElementById("author_title").innerHTML = titleVal;
	document.getElementById("author_image").src = "images/author/"+imageVal;
	document.getElementById("author_image").alt = titleVal;
	document.getElementById("author_link").href = "article.php?id="+idVal;
}

function setVideo(indx){
	num = self.document.frmVideo.currentVideoNum.value;
	num = 1*num+1*indx;
	eval( "idVal = self.document.frmVideo.video_id_"+num+".value;" );
	eval( "titleVal = self.document.frmVideo.video_title_"+num+".value;" );
	eval( "imageVal = self.document.frmVideo.video_image_"+num+".value;" );
	eval( "linkVal = self.document.frmVideo.video_link_"+num+".value;" );
	self.document.frmVideo.currentVideoNum.value = num;

	document.getElementById("video_title").innerHTML = titleVal;
	document.getElementById("video_image").src = "http://www.objektifbakis.com/images/news/"+imageVal+".jpg";
	document.getElementById("video_link").href = linkVal;
}

function checkInputAndGo(){
	if (self.document.frmSearch.searchKey.value.length<2){
		alert("En az 2 harften oluşan bir kelime yazınız");
	}
	else if (self.document.frmSearch.categoryId.selectedIndex==0){
		alert("Bir kategori seçiniz");
	}
	else{
		self.document.frmSearch.submit();
	}
}

function openGazetteUrl(val){
	theUrl = 'http://gazete.netgazete.com/ShowPaper.aspx?news='+val;
	window.open(theUrl, 'gazete_'+val, 'width=800, height=650, resizable=yes, scrollbars=yes, top=150, left=150');
}

