function randomHash(str_length, type) {
	var big = "QWERTYUIOPASDFGHJKLZXCVBNM";
	var small = "qwertyuiopasdfghjklzxcvbnm";
	var digits = "12345678901234567890";
	type = typeof(type) != 'undefined' ? type : "b,s";
	type = type.split(",");
	var chars = "";
	for(var i=0;i<type.length;i++){
		if(type[i]=="b")
			chars += big;
		if(type[i]=="s")
			chars += small;
		if(type[i]=="d")
			chars += digits;	
	}
	var output = "";
	for(var i=0;i<str_length;i++){
		var pos = Math.floor(Math.random()*chars.length);
		output += chars.charAt(pos);
	}
	return output;
}
var is_IE = false;
if(typeof(document.all)=="object"){
	is_IE = true;
}
function replaceOuterLinks() {
	var anchor = document.getElementsByTagName("a");
	for(i=0;i<anchor.length;i++){
		if(anchor[i].rel=="outerlink"){
			href = anchor[i].href;
			anchor[i].rel = href;
			anchor[i].href = "#";
			anchor[i].onclick = function(e){
				window.open(this.rel);	
			}
		}
	}
}

function rewriteFlash(object_id){
	var object_var = document.getElementById(object_id);
	if(typeof(object_var)=="object"){
		object_var.innerHTML = object_var.innerHTML;
		return true; 
	}else{
		return false;
	}
}
