function flashwrite(str){
	document.write(str);
}

function flashChange(id,content){
	id.innerHTML = content;
	scroller  = new jsScroller(document.getElementById("Scroller"), 400, 253);
	scrollbar = new jsScrollbar (document.getElementById("Scrollbar-Container"), scroller, false);
}

function hrefChange(id,content){
	id.setAttribute("href",content);
}

function valueChange(id,content){
	id.setAttribute("value",content);
}

function onSubmit(event){
	document.form.default_event.value = event ;
	document.form.submit();
	return false;
}

function set_clipboard(){
	var ua = navigator.userAgent.toLowerCase(); 
	var is_ie  = ( (ua.indexOf('msie') != -1 ) && ( ua.indexOf('win') != -1 ) && ( ua.indexOf('opera') == -1 ) && ( ua.indexOf('webtv') == -1 ) );
	if (is_ie) {
		copytext = document.form2.copy.createTextRange();
		copytext.execCommand("Copy");
	}else{
		document.getElementById('copy').innerHTML = "";
		var swf = "<embed src='swf/copy.swf' FlashVars='code="+encodeURIComponent(document.form2.copy.value)+"' width='0' height='0' type='application/x-shockwave-flash'></embed>";
		document.getElementById('copy').innerHTML = swf;
	}
}
