// JavaScript Document

						



function Chechboxchange(title,status,row_count)

{



if (status ==false) {disabledstatus =true;backgroundstatus="rgb(210, 210, 210)";}

else {disabledstatus =false;backgroundstatus="rgb(255, 255, 255)";}



for (var i=0; i<row_count; i++)

	{

	document.getElementById(title+"["+i+"]").style.background=backgroundstatus;

	document.getElementById(title+"["+i+"]").readOnly = disabledstatus;	

	}	

}





function CheckboxStartup(chboxname,title,mEnabled,row_count)

{

	if (mEnabled=="0")  {enstatus = false; }

	else {enstatus = true;document.getElementById(chboxname).checked=true;}

	

Chechboxchange(title,enstatus,row_count);

}





function fnNationalDestinationPoint() {



	var obj = getEvent();



	var indx = obj.target.alt;



	var _DestinationCountry = document.getElementById('depCountry');



	createPopup("popup/test.php?f=roadpoints&addfunct=1&id="+_DestinationCountry.value,'Filter', 330, 540, NationalJunction[indx]);



}







function fnInternationalCountry() {



	var obj = getEvent();



	var indx = obj.target.alt;



	//createPopup('popup/test.php?f=countries', 'Filter', 330, 540, InternationalJunctions[0]);



	createPopup("popup/test.php?f=countries", "Filter", 330, 540, InternationalCountries[indx]);



}







function fnInternationalPoint() {



	var obj = getEvent();



	var indx = obj.target.alt;



	var _DestinationCountry = document.getElementById('irt_destCountry['+indx+']');





	//InternationalPoints



	createPopup("popup/test.php?f=roadpoints&addfunct=1&id="+_DestinationCountry.value, 'Filter', 330, 540, InternationalPoints[indx]);



	//<a href="javascript:createPopup('popup/test.php?f=roadpoints&id='+InternationalJunctionPoint[0].country.value, 'Filter', 330, 540, InternationalJunctionPoint[0]);"><img src="images/hand.gif" alt="" border="0"></a>



}











var NationalJunctions = new Array();



var NationalJunctionPoints = document.getElementsByName('nrt_desPoint[0]');



var NationalJunctionPointNames = document.getElementsByName('nrt_desPointName[0]');



var NationalJunctionZip = document.getElementsByName('nrt_zip[0]');







var InternationalJunctions = new Array();



var InternationalJunctionCountries = document.getElementsByName('irt_destCountry[0]');



var InternationalJunctionCountryNames = document.getElementsByName('irt_destCountryName[0]');







var InternationalJunctionPoint = new Array();



var InternationalJunctionPoints = document.getElementsByName('irt_destPoint[0]');



var InternationalJunctionPointNames = document.getElementsByName('irt_destPointName[0]');



var InternationalJunctionZip = document.getElementsByName('irt_zip[0]');







var NationalJunction = new Array();



var InternationalCountries = new Array();



var InternationalPoints = new Array();







var IF5 = new Object();



IF5.NationalJunctions = new Object();



IF5.NationalJunctions.Index = 0;







