function check_all(form_name,tag_name)
{
	for(var i = 0; i < document.forms[form_name].elements[tag_name].length; i++)
	{
		document.forms[form_name].elements[tag_name][i].checked = true;
	}
}
function uncheck_all(form_name,tag_name)
{


	for(var i = 0; i < document.forms[form_name].elements[tag_name].length; i++)
	{
		document.forms[form_name].elements[tag_name][i].checked = false;
	}
}
function show_marked()
{
	var tmp = new Array();
	var j = 0;
	for(var i = 0; i < document.forms['form1'].elements['ID_SEMINAR'].length; i++)
	{
		if(document.forms['form1'].elements['ID_SEMINAR'][i].checked == true)
		{
			tmp[j] = document.forms['form1'].elements['ID_SEMINAR'][i].value;
			j++;
		}
	}
	document.form1.IDS.value = tmp;
	document.form1.submit();
}
function popupHelp(w,h,src)
{
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
	var win = window.open(src,'jemako','width='+w+',height='+h+',top='+t+',left='+l+',resizable=yes,scrollbars=yes');
}
function popupWindow(w,h,src)
{
	var l = (screen.width-w)/2;
	var t = (screen.height-h)/2;
	var win = window.open('','jemako','width='+w+',height='+h+',top='+t+',left='+l);
	win.document.writeln('<html><head><title>JEMAKO | SIMPLY CLEAN</title></head><body style="margin-top:0px;margin-left:0px;" onClick="self.close();">');
	win.document.writeln('<img src="'+src+'" width="'+w+'" height="'+h+'" alt="Click 2 close">');
	win.document.writeln('</body></html>');
}
function popupSeminar(id)
{
	var l = (screen.width-440)/2;
	var t = (screen.height-440)/2;
	var win = window.open('popupSeminar.php?ID='+id,'JEMAKO_SEMINAR','width=440,height=440,top='+t+',left='+l);
}
