var isNN = (navigator.appName.indexOf("Netscape")!=-1);

function focusNext(input,len, e)
{
var keyCode = (isNN) ? e.which : e.keyCode; 
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
if(input.value.length >= len && !cPres(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIdx(input)+1) % input.form.length].focus();
}

function cPres(arr, ele)
{
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
}

function getIdx(input)
{
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form[i] == input)index = i;
else i++;
return index;
}
return true;
}

function supressError() 
{
    return true;
}

function loadClose(url) 
{
	if ( opener != null )
	{
		window.onerror = supressError;
		opener.location.href = url;
		setTimeout("self.close()",200);
	}
}

function goToURL() { 
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function closeWin() 
{
    window.onerror = supressError;
    self.close();
}

function openInfoWindow(url,infoName,features) 
{
	//alert(url);
	window.open(url,infoName,features);
}

function controlJump(loc) 
{
	//alert(loc);
	window.location.href = loc;
}

function scrollReturn(previousLocation) 
{
	var pos = 0;
	if (previousLocation != null && previousLocation != '') 
	{ 
		pos = previousLocation; 
	}
	theBody.scrollTop = pos;
}

function setFocusStart(objName) {
	setTimeout("setFocusObject('"+objName+"')",300);
}

function setFocusObject(objName) {
    findElement(objName).focus();
}

function wl_swapImgRestore() 
{ 
	var i,x,a=document.wl_sr; 
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) 
	{
		x.src=x.oSrc;
	}
}

function wl_changeProp(objName,theProp,theValue) 
{ 
	var obj = findElement(objName);
	if (obj && (theProp.indexOf("style.")==-1 || obj.style))
	{
		if (theValue == true || theValue == false)
		{
			eval("obj."+theProp+"="+theValue);
		}
		else
		{
			eval("obj."+theProp+"='"+theValue+"'");
		}
	}
}

function wl_swapImage() 
{ 
	var i, j=0, x, a=wl_swapImage.arguments; 
	document.wl_sr = new Array(); 
	for(i=0; i< (a.length-2) ; i+=3)
	{
		if ((x=wl_findImages(a[i]))!=null)
		{
			document.wl_sr[j++]=x; 
			if(!x.oSrc) 
			{
				x.oSrc=x.src;
			} 
			x.src=a[i+2];
		}
	}
}

function wl_findImages(n, d)
{ 
	var p,i,x;  
	if(!d)
	{
		d = document;
	}
	if((p = n.indexOf("?")) > 0 && parent.frames.length) 
	{
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring(0,p);
	}
	if(!(x = d[n]) && d.all)
	{
		x = d.all[n];
	}
	for (i = 0; !x && i < d.forms.length; i++)
	{
		x = d.forms[i][n];
	}
	for(i = 0; !x && d.layers && i<d.layers.length; i++) 
	{
		x = findImages(n, d.layers[i].document);
	}
	if(!x && d.getElementById) 
	{
		x = d.getElementById(n); 
	}
	return x;
}

function submitForm(name, url)
{ 
	var formElement = findElement(name);
	formElement.action = url;
	formElement.submit();
	//alert(formElement.action);
}

function submitTalentRegistration(name, querystring)
{ 
	//alert("submitTalentRegistration start");
	var resumeFileControl = findElement('ResumeFile');
	if ( querystring != null && querystring.indexOf('mode=final') == -1 
		&& (resumeFileControl.value != null || resumeFileControl.value != '') )
	{
		resumeFileControl.disabled = true;
	}
	submitAppendQueryString(name, querystring);
	resumeFileControl.disabled = false;
	//alert("submitTalentRegistration end");
}

function submitAppendQueryString(name, querystring)
{ 
	//alert("submitAppendQueryString start");
	var formElement = findElement(name);
	if ( querystring != null && querystring != '' )
	{
		formElement.action = formElement.action + querystring;
	}
	//alert(formElement.action);
	formElement.submit();
	//alert("submitAppendQueryString end");
}
function toSleep(zzz)
{
	var past,present;
	past=new Date().getTime();
	present=past;
	while((present-past)<zzz)
	{
	present=new Date().getTime();
	}
}
function checkAll(checks, controlName) 
{
	var elements = document.getElementsByTagName("input");
	if( elements != null )
	{
		for (var i = 0; i < elements.length; i++) 
		{
			if (elements[i].name.indexOf(controlName) != -1)
			{
				elements[i].checked = checks;
			}
		} 
    }
}