IF5.NationalJunctions.AddRow = function() {



	IF5.NationalJunctions.Index++;



	var index = IF5.NationalJunctions.Index;



	var NationalTable = document.getElementById('NationalJunctionsTable');



	var NationalTableRows = NationalTable.rows.length;



	var NationalTableRow = document.getElementById('MainNationalRow');



	var NewRow = NationalTable.insertRow(NationalTableRows);



	



	var Cell = document.createElement('td');



	var DestPointID = document.createElement('input');



	DestPointID.id = 'nrt_desPoint['+(index)+']';



	DestPointID.name = 'nrt_desPoint['+(index)+']';



	DestPointID.type = 'hidden';



	



	var DestPointName = document.createElement('input');



	DestPointName.id = 'nrt_desPointName['+(index)+']';



	DestPointName.name = 'nrt_desPointName['+(index)+']';



	DestPointName.type = 'text';



	DestPointName.title = "Point of destination ["+(index+1)+"]";



	DestPointName.readOnly = true;



	DestPointName.style.backgroundColor = '#EEEEEE';



	DestPointName.style.width = '200px';



	



	var DestPointPopupImage = new Image();



	DestPointPopupImage.src = "images/hand.gif";



	DestPointPopupImage.border = 0;



	DestPointPopupImage.alt = index;



	



	var DestPointLink = document.createElement('a');



	NationalJunction[index] = new Object();



	NationalJunction[index].hidden = DestPointID;



	NationalJunction[index].visible = DestPointName;



	DestPointLink.href = "javascript:void(0)";



	



	DestPointLink.appendChild(DestPointPopupImage);



	



	//NationalJunctions[0].zip = NationalJunctionZip[0];



	var DestinationZip = document.createElement('input');



	DestinationZip.id = 'nrt_zip['+(index)+']';



	DestinationZip.name = 'nrt_zip['+(index)+']';



	DestinationZip.type = 'text';



	DestinationZip.style.width = '71px';



	DestinationZip.style.backgroundColor = '#EEEEEE';



	DestinationZip.readOnly = true;

	DestinationZip.title = "Zip Code ["+(index+1)+"]";



	NationalJunction[index].zip = DestinationZip;



	addEvent(DestPointLink,"click",fnNationalDestinationPoint);



	



	Cell.bgColor = '#FFFFCC';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(document.createTextNode('Point of destination'));



	Cell.appendChild(DestPointID);



	Cell.appendChild(document.createTextNode(' '));



	Cell.appendChild(DestPointName);



	Cell.appendChild(document.createTextNode(' '));



	Cell.appendChild(DestPointLink);



	Cell.appendChild(document.createTextNode(' Zip Code '));



	Cell.appendChild(DestinationZip);



	



	



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var TransitTime = document.createElement('input');



	TransitTime.name = 'nrt_tt['+(index)+']';



	TransitTime.id = 'nrt_tt['+(index)+']';



	TransitTime.type = 'text';



	TransitTime.style.width = '70px';



	TransitTime.title = "Transit time ["+(index+1)+"]";



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(TransitTime);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var Currency = document.createElement('select');



	Currency.id = 'nrt_curr['+(index)+']';



	Currency.name = 'nrt_curr['+(index)+']';



	Currency.style.width = '70px';



	Currency.title = "Currency ["+(index+1)+"]";



	var inheritTableSelect = document.getElementsByName('nrt_curr[0]');



	var inheritSelect = inheritTableSelect[0];



	



	for (var opt=0; opt<inheritSelect.options.length; opt++) {



		var optionElement = document.createElement('option');



		optionElement.value = inheritSelect.options[opt].value;



		optionElement.text = inheritSelect.options[opt].text;



		try {



			Currency.add(optionElement, null);



		} catch(ex) {



			Currency.add(optionElement);



		}



	}



	



	



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(Currency);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var POC = document.createElement('input');



	POC.name = 'nrt_poc['+(index)+']';



	POC.id = 'nrt_poc['+(index)+']';



	POC.type = 'text';



	POC.style.width = '70px';



	POC.title = "Tariff rate ["+(index+1)+"]";



	



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.appendChild(POC);



	NewRow.appendChild(Cell);



}







IF5.NationalJunctions.RemoveLastRow = function() {



	var NationalTable = document.getElementById('NationalJunctionsTable');



	var Rows = NationalTable.rows.length;



	



	if (IF5.NationalJunctions.Index>0) {



		NationalTable.deleteRow(--Rows);



		IF5.NationalJunctions.Index--;



	}



}







IF5.NationalJunctions.RemoveRow = function() {



}







IF5.InternationalJunctions = new Object();



IF5.InternationalJunctions.Index = 0;







