function CopyFormObjValue(form_name, paramname_to, paramname_from, submitflag, ask)
{
	isconfirmed = 0;
	if (typeof(ask) != 'undefined') {
	   if (confirm(ask)) isconfirmed = 1;
	   else isconfirmed = 2;
	}
        if (isconfirmed==0 || isconfirmed==1) {
		value_from = document.forms[form_name].elements[paramname_from].getAttribute(attrname);
		document.forms[form_name].elements[paramname_to].setAttribute(attrname, value_from);
		if (submitflag==true) document.forms[form_name].submit();
	}
}

function ChangeFormObjectValue(form_name, paramname, attrname, value_, submitflag, ask)
{
	isconfirmed = 0;
	if (typeof(ask) != 'undefined') {
	   if (confirm(ask)) isconfirmed = 1;
	   else isconfirmed = 2;
	}
	if (isconfirmed==0 || isconfirmed==1) {
		document.forms[form_name].elements[paramname].setAttribute(attrname, value_);
		if (submitflag==true) document.forms[form_name].submit();
	}
}

function CopyFormObjectValueTo(form_name_to, paramname_to, form_name_from, paramname_from, attrname, submitflag, ask)
{
	isconfirmed = 0;
	if (typeof(ask) != 'undefined') {
	   if (confirm(ask)) isconfirmed = 1;
	   else isconfirmed = 2;
	}
        if (isconfirmed==0 || isconfirmed==1) {
		value_from = document.forms[form_name_from].elements[paramname_from].getAttribute(attrname);
		document.forms[form_name_to].elements[paramname_to].setAttribute(attrname, value_from);
		if (submitflag==true) document.forms[form_name_to].submit();
	}
}


function CopyObjectValueTo(paramname_to, paramname_from, attrname, ask)
{
	isconfirmed = 0;
	if (typeof(ask) != 'undefined') {
	   if (confirm(ask)) isconfirmed = 1;
	   else isconfirmed = 2;
	}
        if (isconfirmed==0 || isconfirmed==1) {
		obj_from = document.getElementById(paramname_from);
		obj_to = document.getElementById(paramname_to);
		obj_to.setAttribute(attrname, obj_from.getAttribute(attrname));
	}
}

function ChangeObjectValue(paramname, attrname, value_, ask)
{
	isconfirmed = 0;
	if (typeof(ask) != 'undefined') {
	   if (confirm(ask)) isconfirmed = 1;
	   else isconfirmed = 2;
	}
	if (isconfirmed==0 || isconfirmed==1) {
		obj_ = document.getElementById(paramname);
		obj_.setAttribute(attrname, value_);
	}
}