function addKeywords(controlName, skill)
{
	var control = findElement(controlName);
	if (skill.indexOf(' ') != -1) 
	{
		skill = "\"" + skill + "\"" ;
	} 
	if (control.value.indexOf(skill) == -1)
	{
		if ( control.value.length != 0 )
		{
			control.value += " ";
		}
		control.value +=  skill;
	}
}

function cancelLink () 
{
	return false;
}

function disableLink (link) 
{
	if (link.onclick)
	{
		link.oldOnClick = link.onclick;
	}
	link.onclick = cancelLink;
	link.id = "linkOFF";
	if (link.style)
	{
		link.style.cursor = "default";
	}
}

function popState(countryControlName, stateControlName) 
{ 
	//alert("popState start");
	var countryControl = findElement(countryControlName);
	var stateControl = findElement(stateControlName);
	if (countryControl != null && stateControl != null)
	{
		stateControl.disabled = (countryControl.options != null && countryControl.options[0].selected == true);
		if (stateControl.disabled) 
  		{		
			wl_changeProp('StateLabel', 'style.color', '#AAAAAA');
		}
		else
		{
			wl_changeProp('StateLabel', 'style.color', '#000000');
		}
	}
	//alert("popState end");
}

function findRadioGroup(fieldName)
{
	//alert("findRadioGroup start");
	var radioGroup = new Array();
	if (fieldName != null)
	{
		var elements = document.getElementsByName(fieldName);
		//alert("elements:" + elements.length);
		if( elements != null )
		{
			for (i = 0; i < elements.length; i++) 
			{
				//alert("element[" + i + "]:" + elements.item(i).id);
				radioGroup.push(elements.item(i));
			}
		}
	}
	return radioGroup;
	//alert("findRadioGroup end");
}

function getShowCompensationType(employmentTypeSelectControl, showCompensationTypeControlName)
{
	var compensationType = null;
	if (employmentTypeSelectControl != null)
	{
		var showCompensationSelectControl = findElement(showCompensationTypeControlName);
		//alert(showCompensationSelectControl);
		if (showCompensationSelectControl != null)
		{
			var selectedValue = employmentTypeSelectControl[employmentTypeSelectControl.selectedIndex].value;
			//alert(selectedValue);
			if (selectedValue != null)
			{
				for(i = 0; i < showCompensationSelectControl.length; i++) 
				{  
					if ( showCompensationSelectControl[i].value == selectedValue )
					{
						compensationType = showCompensationSelectControl[i].text;
						//alert(compensationType);
						break;
					}
				}
			}
		}
	}
	return compensationType;
}

function setControlDisabled(control, disabled)
{
	if (control != null)
	{
		control.disabled = disabled;
	}
}

// Enable/disable maxRate elements and maxSalary elements according to the selection in 
// the typeControl.
function updateRateControls(typeControlName, showCompensationTypeControlName, 
		rateLabelName, minRateControlName, maxRateControlName, salaryLabelName, minSalaryControlName, maxSalaryControlName) 
{ 
	//alert("popEmploymentTypeNewJobOrder");
	var empTypeControl = findElement(typeControlName);	
	if ( empTypeControl != null )
	{		
		var rateLabel = findElement(rateLabelName);		
		var maxRateControl = findElement(maxRateControlName);
		var minRateControl = findElement(minRateControlName);		
		var salaryLabel = findElement(salaryLabelName);		
		var maxSalaryControl = findElement(maxSalaryControlName);	
		var minSalaryControl = findElement(minSalaryControlName);				
		var showCompensationType = getShowCompensationType(empTypeControl, showCompensationTypeControlName);					
		switch(showCompensationType)
		{ 
			case 'S': 				
				setControlDisabled(rateLabel, true);		
				setControlDisabled(minRateControl, true);			
				setControlDisabled(maxRateControl, true);
				minRateControl.value = '';
				maxRateControl.value = '';
				setControlDisabled(salaryLabel, false);
				setControlDisabled(minSalaryControl, false);
				setControlDisabled(maxSalaryControl, false);				
				break; 
			case 'R':			
				setControlDisabled(rateLabel, false);		
				setControlDisabled(minRateControl, false);			
				setControlDisabled(maxRateControl, false);
				setControlDisabled(salaryLabel, true);
				setControlDisabled(minSalaryControl, true);
				setControlDisabled(maxSalaryControl, true);
				minSalaryControl.value = '';
				maxSalaryControl.value = '';					  
				break; 
			case 'B':				
				setControlDisabled(rateLabel, false);		
				setControlDisabled(minRateControl, false);			
				setControlDisabled(maxRateControl, false);
				setControlDisabled(salaryLabel, false);
				setControlDisabled(minSalaryControl, false);
				setControlDisabled(maxSalaryControl, false);
				break;				
			default :
				setControlDisabled(rateLabel, true);		
				setControlDisabled(minRateControl, true);			
				setControlDisabled(maxRateControl, true);
				setControlDisabled(salaryLabel, true);
				setControlDisabled(minSalaryControl, true);
				setControlDisabled(maxSalaryControl, true);
				break;				
		}						
	}
}