IF5.InternationalJunctions.AddRow = function() {



	IF5.InternationalJunctions.Index++;



	var index = IF5.InternationalJunctions.Index;



	var MainTable = document.getElementById('InternationalJunctionsTable');



	var MainTableRows = MainTable.rows.length;



	var MainTableRow = document.getElementById('MainInternationalRow');



	var NewRow = MainTable.insertRow(MainTableRows);



	



	var Cell = document.createElement('td');



	var DestCountryId = document.createElement('input');



	DestCountryId.type = 'hidden';



	DestCountryId.name = 'irt_destCountry['+index+']';



	DestCountryId.id = 'irt_destCountry['+index+']';



	



	var DestCountryName = document.createElement('input');



	DestCountryName.type = 'text';



	DestCountryName.name = 'irt_destCountryName['+index+']';



	DestCountryName.id = 'irt_destCountryName['+index+']';



	DestCountryName.style.width = '110px';



	DestCountryName.style.backgroundColor = '#eeeeee';



	DestCountryName.readOnly = true;



	DestCountryName.title = "Country of destination ["+(index+1)+"]";



	



	//var DestCountryPopupImage = new Image();



	var DestCountryPopupImage = new Image();



	DestCountryPopupImage.src = "images/hand.gif";



	DestCountryPopupImage.border = 0;



	DestCountryPopupImage.alt = index;



	



	var DestCountryLink = document.createElement('a');



	InternationalCountries[index] = new Object();



	InternationalCountries[index].hidden = DestCountryId;



	InternationalCountries[index].visible = DestCountryName;



	DestCountryLink.href = "javascript:void(0)";



	addEvent(DestCountryLink,"click",fnInternationalCountry);



	DestCountryLink.appendChild(DestCountryPopupImage);



	



	//Cell.innerHTML = 'Cell1@'+IF5.InternationalJunctions.Index;



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(DestCountryId);



	Cell.appendChild(DestCountryName);



	Cell.appendChild(document.createTextNode(' '));



	Cell.appendChild(DestCountryLink);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	//Cell.innerHTML = 'Cell2';



	



	//========================================================================================



	var DestPointID = document.createElement('input');



	DestPointID.id = 'irt_destPoint['+index+']';



	DestPointID.name = 'irt_destPoint['+index+']';



	DestPointID.type = 'hidden';



	



	var DestPointName = document.createElement('input');



	DestPointName.id = 'irt_destPointName['+index+']';



	DestPointName.name = 'irt_destPointName['+index+']';



	DestPointName.type = 'text';



	DestPointName.title = "Point of destination ["+(index+1)+"]";



	DestPointName.readOnly = true;



	DestPointName.style.backgroundColor = '#EEEEEE';



	DestPointName.style.width = '110px';



	



	var DestPointPopupImage = new Image();



	DestPointPopupImage.src = "images/hand.gif";



	DestPointPopupImage.border = 0;



	DestPointPopupImage.alt = index;



	



	var DestPointLink = document.createElement('a');



	InternationalPoints[index] = new Object();



	InternationalPoints[index].hidden = DestPointID;



	InternationalPoints[index].visible = DestPointName;



	DestPointLink.href = "javascript:void(0)";



	



	DestPointLink.appendChild(DestPointPopupImage);



	//========================================================================================



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(DestPointID);



	Cell.appendChild(DestPointName);



	Cell.appendChild(document.createTextNode(' '));



	Cell.appendChild(DestPointLink);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var zip = document.createElement('input');



	zip.name = 'irt_zip['+index+']';



	zip.type = 'text';



	zip.id = 'irt_zip['+index+']';



	zip.style.width = '50px';



	zip.title = "Zip Code ["+(index+1)+"]";



	zip.style.backgroundColor = '#eeeeee';



	zip.readOnly = true;



	InternationalPoints[index].zip = zip;



	addEvent(DestPointLink,"click",fnInternationalPoint);



	



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(zip);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var ttd = document.createElement('input');



	ttd.id = 'irt_ttd['+index+']';



	ttd.name = 'irt_ttd['+index+']';



	ttd.type = 'text';



	ttd.style.width = '50px';



	ttd.title = "Transit time ["+(index+1)+"]";



	



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(ttd);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var Currency = document.createElement('select');



	Currency.id = 'irt_curr['+index+']';



	Currency.name = 'irt_curr['+index+']';



	Currency.style.width = '60px';



	Currency.title = "Currency ["+(index+1)+"]";



	var inheritTableSelect = document.getElementsByName('irt_curr[0]');



	var inheritSelect = inheritTableSelect[0];



	



	for (var opt=0; opt<inheritSelect.options.length; opt++) {



		var optionElement = document.createElement('option');



		optionElement.value = inheritSelect.options[opt].value;



		optionElement.text = inheritSelect.options[opt].text;



		try {



			Currency.add(optionElement, null);



		} catch(ex) {



			Currency.add(optionElement);



		}



	}



	



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(Currency);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var dc = document.createElement('input');



	dc.id = 'irt_dc['+index+']';



	dc.name = 'irt_dc['+index+']';



	dc.type = 'text';



	dc.style.width = '50px';



	dc.title = "DC Tariff ["+(index+1)+"]";



	dc.style.background= document.getElementById("irt_dc[0]").style.background;

	

	dc.readOnly= document.getElementById("irt_dc[0]").readOnly;

	



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.style.borderRight = '1px solid #003366';



	Cell.appendChild(dc);



	NewRow.appendChild(Cell);



	



	var Cell = document.createElement('td');



	var hc = document.createElement('input');



	hc.id = 'irt_hc['+index+']';



	hc.name = 'irt_hc['+index+']';



	hc.type = 'text';



	hc.style.width = '50px';



	hc.title = "HC Tariff ["+(index+1)+"]";

	



	hc.style.background= document.getElementById("irt_hc[0]").style.background;

	

	hc.readOnly= document.getElementById("irt_hc[0]").readOnly;

	



	Cell.noWrap = true;



	Cell.align = 'center';



	Cell.bgColor = '#E4E4E4';



	Cell.style.borderBottom = '1px dotted #666666';



	Cell.appendChild(hc);



	NewRow.appendChild(Cell);



}







