

function open_window() {
		if (arguments.length==0){
			int_width = 400;
			int_height = 300;
			int_left = 0;
			int_top = 0;
		} else {
			int_width = arguments[0];
			int_height = arguments[1];
			int_left = arguments[2];
			int_top = arguments[3];
		}
		window.open("","image",'toolbar=0,location=0,scrollbars=1,width='+int_width+',height='+int_height+',resizable=1,left='+int_left+',top='+int_top);
}
		
function tag_a(){
	tag_a =  document.getElementsByTagName("a");
	str_web_name = location.hostname.substring(4,location.hostname.length);
	for (x=0; x<tag_a.length; x++){
		current_tag_a = tag_a[x].toString()
		if (current_tag_a.indexOf('http://')>-1){
			if (current_tag_a.indexOf(str_web_name)==-1){
				tag_a[x].target  = '_blank';
			}
		}
	}
}


function change_img(str_id,int_val){
	var tmp_img = document.getElementById(str_id);
	if (int_val == 0){
		tmp_img.src='images/'+str_id+'.gif';
	} else {
		tmp_img.src='images/'+str_id+'_a.gif';
	}
}