function popEmploymentType(typeControlName, minRateControlName, maxRateControlName, minSalControlName, maxSalControlName) 
{ 
	//alert("popEmploymentType");
	var empTypeControl = findRadioGroup(typeControlName);
	//alert(empTypeControl.length);
	if ( empTypeControl != null )
	{
		var minRateControl = findElement(minRateControlName);
		var maxRateControl = findElement(maxRateControlName);
		var minSalaryControl = findElement(minSalControlName);
		var maxSalaryControl = findElement(maxSalControlName);
		if ( minRateControl != null && maxRateControl != null 
			&& minSalaryControl != null && maxSalaryControl != null )
		{
			var rateDisabled = true;
			var salaryDisabled = true;
			var style1 = '#DDDDDD';
			var style2 = '#DDDDDD';
			var val = '';
			for(var i = 0; i < empTypeControl.length; i++) 
			{  
				if ( empTypeControl[i].checked )
				{
					val = empTypeControl[i].value;
					break;
				}
			}
			switch(val)
			{ 
				case 'Perm': 
					salaryDisabled = false;
					style2 = '#000000';     
					break; 
				case 'Temp':
					rateDisabled = false; 
					style1 = '#000000';     
					break; 
				case 'Any':
					rateDisabled = false;
					salaryDisabled = rateDisabled;
					style1 = '#000000'; 
					style2 = style1;     
					break;
			}
			setControlDisabled(minRateControl, rateDisabled);
			setControlDisabled(maxRateControl, rateDisabled);
			setControlDisabled(minSalaryControl, salaryDisabled);
			setControlDisabled(maxSalaryControl, salaryDisabled);
			wl_changeProp('hourlyPayA','style.color',style1);
			wl_changeProp('hourlyPayB','style.color',style1);
			wl_changeProp('hourlyPayC','style.color',style1);
			wl_changeProp('salaryRangeA','style.color',style2);
			wl_changeProp('salaryRangeB','style.color',style2);
			wl_changeProp('salaryRangeC','style.color',style2);
		}
	}
}

function setPageStateForMessageDisplay()
{
	document.body.scroll = "no";
	var selectElements = document.getElementsByTagName("select");
	for(var i = 0; i < selectElements.length; i++)
	{
		selectElements[i].style.visibility = "hidden";
	}
}	

function addKeyHandler()
{
    //alert("addKeyHandler");
	var jumpPageTopControl = findElement('JumpPageTop');
	if (jumpPageTopControl != null && jumpPageTopControl.onkeypress == null)
	{
		jumpPageTopControl.onkeypress = keyHandlerTop;
	}
	var jumpPageBottomControl = findElement('JumpPageBottom');
	if (jumpPageBottomControl != null && jumpPageBottomControl.onkeypress == null)
	{
		jumpPageBottomControl.onkeypress = keyHandlerBottom;
	}
}

function keyHandlerTop(e) 
{
    //alert("keyHandlerTop");
	keyHandler(e, findElement('JumpPageTop'), findElement('JumpPageBottom'));
}

