// confirm address 
function getit(ip_, info_, status_, form_) { 
	document.forms[form_].elements['ip'].value=ip_
	document.forms[form_].elements['info'].value=info_
	document.forms[form_].elements['status'].value=status_
} 
// editControl works with ListTag
function editList(ctrl_name, ctrl_action, ctrl_value, frm) 
{
	document.forms[frm].elements[ctrl_name+'_action'].value=ctrl_action;
	if (ctrl_value > 0) {
		document.forms[frm].elements[ctrl_name].value=ctrl_value;
	}
	document.forms[frm].action.value=12;
	document.forms[frm].submit();
}
// editImage works with ImageTag
function editImage(img_name, img_size, img_folder, frm) 
{
	document.forms[frm].action.value=12;
	document.forms[frm].form.value=frm;
	document.forms[frm].elements['image_name'].value=img_name;
	document.forms[frm].elements['image_size'].value=img_size;
	document.forms[frm].elements['image_folder'].value=img_folder;
	document.forms[frm].submit();
}

function showImage(img_path, title, w, h) 
{
	var def ='width='+w+',height='+h;
    def = def + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes';
    var newWin=window.open(img_path,'hi', def);
    newWin.focus(); 
}

function open_new_win(new_url, title, x, y, w, h) 
{
	if (new_url.indexOf(":") == 0) new_url = 'http'+ new_url;
	var def = 'left='+x+',top='+y+',width='+w+',height='+h; // left, top only IE4+
    def = def + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=yes';
    var newWin = window.open(new_url, 'hi', def);
   	//newWin.moveTo(x,y); // only NS3+
 }

function act2(type, frm, elm1, val1, elm2, val2) {
	document.forms[frm].action.value=type;
	document.forms[frm].form.value=frm;
	document.forms[frm].elements[elm1].value=val1;
	document.forms[frm].elements[elm2].value=val2;
	document.forms[frm].submit();
}
function act1(type, frm, elm, val) {
	document.forms[frm].action.value=type;
	document.forms[frm].form.value=frm;
	document.forms[frm].elements[elm].value=val;
	document.forms[frm].submit();
}
function act(type, frm) {
	document.forms[frm].action.value=type;
	document.forms[frm].form.value=frm;
	document.forms[frm].submit();
}
function help(view, name, text, refr, ww, hh) {
	var def ='width='+ww+',height='+hh;
    def = def + ',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no,resizable=yes';
    var newWin=window.open("/utlHelp.jsp?view="+view+"&name="+name+"&text="+text+"&refr="+refr,'help', def);
    newWin.focus();
}
function test(text) {
	alert(text);
}