IF5.InternationalJunctions.RemoveLastRow = function() {



	var MainTable = document.getElementById('InternationalJunctionsTable');



	var Rows = MainTable.rows.length;



	if (IF5.InternationalJunctions.Index>0) {



		MainTable.deleteRow(--Rows);



		IF5.InternationalJunctions.Index--;



	}



}







/* 



	@d default value



	null, hidden, visible



*/



function ToogleObject(button, id, d) {



	var status = false;



	var obj = document.getElementById(id);



	//alert(obj);



	var statusObj = document.getElementById(id+"_status");



	if (d!=null) {



		switch(d) {



			case "visible":



				obj.style.display = 'block';



				button.value = 'Remove';



				statusObj.value = 'visible';



				status = true;



			break;



			case "hidden":



				obj.style.display = 'none';



				ResetFieldValues(obj);



				button.value = 'Add';



				statusObj.value = 'hidden';



				status = false;



			break;



		}



	} else {



		if (obj.style.display == 'none') {



			obj.style.display = 'block';



			button.value = 'Remove';



			statusObj.value = 'visible';



			status = true;



		} else {



			obj.style.display = 'none';



			//ResetFieldValues(obj);



			button.value = 'Add';



			statusObj.value = 'hidden';



			status = false;



		}



	}



	



	return status;



}







function ResetFieldValues(parentNode) {



	var TextBoxes = parentNode.getElementsByTagName('input');



	for (var textbox=0; textbox<TextBoxes.length; textbox++) {



		TextBoxes[textbox].value = "";



	}



	



	var DropDownBoxes = parentNode.getElementsByTagName('select');



	for (var dropdown=0; dropdown<DropDownBoxes.length; dropdown++) {



		DropDownBoxes[dropdown].selectedIndex = 0;



	}



}