function keyHandlerBottom(e) 
{
    //alert("keyHandlerBottom");
	keyHandler(e, findElement('JumpPageBottom'), findElement('JumpPageTop'));
}

function keyHandler(e, eventControl, valueControl) 
{
    //alert("Key pressed!");
    var key = 0;
    if (document.layers)
    {
        key = e.which;
    }
    else
    {
        key = window.event.keyCode;
    }
    //alert("Key pressed! ASCII-value: " + Key);
    if (key == 13 && (eventControl.value != valueControl.value))
    {
		//alert("eventControl: " + eventControl.value);
		//alert("valueControl: " + valueControl.value);
		getPage(eventControl.value);
    }
}

function getPage(controlValue)
{
    //alert("location: " + "get&" + document.forms[0].CriteriaName.value + ".PageNumber=" + controlValue);
	submitAppendQueryString(0, "get&" + findElement('CriteriaName').value + ".PageNumber=" + controlValue);
}

function navFilter(pracKey,catKey,subKey)
{
	//alert("pracKey: '" + pracKey + "'\ncatKey: '" + catKey + "'\nsubKey: '" + subKey + "'");
	var subCatControl = findElement("SkillsFilterCriteria.SubCategory");
	if ( subKey != '' )
	{
		subCatControl.value = subKey; 
	}
	else
	{
		subCatControl.value = '';
		var catControl = findElement("SkillsFilterCriteria.Category");
		if ( catKey != '' )
		{
			catControl.value = catKey;
		}
		else
		{
			catControl.value = '';
			var pracControl = findElement("SkillsFilterCriteria.Practice");
			if ( pracKey != '' )
			{
				pracControl.value = pracKey; 
			}
			else
			{
				pracControl.value = '';
			}
		}
	}
	//alert("SkillsFilterCriteria.Practice Value: " + pracControl.value 
	//	+ "\nSkillsFilterCriteria.Practice Category: " + catControl.value 
	//	+ "\nSkillsFilterCriteria.Practice SubCategory: " + subCatControl.value);
	submitAppendQueryString(0, '');
}

function skillFilter(pracKey,catKey,subKey)
{
	//alert("pracKey: '" + pracKey + "'\ncatKey: '" + catKey + "'\nsubKey: '" + subKey + "'");
	findElement("SkillsFilterCriteria.SubCategory").value = subKey;
	findElement("SkillsFilterCriteria.Category").value = catKey;
	findElement("SkillsFilterCriteria.Practice").value = pracKey; 
	//alert("SkillsFilterCriteria.Practice Value: " + pracControl.value 
	//	+ "\nSkillsFilterCriteria.Practice Category: " + catControl.value 
	//	+ "\nSkillsFilterCriteria.Practice SubCategory: " + subCatControl.value);
	submitAppendQueryString(0, '');
}

function catFilter(key)
{
	//alert("catFilter");
	var control = findElement("SkillsFilterCriteria.Practice");
	if (control.value != null && control.value != '')
	{
		control = findElement("SkillsFilterCriteria.Category");
		if (control.value != null && control.value != '')
		{
			control = findElement("SkillsFilterCriteria.SubCategory");
		}
	}
	control.value = key;
	//alert("Control Name: " + control.id + "\nControl Value: " + control.value);
	submitAppendQueryString(0, '');
}

function doListSelection(controlName) 
{
	//alert("doListSelection start");
	var hiddenControl = findElement(controlName);
	//alert("selectedOptions.length:" + selectedOptions.length);
	var checkboxes = document.getElementsByTagName("input");
	//alert("checkboxes.length:" + checkboxes.length);
	for (var i = 0; i < hiddenControl.options.length; i++) 
	{
		//alert("selectedOptions[" + i + "]=" + selectedOptions[i]);
		for (var j = 0; j < checkboxes.length; j++) 
		{
			//alert(checkboxes[j].id + ":" + checkboxes[j].value + "=" + selectedOptions[i]);
			if (checkboxes[i].type == "checkbox" && checkboxes[j].value == hiddenControl.options[i].value)
			{
				checkboxes[j].checked = true;
				break;
			}
		}
	}
	//alert("doListSelection end");
}

