function openInnerUrl(id,bpopup,url)
{
	if(bpopup==4) //ContactUs
	{
		window.open(url,"", "width=400,height=280,resizable=1,location=no");
		return false;
	}

	if(bpopup==5) //Recommend
	{
		window.open(url, '', 'resizable=1,width=680,height=550,location=no');
		return false;
	}

	if(bpopup==10) //SeminarPrint
	{
		window.open(url, '', 'resizable=yes,width=652,height=600,resizable=yes,location=no,scrollbars=yes');
		return false;
	}

	//////////////////////////// other
	if(bpopup==2)
	{
		window.open(url,"", "width=675,height=450,resizable=1,scrollbars=yes,toolbar=no,status=no,menubar=no");
		return false;
	}

	if(bpopup==3)
	{
		window.open(url,"", "width=675,height=450,resizable=1,scrollbars=yes,toolbar=no,status=no,menubar=no");
		return;
	}

	return true;
}


function EditHTML(url)
{
	window.open(url,"", "width=800,height=600,resizable=1,scrollbars=no,toolbar=no,status=no,menubar=no");
}

function EditHTMLList(url,width,height)
{
	window.open(url,"", "width="+width+",height="+height+",resizable=1,scrollbars=yes,toolbar=no,status=no,menubar=no");
}

function EditHTMLoverout(obj,bover)
{

	if(bover)
		obj.style.border = "2px solid blue";
	else
		obj.style.border = "";
}

function window_open(theUrl,theName,features)
{
	window.open(theUrl,theName,features);
}

function w_open(theUrl)
{
	window.open(theUrl);
}


<!--
// reset of the form
function formReset(formName)
{
	n = (document[formName].elements.length)-1;
	for(i=1;i<=n;i++)
	{
		document[formName].elements[i].value="";
	}
}
//-->

function SelectGroup(beginName, endName, select) {
    var k = 0;

    while (document.forms[0].elements[k].name != beginName) k++;
    k++;

    while (document.forms[0].elements[k].name != endName) {
        if (document.forms[0].elements[k].type.toLowerCase().indexOf("checkbox") == 0) {
            if (!select || !document.forms[0].elements[k].disabled)
                document.forms[0].elements[k].checked = select;
        }
        else if (!select && document.forms[0].elements[k].type.toLowerCase().indexOf("select") == 0) document.forms[0].elements[k].selectedIndex = 0;

        k++;
    }
}
