function popWin(url,name,features)
{
 	var the_win;
	the_win = window.open(url,name,features);
  	the_win.focus();
}
function getArgs() {
	var args = new Object();
	var query = location.search.substring(1); // Get Query String
	var pairs = query.split("&"); // Split query at the comma
	// Begin loop through the querystring
	for(var i = 0; i < pairs.length; i++) {
		var pos = pairs[i].indexOf('='); // Look for "name=value"
		if (pos == -1) continue; // if not found, skip to next
		var argname = pairs[i].substring(0,pos); // Extract the name
		var value = pairs[i].substring(pos+1); // Extract the value
		args[argname] = unescape(value); // Store as a property
	}
	return args; // Return the Object
}


fullurl = document.URL;
//split the url into an array of strings using "/" as the delimiter
arrurl = fullurl.split("/");
file = arrurl[3];