function doListSave(controlName) 
{
	//alert("doSave start");
	var hiddenSelectControl = findElement(controlName);
	//alert("control : " + hiddenControl.id);
	for (var j = hiddenSelectControl.options.length - 1; j > -1; j--) 
	{
		if ( hiddenSelectControl.options[j].value != null && hiddenSelectControl.options[j].value != '' )
		{
			hiddenSelectControl.remove(j);
		}
	}
	var textValues = new Array();
	var checkboxes = document.getElementsByTagName("input");
	for (var i = 0; i < checkboxes.length; i++) 
	{
		//alert(document.forms[0].elements[i].id + ":" + document.forms[0].elements[i].value);
		if (checkboxes[i].type == "checkbox" && checkboxes[i].checked)
		{
			var text = checkboxes[i].nextSibling.nodeValue;
			var item = new Array();
			item[0] = text;
			item[1] = checkboxes[i].value;
			textValues.push(item);
		}
	}
	textValues.sort(doCompare);
	opener.addListItem(hiddenSelectControl, textValues);
	eval(findElement(controlName + 'WriteMethod').value + '(\'' + controlName + '\')');
	//alert("doSave end");
}

function doCompare(a, b)
{
	var first = a[0].toLowerCase();
	var second = b[0].toLowerCase();
	if ( first > second )
	{
		return 1;
	}
	else if ( first < second  )
	{
		return -1;
	}
	else
	{
		return 0;
	}
}

function addListItem(control, textValues) 
{
	for (var i = 0; i < textValues.length; i++) 
	{
		var oOption = document.createElement("OPTION");
		control.options.add(oOption);
		oOption.innerText = textValues[i][0];
		oOption.text = textValues[i][0];
		oOption.value = textValues[i][1];
		oOption.selected = 'selected';
	}
}

function removeListItem(controlName, index) 
{
	//alert("removeListItem start");
	var hiddenControl = findElement(controlName);
	hiddenControl.remove(index);
	eval(findElement(controlName + 'WriteMethod').value + '(\'' + controlName + '\')');
	//alert("removeListItem end");
}

function writeTableV(controlName)
{
	//alert("writeTableV start");
	var hiddenControl = findElement(controlName);
	//alert("hiddenControl:" +  hiddenControl);
	var itemsExist = hiddenControl.options.length > 1;
	//alert("hiddenControl.options.length:" +  hiddenControl.options.length);
	var html = '';
	if ( itemsExist )
	{
		for (var i = 0; i < hiddenControl.options.length; i++) 
		{
			if ( hiddenControl.options[i].value != null && hiddenControl.options[i].value != '' )
			{
				html += '<table width="' + findElement(controlName + 'TableWidth').value + '" border="0" cellpadding="0" cellspacing="0">';
				html += '<tr><td width="' + findElement(controlName + 'TableDataWidth').value;
				html += '" height="26" align="right" valign="middle" class="listSM"><a href="javascript:removeListItem(\'';
				html += controlName + '\',' + i + ');"><img src="img/WP_X.gif" alt="remove" width="18" height="18" border="0"></a></td>';
				html += '<td valign="middle" class="listSM">' + hiddenControl.options[i].text + '</td>';
				html += '</tr></table>';
			}
		}
	}
	else
	{
		html += '<table width="' + findElement(controlName + 'TableWidth').value +'" border="0" cellpadding="0" cellspacing="0">';
		html += '<tr><td width="' + findElement(controlName + 'TableDataWidth').value + '" height="26">&nbsp;</td><td valign="middle" class="listSM"><i>' + findElement(controlName + 'EmptyText').value + '.</i></td></tr></table>';
	}
	hiddenControl.options[0].selected = (!itemsExist) ? 'selected' : null;
	//alert("html:" +  html);
	var tableDiv = findElement(findElement(controlName + 'TableDiv').value);
	//alert("tableDiv:" +  tableDiv.id);
	//alert("innerHTML:" +  tableDiv.innerHTML);
	tableDiv.innerHTML = html;
	//alert("writeTableV end");
}