function ClearDestinationPoints() {



	for (var i=0; i<NationalJunctionPoints.length; i++) {



		NationalJunctionPoints[i].value = '';



	}



	



	for (var j=0; j<NationalJunctionPointNames.length; j++) {



		NationalJunctionPointNames[j].value = '';



	}



	



	document.getElementById('depCity').value = '';



	document.getElementById('depCityName').value = '';



}







function ToogleTerminalFields(enabled) {



	if (depCity.terminalFields!=null && depCity.terminalFields.length>0) {



		if (enabled != true) {



			var disabled = false;



		} else {



			var disabled = true;



		}



		



		for (var i in depCity.terminalFields) {



			depCity.terminalFields[i].disabled = disabled;



		}



	}



}











function isValid20WeightFields() {



	var TextBox = document.getElementById("rows1Table_status");



	var Valid = true;



	var Fields = new Array();



	Fields[0] = 'mTariffs[1][19999][curr]';



	Fields[1] = 'mTariffs[1][20499][curr]';



	Fields[2] = 'mTariffs[1][21499][curr]';



	Fields[3] = 'mTariffs[1][22499][curr]';



	Fields[4] = 'mTariffs[1][24000][curr]';



	Fields[5] = 'mTariffs[1][19999][20dc]';



	Fields[6] = 'mTariffs[1][20499][20dc]';



	Fields[7] = 'mTariffs[1][21499][20dc]';



	Fields[8] = 'mTariffs[1][22499][20dc]';



	Fields[9] = 'mTariffs[1][24000][20dc]';



	



	for (var i=0; i<Fields.length; i++) {



		var obj = document.getElementById(Fields[i]);



		if (TextBox.value == "visible" && (obj.value == "" || obj.value == "--")) {



			alert("Please check data in Cargo weights of 20 DC containers");



			Valid = false;



			break;



		}



	}



	



	return Valid;



}







function isValid40WeightFields() {



	var TextBox = document.getElementById("rows2Table_status");



	var Valid = true;



	var Fields = new Array('mTariffs[2][17999][curr]','mTariffs[2][19999][curr]','mTariffs[2][20999][curr]','mTariffs[2][21999][curr]','mTariffs[2][22999][curr]','mTariffs[2][24499][curr]','mTariffs[2][25499][curr]','mTariffs[2][26500][curr]',



						'mTariffs[2][17999][40dc]','mTariffs[2][19999][40dc]','mTariffs[2][20999][40dc]','mTariffs[2][21999][40dc]','mTariffs[2][22999][40dc]','mTariffs[2][24499][40dc]','mTariffs[2][25499][40dc]','mTariffs[2][26500][40dc]',



						'mTariffs[2][17999][40hc]','mTariffs[2][19999][40hc]','mTariffs[2][20999][40hc]','mTariffs[2][21999][40hc]','mTariffs[2][22999][40hc]','mTariffs[2][24499][40hc]','mTariffs[2][25499][40hc]','mTariffs[2][26500][40hc]');



	



	for (var i=0; i<Fields.length; i++) {



		var obj = document.getElementById(Fields[i]);



		if (TextBox.value == "visible" && (obj.value == "" || obj.value == "--")) {



			alert("Please check data in Cargo weights of 40 DC containers");



			Valid = false;



			break;



		}



	}



	



	return Valid;



}







function isValidIF5Form() {



	//validateForm(new Objects(new Array('depCountryName','depCityName','from_terminal_tt','from_terminal_curr','from_terminal_poc','city_rayon_tt','city_rayon_curr','city_rayon_poc','expected_ttd','validity_day','validity_month','validity_year')));



	var isFieldsValid = validateForm(new Objects(new Array('depCountryName','depCityName','expected_ttd','validity_day','validity_month','validity_year')));



	var isValid20 = isValid20WeightFields();



	var isValid40 = isValid40WeightFields();



	



	var Valid = (isFieldsValid && isValid20 && isValid40);



	return Valid;



}











