function rollOver(directory,imageName,status,name)
{
	var imageSrc = directory + name + "_"+status + ".gif";
	document.images[imageName].src = imageSrc;
}

function Submit(action, article)
{
	document.thisForm.textIn.value =''
	document.thisForm.article_id.value = article
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function SubmitMore(action, category, article, type)
{
	document.thisForm.category_id.value = category
	document.thisForm.article_id.value = article
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function Search(action)
{
	document.thisForm.textSearIn.value = document.thisForm.textSear.value 
	document.thisForm.article_id.value = ''
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function SearchIn(action,page)
{
	document.thisForm.page.value = page
	document.thisForm.article_id.value = ''
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function SubmitPoll(action, poll_id, result)
{
	document.thisForm.result.value = result
	document.thisForm.poll_id.value = poll_id
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function openWin(pageName,img_name,height,width)
{
	window.open(pageName+"?img_name="+img_name, "_blank", "left=100,top=20,height="+height+",width="+width+",scrollbars=no,resizable=no,toolbar=no,status=no")
}
function openUrl(pageName)
{
	window.open("http://"+pageName, "_blank", "left=100,top=20,height=600,width=800,scrollbars=yes,resizable=yes,toolbar=yes,status=yes")
}
function openMap(pageName,map_id,height,width,map_name)
{
	window.open(pageName+"?map_id="+map_id+"&map_name="+map_name+"&image_width="+width+"&image_height="+(height-101), "_blank", "left=100,top=20,height="+height+",width="+width+",scrollbars=no,resizable=no,toolbar=no,status=no")
}
function init()
{
	document.thisForm.poll_id.value = ""
	document.thisForm.action=""
}
function SubmitNews(action, article, newspaper)
{
	document.thisForm.textIn.value =''
	document.thisForm.article_id.value = article
	document.thisForm.newspaper_id.value = newspaper
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function SubmitLastNews(action, typeLast)
{
	document.thisForm.textIn.value =''
	document.thisForm.typeLast.value = typeLast
	document.thisForm.action=""+action+""
	document.thisForm.submit()
}
function submitenter(action,myfield,e)
{
var keycode;
if (window.event) keycode = window.event.keyCode;
else if (e) keycode = e.which;
else return true;
if (keycode == 13)
{
	document.thisForm.textIn.value = document.thisForm.text.value 
	document.thisForm.article_id.value = ''
	document.thisForm.action=""+action+""
	document.thisForm.submit()
return false;
}
else
return true;
}









