if (document.images) {
	tabDefault = new Image();
	tabDefault.src = "files/segment_tab.gif";
	tabOn = new Image();
	tabOn.src = "files/segment_tab_over.gif";
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	}
}

function viewContact(url) {
	window.open(url,'viewContact','scrollbars=1, width=500, height=350'); 
}

function viewRMs(url) {
	window.open(url,'viewContact','scrollbars=1, resizable=1, width=500, height=350'); 
}

function viewDefinition(url) {
	window.open(url,'viewDefinition','scrollbars=1, width=550, height=180'); 
}

function changeme(ticker,name) {
var a = new Image();
a.src="http://webapi.mworld.com/webapi/WebApi.asp?id=pub&v=wbcom&action=gsg&lb=f1f1e7&bc=000000&s1="+ticker+"&s2=&hl=1&l1="+name+"&vl=3&sc1=000066&sc2=009933&sc3=FF6600&freq=i&p=0&ns=1&st1=1&w=186&h=130"
document['widgetgrp'].src=a.src;
}

function changeme2(ticker) {
var a = new Image();
a.src="http://www.mworld.com/asp/mw.asp?lp=GetGIF&Image="+ticker
document['widgetgrp'].src=a.src;
}

function getdialogboxRJP() { 
var msg = "\nYou are leaving the application process for this position.\n\n" +
	  "Please click OK if you would like to begin a new job search.\n\n" +
	  "Please note that in order to be considered for this position\n" + 
	  "you must click Cancel to complete the Realistic Job Preview.\n";
	if (confirm(msg))
		location.replace("https://careers.wachovia.com/Careers/cc/CCJobSearchAction.ss?command=CCSearchPage");
}