
function get_segment(source,what) {
alert(location.pathname);
}
function changeSize(x,y) {
self.resizeTo(x,y);
}
function get_segment(source,what) {
var pathname=source;
var base=BASE_URL;
substring=pathname.substr(base.length);
segments=substring.split("/",4);
if (what=="TECH") { return segments[1]; }
if (what=="SEGMENT") { return segments[2]; }
if (what=="DM") { return segments[3]; }
}
function get_source_elements(source,what) {
var elements=source.split("-");
if (what=="ACTIVITY") { return elements[0]; }
if (what=="MEDIA") { return elements[1]; }
if (what=="CREATIVE") { return elements[4]; }
if (what=="FORMAT") { return elements[2];  }
if (what=="PLACEMENT") { return elements[3];  }
}
function PopUp(theURL,winName,features) {
popUpWindow = window.open(theURL,winName,features);
popUpWindow.focus();
}
function getccouserdetails() {
var script="http://www.cisco.com/cgi-bin/getccouserdetails.pl";
var thisquery=location.search;
var thisurl="http://"+location.hostname+location.pathname;
var where=script+thisquery+"&url="+thisurl;
location.href=where;
}