function writeTableH(controlName)
{
	//alert("writeTableH start");
	var hiddenControl = findElement(controlName);
	//alert("hiddenControl:" +  hiddenControl);
	var itemsExist = hiddenControl.options.length > 1;
	//alert("hiddenControl.options.length:" +  hiddenControl.options.length);
	var html = '';
	if ( itemsExist )
	{
		html += '<table width="' + findElement(controlName + 'TableWidth').value + '" border="0" cellpadding="0" cellspacing="0"><tr><td height="28" class="listLine">';
		for (var i = 0; i < hiddenControl.options.length; i++) 
		{
			if ( i > 1 )
			{
				html += ',&nbsp;';
			}
			if ( hiddenControl.options[i].value != null && hiddenControl.options[i].value != '' )
			{
				html += hiddenControl.options[i].text;
			}
		}
		html += '</td></tr></table>';
	}
	hiddenControl.options[0].selected = (!itemsExist) ? 'selected' : null;
	//alert("html:" +  html);
	var tableDiv = findElement(findElement(controlName + 'TableDiv').value);
	//alert("tableDiv:" +  tableDiv.id);
	//alert("innerHTML:" +  tableDiv.innerHTML);
	tableDiv.innerHTML = html;
	//alert("writeTableH end");
}

function setTotal(rows, isDaily, scale)
{	if (isDaily)
	{
		for (var i = 0; i < rows; i++) 
		{
			setRowTotal(i, scale);
		}
		setColumnTotal("One", scale);
		setColumnTotal("Two", scale);
		setColumnTotal("Three", scale);
		setColumnTotal("Four", scale);
		setColumnTotal("Five", scale);
		setColumnTotal("Six", scale);
		setColumnTotal("Seven", scale);
		setAllTotal("WeekHours", scale);
	}
	else
	{
		setAllTotal("WeekHours", scale);
	}
}

function setAllTotal(elementName, scale)
{
	var totalElement = findElement("totalHoursAll");
	if ( totalElement != null )
	{
		totalElement.value = getTotal(elementName, -1);
		formatValue(totalElement, scale);
	}
}

function setRowTotal(index, scale)
{
	var weekTotalElement = findElement("CalcWeekHours:" + index);
	if ( weekTotalElement != null )
	{
		weekTotalElement.value = getTotal("Entry.Day", index);
		formatValue(weekTotalElement, scale);
	}
}

function setColumnTotal(elementName, scale)
{
	var columnTotalElement = findElement("CalcColumn" + elementName + "Hours");
	if ( columnTotalElement != null )
	{
		columnTotalElement.value = getTotal("Entry.Day" + elementName, -1);
		formatValue(columnTotalElement, scale);
	}
}

function formatValue(element, scale)
{
	if ( element != null && element.value != null && element.value != '' )
	{
		var exp = Math.pow(10, scale);
		element.value = Math.round(element.value * exp) / exp;
	}
}

function getTotal(elementName, index) 
{
	var total = 0;
	var elements = document.getElementsByTagName("input");
	if ( elements != null && elements.length > 0 )
	{
		for (var i = 0; i < elements.length; i++) 
		{
			var element = elements.item(i);
			if ( element.name.indexOf(elementName) != -1 && ( index== -1 || (index > -1 && element.name.indexOf(index) != -1) )
				&& element.value != null && element.value != '' )
			{
				total += parseFloat(element.value);
			}
		} 
    }
    return (total < 1) ? '' : total;
}

function setTimesheetReadOnly()
{
	var elements = document.getElementsByTagName("input");
	if ( elements != null && elements.length > 0 )
	{
		for (var i = 0; i < elements.length; i++) 
		{
			var element = elements.item(i);
			element.readOnly = true;
		} 
    }
}

function findElement(elementId)
{
	//alert("findElement start");
	//alert("elementId : " + elementId);
	var divElement = document.getElementById(elementId);
	if (divElement == null && opener != null)
	{
		divElement = opener.document.getElementById(elementId);
	}
	//alert("divElement : " + divElement);
	return divElement;
	//alert("findElement end");
}

function sessionTimeout(url)
{
	var theWindow = window;
	while ( theWindow.opener != null )
	{
		theWindow = theWindow.opener;
		closeWin();
	}
	theWindow.location.href = url;
}

function refreshList(url)
{
opener.location.href = url;
}



