function edit_ab(place, mod_name, id){
	var url = 'index.php';
	var pars = 'mod=' + mod_name + '&do=edit&id=' +id;
	
	var myAjax = new Ajax.Updater(
		place, 
		url, 
		{
			method: 'get', 
			parameters: pars
		});
}

function openPopup(url, width, height, scrollbars, resizeable){
 window.open(url,'popup','width='+width+', height='+height+', scrollbars='+scrollbars+', resizeable='+resizeable+'')
}

function clearall(place){
	document.getElementById(place).innerHTML='&nbsp;';
}

function devices_form(){

	if(document.getElementById('vendor').value == 'other'){
		document.getElementById('vendor_row').innerHTML = '<input name="vendor" type="text" id="vendor">';
	}
	
}

function do_act(act, id){

	var url = 'property.php';
	var pars = 'do=' + act + '&id='+id;

	var myAjax = new Ajax.Updater(
		'property_place',
		url,
		{
			method: 'get',
			parameters: pars
		});
}


function jmpMenu(targ,selObj,restore){
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0; 
}

