function open_window(href)
{
	open_window(href,'',0,0,true);
}

function sumbit_form(form,url)
{
	form.action = url;
	form.submit();
}

function open_window(href,title)
{
	open_window(href,title,0,0,true);
}
function open_window(href,title,width,height,is_resisable)
{
	str='';
	if (width) str+='width='+width+',';
	if (height) str+='height='+height+',';
	if (is_resisable) str+='resizable=yes';
	window.open(href,title,str);
}

function hovertable_on_mouse_out(curtable,basic_class)
{
	for (i=0;i<curtable.rows.length;i++)
		curtable.rows[i].className = basic_class;
}
function redirect(url)
{
	location.href=url;
}
function hovertable_on_mouse_over(curtable)
{
	newclass=curtable.parentElement.parentElement.getAttribute('hover_class');
	curtable.className=newclass;
//	alert(newclass);
}
function set_visible(obj,visibility)
{
	obj.style.display = (visibility) ? 'block' : 'none';
}
function toggle_visibility(obj)
{
	obj.style.display = (obj.style.display!='none') ? 'none' : 'block';
}
function toggle_value(obj,value1,value2)
{
	obj.style.value = (obj.style.value!=value1) ? value1 : value2;
}
function get_obj_by_id(obj_id)
{
	return document.getElementById(obj_id);
}
function ShowForm(Form,FormNames,FormValues)
{
	for (i=0;i<FormNames.length;i++)
	{	
		if (/checkbox/.test(FormValues[i].toLowerCase())) 
		{
			Form.elements[FormNames[i]].checked=true;
		}
		Form.elements[FormNames[i]].value=FormValues[i];
	}
}

function Conf()
{
	return confirm('Είστε σίγουροι;');
}

function ConfRedir(href)
{
	if (Conf())
		redirect(href);
}