var document_anchor = "";
document_anchor = unescape(self.document.location.hash.substring(1));

var document_urlparameterarray = new Array();
var regex = /[\?&]([^=]+)=/g;
while( ( results = regex.exec( window.location.href ) ) != null ) {
	document_urlparameterarray.push( results[1] );
}

function urlparameterarray_get(var_name) {
	temp_name = var_name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
	var regexS = "[\\?&]"+temp_name+"=([^&#]*)";
	var regex = new RegExp(regexS);
	var results = regex.exec( window.location.href );
	if (results == null) {
		return "";
	} else {
		return results[1];
	}
}
