function readOnlyForm(formName) {
	var el = document.forms[formName].elements;
	for(var i=0;i<el.length;i++){
		//el[i].setAttribute('disabled',true);
		el[i].setAttribute('readOnly',true);
	}
	document.forms[formName].submit.style.display='none';
	document.forms[formName].loading.style.display='inline';
}

function flash(url,w,h){
 document.writeln('<!--[if IE]>');
 document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">');
 document.writeln('<param name="movie" value="'+url+'">');
 document.writeln('<param name="quality" value="high">');
 document.writeln('<param name="menu" value="false">');
 document.writeln('<param name="wmode" value="transparent">');
 document.writeln('<\/object>');
 document.writeln('<![endif]-->');
 document.writeln('<!--[if !IE]> <!-->');
 document.writeln('<object type="application/x-shockwave-flash" data="'+url+'" width="'+w+'" height="'+h+'">');
 document.writeln('<param name="quality" value="high">');
 document.writeln('<param name="controller" value="false">');
 document.writeln('<param name="autoplay" value="true">');
 document.writeln('<param name="menu" value="false">');
 document.writeln('<param name="wmode" value="transparent">');
 document.writeln('alt : <a href="'+url+'">'+url+'<\/a>');
 document.writeln('<\/object>');
 document.writeln('<!--<![endif]-->');      
}

function showHide(div1, div2){
	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(div2).style.display = 'none';
		document.getElementById(div1).style.display = 'block';		
	} else {
		if (document.layers) { // Netscape 4
			document.div2.display = 'none';
			document.div1.display = 'block';
		} else { // IE 4
			document.all.div2.style.display = 'none';
			document.all.div1.style.display = 'block';
		}
	}
}


function show(div, model_choice){

	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(div).style.display = 'block';
		document.getElementById(model_choice).style.display = 'block';
	} else {
		if (document.layers) { // Netscape 4
			document.div.display = 'block';
			document.model_choice.display = 'block';			
		} else { // IE 4
			document.all.div.style.display = 'block';
			document.all.model_choice.style.display = 'block';			
		}
	}

}


function hide(div, model_choice){

	if (document.getElementById) { // DOM3 = IE5, NS6
		document.getElementById(div).style.display = 'none';
		document.getElementById(model_choice).style.display = 'none';		
	} else {
		if (document.layers) { // Netscape 4
			document.div.display = 'none';
			document.model_choice.display = 'none';
		} else { // IE 4
			document.all.div.style.display = 'none';
			document.all.model_choice.style.display = 'none';			
		}
	}

}