function isValidIF5Form_1(nrt_counter,irt_counter) {



	//validateForm(new Objects(new Array('depCountryName','depCityName','from_terminal_tt','from_terminal_curr','from_terminal_poc','city_rayon_tt','city_rayon_curr','city_rayon_poc','expected_ttd','validity_day','validity_month','validity_year')));



fieldarr = new Array();



fieldarr = fieldarr.concat('depCountryName','depCityName','validity_day','validity_month','validity_year');

;



var i=0;

for (i==0;i<nrt_counter;i++)



{

fieldarr = fieldarr.concat(	'nrt_desPointName['+i+']','nrt_tt['+i+']','nrt_curr['+i+']','nrt_poc['+i+']');

}





var isFieldsValid = validateForm(new Objects(fieldarr));



	



	var Valid = (isFieldsValid);



	return Valid;



}











function isValidIF5Form_2(nrt_counter,irt_counter) {



fieldarr = new Array();



fieldarr = fieldarr.concat('depCountryName','depCityName','validity_day','validity_month','validity_year');

;



var i=0;

for (i==0;i<irt_counter;i++)



{

	

	if (document.getElementById('dccbox').checked==true) fieldarr = fieldarr.concat('irt_dc['+i+']');

	if (document.getElementById('hccbox').checked==true) fieldarr = fieldarr.concat('irt_hc['+i+']');

	

fieldarr = fieldarr.concat(	'irt_destCountryName['+i+']','irt_destPointName['+i+']','irt_ttd['+i+']','irt_curr['+i+']');	

	

}



var isFieldsValid = validateForm(new Objects(fieldarr));



var Valid = (isFieldsValid);



	return Valid;



}











function IF5MaxPayload20DC(obj, d) {



	var status = ToogleObject(obj, 'rows1Table', d);



	var currencyObj = document.getElementById('tr_20_curr');



	var rateObj = document.getElementById('tr_20_rate');



	



	if (status) {



		var tmpCurr = currencyObj.selectedIndex;



		var tmpRate = rateObj.value;







		currencyObj.selectedIndex = 0;



		rateObj.value = "";



		currencyObj.readOnly = true;



		rateObj.readOnly = true;



		currencyObj.style.backgroundColor = '#EEEEEE';



		rateObj.style.backgroundColor = '#EEEEEE';



	} else {



		currencyObj.readOnly = false;



		rateObj.readOnly = false;



		currencyObj.style.backgroundColor = '#FFFFFF';



		rateObj.style.backgroundColor = '#FFFFFF';



	}



}







function IF5MaxPayload40DCHC(obj, d) {



	var status = ToogleObject(obj, 'rows2Table', d);



	var currencyObj = document.getElementById('tr_40_curr');



	var rate40dc = document.getElementById('tr_40dc');



	var rate40hc = document.getElementById('tr_40hc');



	



	if (status) {



		currencyObj.selectedIndex = 0;



		rate40dc.value = "";



		rate40hc.value = "";



		



		currencyObj.readOnly = true;



		rate40dc.readOnly = true;



		rate40hc.readOnly = true;



		currencyObj.style.backgroundColor = '#EEEEEE';



		rate40dc.style.backgroundColor = '#EEEEEE';



		rate40hc.style.backgroundColor = '#EEEEEE';



	} else {



		currencyObj.readOnly = false;



		rate40dc.readOnly = false;



		rate40hc.readOnly = false;



		currencyObj.style.backgroundColor = '#FFFFFF';



		rate40dc.style.backgroundColor = '#FFFFFF';



		rate40hc.style.backgroundColor = '#FFFFFF';



	}



}




