function popit(sPicURL) { 
	window.open("js/popit.htm?"+sPicURL, "", "resizable=1,height=200,width=200");
}
function popup(url, w, h, s) {
	var popup;
	var name = Math.floor(Math.random()*10000+1);
	name = 'window' + name;
	var features = 'width='+w+',height='+h+',scrollbars='+s;
	popup = window.open(url, name, features);
	popup.focus();
}

function update_child( p_parent_option ) {
	
	// create new script element and set its relative URL (including ID argument)
	script = document.createElement( 'script' );
	script.src = 'external.php?parent_id=' + p_parent_option.value;
	
	// attach (load) script element to document head
	document.getElementsByTagName( 'head' )[0].appendChild( script );
}

	function move_in(img_name,img_src) {
	document[img_name].src=img_src;
	}

	function move_out(img_name,img_src) {
	document[img_name].src=img_src;
	}