/* Insiders: News Subscription EN
 * User: kristoffer.pettersson@nasdaqomx.com
 * Updated: 2010-04-16 11:36:59.727
 */
var randomNumber = parseInt(Math.random()*10000);

try{
	var newParam1 = "";
	if( newParam1.match(/configuration.getParameter/ig) != null || newParam1 == "" ){
		newParam1 = null;
	}
	
	var newParam2 = "";
	if( newParam2.match(/configuration.getParameter/ig) != null || newParam2 == "" ){
		newParam2 = null;
	}
}catch( Error ){
		
}

try{
	var removeBalticsLang = "${configuration.getParameter('removeBalticsLang')}";
	
	if (removeBalticsLang == 'false'){
		var newLang1 = "Lithuanian";
		if( newLang1.match(/configuration.getParameter/ig) != null || newLang1 == "" ){
			newLang1 = null;
		}
		
		var newLang2 = "Latvian";
		if( newLang2.match(/configuration.getParameter/ig) != null || newLang2 == "" ){
			newLang2 = null;
		}
		
		var newLang3 = "Estonian";
		if( newLang3.match(/configuration.getParameter/ig) != null || newLang3 == "" ){
			newLang3 = null;
		}
		
		var newLang4 = "Russian";
		if( newLang4.match(/configuration.getParameter/ig) != null || newLang4 == "" ){
			newLang4 = null;
		}
	}
}catch( Error ){
		
}

try{
	var newParam3 = "";
	if( newParam3.match(/configuration.getParameter/ig) != null || newParam3 == "" ){
		newParam3 = null;
	}
}catch( Error ){
		
}


function checkFieldsAndSubmit() {
	var firstName = "First name:";
	var firstNameRequire = -1;
	var lastName = "Last name:";
	var lastNameRequire = -1;
	var title = "";
	var titleRequire = -1;
	var phone = "";
	var phoneRequire = -1;
	var company = "Company";
	var countryRequire = -1;
	var country = "Country";
	var countryRequire = -1;
	var profile = "Profile";
	var profileRequire = -1;
	var infoTypeRequire = 0;
        var filter = /^.+@.+\..{2,4}$/;
	
	var required = /\*/;
	if( firstName != "" )
		firstNameRequire = firstName.search(required);
		
	if( lastName != "" )
		lastNameRequire = lastName.search(required);
	
	if( title != "" )
		titleRequire = title.search(required);
		
	if( phone != "" )
		phoneRequire = phone.search(required);
	
	if( company != "" )
		companyRequire = company.search(required);
		
	if( country != "" )
		countryRequire = country.search(required);
		
	if( profile != "" )
		profileRequire = profile.search(required);
	
	if(document.getElementsByName('infoTypes').length > 0){
		var x = document.getElementsByName('infoTypes').length;
		do{
			document.getElementsByName('infoTypes')[x-1].name = 'infoTypes_'+randomNumber;
			x--;
		}while(x > 0)
	}
	
	if( document.getElementsByName('infoTypes_'+randomNumber).length != 0 ){
		for (i = 0; i < document.getElementsByName('infoTypes_'+randomNumber).length; i++){
			if (document.getElementsByName('infoTypes_'+randomNumber)[i].checked){
				infoTypeRequire = -1;
			}
		}
	}
	
	if( document.getElementsByName('selectedEmail').selectedEmail.value == '' || !filter.test(document.getElementsByName('selectedEmail').selectedEmail.value) ) {
		alert( 'A valid e-mail address must be entered.' );
	}
	else if( infoTypeRequire != -1 ) {
		alert( 'Please choose a message type to recieve.' );
	}
		else if ( document.addSubscriptionForm.selectedFirstName.value == '' && firstNameRequire != -1 ) {
		alert( 'Please enter your first name.' );
	}
			else if ( document.getElementsByName('selectedLastName').value == '' && lastNameRequire != -1 ) {
		alert( 'Please enter your last name.' );
	}
					else if ( document.addSubscriptionForm.selectedCompany.value == '' && companyRequire != -1 ) {
		alert( 'Please enter your company name.' );
	}
			else if ( document.getElementsByName('selectedCountry').value == -1 && countryRequire != -1 ) {
		alert( 'Please select the country where you are based.' );
	}
			else if ( document.addSubscriptionForm.selectedProfile.value == -1 && profileRequire != -1 ) {
		alert( 'Please select your profile.' );
	}
		else {
		
		var x = document.getElementsByName('infoTypes_'+randomNumber).length;
		do{
			document.getElementsByName('infoTypes_'+randomNumber)[x-1].name = 'infoTypes';
			x--;
		}while(x > 0)
		
		if(document.getElementsByName('preferredLanguage_'+randomNumber).length == 1){
			document.getElementsByName('preferredLanguage_'+randomNumber)[0].name = 'preferredLanguage';
		}
		
				
									if( document.addSubscriptionForm.selectedProfile.value == -1 ){
					document.getElementById("profile_id").innerHTML = "";
				}
										if( document.getElementsByName('selectedCountry').value == -1 ){
					document.getElementById("selected_country_id").innerHTML = "";
				}
						document.getElementById('addSubscriptionForm').submit();
			}
}

document.write('<form id="addSubscriptionForm" name="addSubscriptionForm" target=NasdaqOmxPop onSubmit="customOnsubmit(); return true;" action="https://cns.omxgroup.com/cdsPublic/addDynamicSubscription.action?" method="GET" enctype="application/x-ww-form-urlencoded">');
document.write('<table id="subscribeContainer" style="border-collapse: collapse;font-family: Arial; font-size: 11px; width: 250px; border: none;">');
document.write('		<tr><td class="moduleTitle" style="background-color:#000000;display:none">');
document.write('				<h2 style="font-size:15px;"></h2>');
document.write('		</td></tr>');
document.write('		<tr><td class="moduleHeader" style="background-color:;display:none">');
document.write('			<h3 style="font-size:13px;"></h3>');
document.write('		</td></tr>');
document.write('		<tr><td style="line-height: 5px; background-color:#FFFFFF;">&nbsp;</td></tr>');
document.write('		<tr><td class="labelDiv" style="background-color:#FFFFFF;">');
document.write('			<label class="required">First name:</label>');
document.write('			<input type="text" name="selectedFirstName" style="width: 240px;" value="" id="addSubscription_selectedFirstName" style="width:200px;" class="formItem"/>');
document.write('		</td></tr>');
document.write('		<tr><td class="labelDiv" style="background-color:#FFFFFF;">');
document.write('			<label class="required">Last name:</label>');
document.write('			<input type="text" name="selectedLastName" style="width: 240px;" value="" id="addSubscription_selectedLastName" style="width:200px;" class="formItem"/>');
document.write('		</td></tr>');
document.write('		<tr><td class="labelDiv" style="background-color:#FFFFFF;">');
document.write('			<label class="required">Company</label>');
document.write('			<input type="text" name="selectedCompany" style="width: 240px;" value="" id="addSubscription_selectedCompany" class="formItem"/>');
document.write('		</td></tr>');
document.write('		<tr><td class="labelDiv" id="profile_id" style="background-color:#FFFFFF;">');
document.write('			<label class="required">Profile</label>');
document.write('			<select name="selectedProfile" size="1" style="width: 240px;" id="selectedProfile" style="margin-right:5px;" title="Please select your profile.">');
document.write('				<option value="-1">Select profile</option>');
document.write('				<option value="1">Analyst</option>');
document.write('				<option value="2">Customer</option>');
document.write('				<option value="3">Employee</option>');
document.write('				<option value="4">Investor</option>');
document.write('				<option value="5">Media</option>');
document.write('				<option value="6">Shareholder</option>');
document.write('				<option value="7">Student</option>');
document.write('				<option value="8">Other</option>');
document.write('			</select>');
document.write('		</td></tr>');
document.write('		<tr><td class="labelDiv" id="selected_country_id" style="background-color:#FFFFFF;">');
document.write('			<label class="required">Country</label>');
document.write('			<select name="selectedCountry" size="1" style="width: 240px;" id="selectedCountry" class="defaultselect" style="width:240px;" title="Select country">');
document.write('				<option value="-1">Select country</option>');
document.write('				<option value="AFGHANISTAN">AFGHANISTAN</option>');
document.write('				<option value="ÅLAND ISLANDS">ÅLAND ISLANDS</option>');
document.write('				<option value="ALBANIA">ALBANIA</option>');
document.write('				<option value="ALGERIA">ALGERIA</option>');
document.write('				<option value="AMERICAN SAMOA">AMERICAN SAMOA</option>');
document.write('				<option value="ANDORRA">ANDORRA</option>');
document.write('				<option value="ANGOLA">ANGOLA</option>');
document.write('				<option value="ANGUILLA">ANGUILLA</option>');
document.write('				<option value="ANTARCTICA">ANTARCTICA</option>');
document.write('				<option value="ANTIGUA AND BARBUDA">ANTIGUA AND BARBUDA</option>');
document.write('				<option value="ARGENTINA">ARGENTINA</option>');
document.write('				<option value="ARMENIA">ARMENIA</option>');
document.write('				<option value="ARUBA">ARUBA</option>');
document.write('				<option value="AUSTRALIA">AUSTRALIA</option>');
document.write('				<option value="AUSTRIA">AUSTRIA</option>');
document.write('				<option value="AZERBAIJAN">AZERBAIJAN</option>');
document.write('				<option value="BAHAMAS">BAHAMAS</option>');
document.write('				<option value="BAHRAIN">BAHRAIN</option>');
document.write('				<option value="BANGLADESH">BANGLADESH</option>');
document.write('				<option value="BARBADOS">BARBADOS</option>');
document.write('				<option value="BELARUS">BELARUS</option>');
document.write('				<option value="BELGIUM">BELGIUM</option>');
document.write('				<option value="BELIZE">BELIZE</option>');
document.write('				<option value="BENIN">BENIN</option>');
document.write('				<option value="BERMUDA">BERMUDA</option>');
document.write('				<option value="BHUTAN">BHUTAN</option>');
document.write('				<option value="BOLIVIA">BOLIVIA</option>');
document.write('				<option value="BOSNIA AND HERZEGOVINA">BOSNIA AND HERZEGOVINA</option>');
document.write('				<option value="BOTSWANA">BOTSWANA</option>');
document.write('				<option value="BOUVET ISLAND">BOUVET ISLAND</option>');
document.write('				<option value="BRAZIL">BRAZIL</option>');
document.write('				<option value="BRITISH INDIAN OCEAN TERRITORY">BRITISH INDIAN OCEAN TERRITORY</option>');
document.write('				<option value="BRUNEI DARUSSALAM">BRUNEI DARUSSALAM</option>');
document.write('				<option value="BULGARIA">BULGARIA</option>');
document.write('				<option value="BURKINA FASO">BURKINA FASO</option>');
document.write('				<option value="BURUNDI">BURUNDI</option>');
document.write('				<option value="CAMBODIA">CAMBODIA</option>');
document.write('				<option value="CAMEROON">CAMEROON</option>');
document.write('				<option value="CANADA">CANADA</option>');
document.write('				<option value="CAPE VERDE">CAPE VERDE</option>');
document.write('				<option value="CAYMAN ISLANDS">CAYMAN ISLANDS</option>');
document.write('				<option value="CENTRAL AFRICAN REPUBLIC">CENTRAL AFRICAN REPUBLIC</option>');
document.write('				<option value="CHAD">CHAD</option>');
document.write('				<option value="CHILE">CHILE</option>');
document.write('				<option value="CHINA">CHINA</option>');
document.write('				<option value="CHRISTMAS ISLAND">CHRISTMAS ISLAND</option>');
document.write('				<option value="COCOS (KEELING) ISLANDS">COCOS (KEELING) ISLANDS</option>');
document.write('				<option value="COLOMBIA">COLOMBIA</option>');
document.write('				<option value="COMOROS">COMOROS</option>');
document.write('				<option value="CONGO">CONGO</option>');
document.write('				<option value="CONGO, THE DEMOCRATIC REPUBLIC OF THE">CONGO, THE DEMOCRATIC REPUBLIC OF THE</option>');
document.write('				<option value="COOK ISLANDS">COOK ISLANDS</option>');
document.write('				<option value="COSTA RICA">COSTA RICA</option>');
document.write('				<option value="CÔTE D IVOIRE">CÔTE D IVOIRE</option>');
document.write('				<option value="CROATIA">CROATIA</option>');
document.write('				<option value="CUBA">CUBA</option>');
document.write('				<option value="CYPRUS">CYPRUS</option>');
document.write('				<option value="CZECH REPUBLIC">CZECH REPUBLIC</option>');
document.write('				<option value="DENMARK">DENMARK</option>');
document.write('				<option value="DJIBOUTI">DJIBOUTI</option>');
document.write('				<option value="DOMINICA">DOMINICA</option>');
document.write('				<option value="DOMINICAN REPUBLIC">DOMINICAN REPUBLIC</option>');
document.write('				<option value="ECUADOR">ECUADOR</option>');
document.write('				<option value="EGYPT">EGYPT</option>');
document.write('				<option value="EL SALVADOR">EL SALVADOR</option>');
document.write('				<option value="EQUATORIAL GUINEA">EQUATORIAL GUINEA</option>');
document.write('				<option value="ERITREA">ERITREA</option>');
document.write('				<option value="ESTONIA">ESTONIA</option>');
document.write('				<option value="ETHIOPIA">ETHIOPIA</option>');
document.write('				<option value="FALKLAND ISLANDS (MALVINAS)">FALKLAND ISLANDS (MALVINAS)</option>');
document.write('				<option value="FAROE ISLANDS">FAROE ISLANDS</option>');
document.write('				<option value="FIJI">FIJI</option>');
document.write('				<option value="FINLAND">FINLAND</option>');
document.write('				<option value="FRANCE">FRANCE</option>');
document.write('				<option value="FRENCH GUIANA">FRENCH GUIANA</option>');
document.write('				<option value="FRENCH POLYNESIA">FRENCH POLYNESIA</option>');
document.write('				<option value="FRENCH SOUTHERN TERRITORIES">FRENCH SOUTHERN TERRITORIES</option>');
document.write('				<option value="GABON">GABON</option>');
document.write('				<option value="GAMBIA">GAMBIA</option>');
document.write('				<option value="GEORGIA">GEORGIA</option>');
document.write('				<option value="GERMANY">GERMANY</option>');
document.write('				<option value="GHANA">GHANA</option>');
document.write('				<option value="GIBRALTAR">GIBRALTAR</option>');
document.write('				<option value="GREECE">GREECE</option>');
document.write('				<option value="GREENLAND">GREENLAND</option>');
document.write('				<option value="GRENADA">GRENADA</option>');
document.write('				<option value="GUADELOUPE">GUADELOUPE</option>');
document.write('				<option value="GUAM">GUAM</option>');
document.write('				<option value="GUATEMALA">GUATEMALA</option>');
document.write('				<option value="GUERNSEY">GUERNSEY</option>');
document.write('				<option value="GUINEA">GUINEA</option>');
document.write('				<option value="GUINEA-BISSAU">GUINEA-BISSAU</option>');
document.write('				<option value="GUYANA">GUYANA</option>');
document.write('				<option value="HAITI">HAITI</option>');
document.write('				<option value="HEARD ISLAND AND MCDONALD ISLANDS">HEARD ISLAND AND MCDONALD ISLANDS</option>');
document.write('				<option value="HOLY SEE (VATICAN CITY STATE)">HOLY SEE (VATICAN CITY STATE)</option>');
document.write('				<option value="HONDURAS">HONDURAS</option>');
document.write('				<option value="HONG KONG">HONG KONG</option>');
document.write('				<option value="HUNGARY">HUNGARY</option>');
document.write('				<option value="ICELAND">ICELAND</option>');
document.write('				<option value="INDIA">INDIA</option>');
document.write('				<option value="INDONESIA">INDONESIA</option>');
document.write('				<option value="IRAN, ISLAMIC REPUBLIC OF">IRAN, ISLAMIC REPUBLIC OF</option>');
document.write('				<option value="IRAQ">IRAQ</option>');
document.write('				<option value="IRELAND">IRELAND</option>');
document.write('				<option value="ISLE OF MAN">ISLE OF MAN</option>');
document.write('				<option value="ISRAEL">ISRAEL</option>');
document.write('				<option value="ITALY">ITALY</option>');
document.write('				<option value="JAMAICA">JAMAICA</option>');
document.write('				<option value="JAPAN">JAPAN</option>');
document.write('				<option value="JERSEY">JERSEY</option>');
document.write('				<option value="JORDAN">JORDAN</option>');
document.write('				<option value="KAZAKHSTAN">KAZAKHSTAN</option>');
document.write('				<option value="KENYA">KENYA</option>');
document.write('				<option value="KIRIBATI">KIRIBATI</option>');
document.write('				<option value="KOREA, DEMOCRATIC PEOPLE S REPUBLIC OF">KOREA, DEMOCRATIC PEOPLE S REPUBLIC OF</option>');
document.write('				<option value="KOREA, REPUBLIC OF">KOREA, REPUBLIC OF</option>');
document.write('				<option value="KUWAIT">KUWAIT</option>');
document.write('				<option value="KYRGYZSTAN">KYRGYZSTAN</option>');
document.write('				<option value="LAO PEOPLE S DEMOCRATIC REPUBLIC">LAO PEOPLE S DEMOCRATIC REPUBLIC</option>');
document.write('				<option value="LATVIA">LATVIA</option>');
document.write('				<option value="LEBANON">LEBANON</option>');
document.write('				<option value="LESOTHO">LESOTHO</option>');
document.write('				<option value="LIBERIA">LIBERIA</option>');
document.write('				<option value="LIBYAN ARAB JAMAHIRIYA">LIBYAN ARAB JAMAHIRIYA</option>');
document.write('				<option value="LIECHTENSTEIN">LIECHTENSTEIN</option>');
document.write('				<option value="LITHUANIA">LITHUANIA</option>');
document.write('				<option value="LUXEMBOURG">LUXEMBOURG</option>');
document.write('				<option value="MACAO">MACAO</option>');
document.write('				<option value="MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF">MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF</option>');
document.write('				<option value="MADAGASCAR">MADAGASCAR</option>');
document.write('				<option value="MALAWI">MALAWI</option>');
document.write('				<option value="MALAYSIA">MALAYSIA</option>');
document.write('				<option value="MALDIVES">MALDIVES</option>');
document.write('				<option value="MALI">MALI</option>');
document.write('				<option value="MALTA">MALTA</option>');
document.write('				<option value="MARSHALL ISLANDS">MARSHALL ISLANDS</option>');
document.write('				<option value="MARTINIQUE">MARTINIQUE</option>');
document.write('				<option value="MAURITANIA">MAURITANIA</option>');
document.write('				<option value="MAURITIUS">MAURITIUS</option>');
document.write('				<option value="MAYOTTE">MAYOTTE</option>');
document.write('				<option value="MEXICO">MEXICO</option>');
document.write('				<option value="MICRONESIA, FEDERATED STATES OF">MICRONESIA, FEDERATED STATES OF</option>');
document.write('				<option value="MOLDOVA, REPUBLIC OF">MOLDOVA, REPUBLIC OF</option>');
document.write('				<option value="MONACO">MONACO</option>');
document.write('				<option value="MONGOLIA">MONGOLIA</option>');
document.write('				<option value="MONTENEGRO">MONTENEGRO</option>');
document.write('				<option value="MONTSERRAT">MONTSERRAT</option>');
document.write('				<option value="MOROCCO">MOROCCO</option>');
document.write('				<option value="MOZAMBIQUE">MOZAMBIQUE</option>');
document.write('				<option value="MYANMAR">MYANMAR</option>');
document.write('				<option value="NAMIBIA">NAMIBIA</option>');
document.write('				<option value="NAURU">NAURU</option>');
document.write('				<option value="NEPAL">NEPAL</option>');
document.write('				<option value="NETHERLANDS">NETHERLANDS</option>');
document.write('				<option value="NETHERLANDS ANTILLES">NETHERLANDS ANTILLES</option>');
document.write('				<option value="NEW CALEDONIA">NEW CALEDONIA</option>');
document.write('				<option value="NEW ZEALAND">NEW ZEALAND</option>');
document.write('				<option value="NICARAGUA">NICARAGUA</option>');
document.write('				<option value="NIGER">NIGER</option>');
document.write('				<option value="NIGERIA">NIGERIA</option>');
document.write('				<option value="NIUE">NIUE</option>');
document.write('				<option value="NORFOLK ISLAND">NORFOLK ISLAND</option>');
document.write('				<option value="NORTHERN MARIANA ISLANDS">NORTHERN MARIANA ISLANDS</option>');
document.write('				<option value="NORWAY">NORWAY</option>');
document.write('				<option value="OMAN">OMAN</option>');
document.write('				<option value="PAKISTAN">PAKISTAN</option>');
document.write('				<option value="PALAU">PALAU</option>');
document.write('				<option value="PALESTINIAN TERRITORY, OCCUPIED">PALESTINIAN TERRITORY, OCCUPIED</option>');
document.write('				<option value="PANAMA">PANAMA</option>');
document.write('				<option value="PAPUA NEW GUINEA">PAPUA NEW GUINEA</option>');
document.write('				<option value="PARAGUAY">PARAGUAY</option>');
document.write('				<option value="PERU">PERU</option>');
document.write('				<option value="PHILIPPINES">PHILIPPINES</option>');
document.write('				<option value="PITCAIRN">PITCAIRN</option>');
document.write('				<option value="POLAND">POLAND</option>');
document.write('				<option value="PORTUGAL">PORTUGAL</option>');
document.write('				<option value="PUERTO RICO">PUERTO RICO</option>');
document.write('				<option value="QATAR">QATAR</option>');
document.write('				<option value="RÉUNION">RÉUNION</option>');
document.write('				<option value="ROMANIA">ROMANIA</option>');
document.write('				<option value="RUSSIAN FEDERATION">RUSSIAN FEDERATION</option>');
document.write('				<option value="RWANDA">RWANDA</option>');
document.write('				<option value="SAINT BARTHÉLEMY">SAINT BARTHÉLEMY</option>');
document.write('				<option value="SAINT HELENA">SAINT HELENA</option>');
document.write('				<option value="SAINT KITTS AND NEVIS">SAINT KITTS AND NEVIS</option>');
document.write('				<option value="SAINT LUCIA">SAINT LUCIA</option>');
document.write('				<option value="SAINT MARTIN">SAINT MARTIN</option>');
document.write('				<option value="SAINT PIERRE AND MIQUELON">SAINT PIERRE AND MIQUELON</option>');
document.write('				<option value="SAINT VINCENT AND THE GRENADINES">SAINT VINCENT AND THE GRENADINES</option>');
document.write('				<option value="SAMOA">SAMOA</option>');
document.write('				<option value="SAN MARINO">SAN MARINO</option>');
document.write('				<option value="SAO TOME AND PRINCIPE">SAO TOME AND PRINCIPE</option>');
document.write('				<option value="SAUDI ARABIA">SAUDI ARABIA</option>');
document.write('				<option value="SENEGAL">SENEGAL</option>');
document.write('				<option value="SERBIA">SERBIA</option>');
document.write('				<option value="SEYCHELLES">SEYCHELLES</option>');
document.write('				<option value="SIERRA LEONE">SIERRA LEONE</option>');
document.write('				<option value="SINGAPORE">SINGAPORE</option>');
document.write('				<option value="SLOVAKIA">SLOVAKIA</option>');
document.write('				<option value="SLOVENIA">SLOVENIA</option>');
document.write('				<option value="SOLOMON ISLANDS">SOLOMON ISLANDS</option>');
document.write('				<option value="SOMALIA">SOMALIA</option>');
document.write('				<option value="SOUTH AFRICA">SOUTH AFRICA</option>');
document.write('				<option value="SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS">SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS</option>');
document.write('				<option value="SPAIN">SPAIN</option>');
document.write('				<option value="SRI LANKA">SRI LANKA</option>');
document.write('				<option value="SUDAN">SUDAN</option>');
document.write('				<option value="SURINAME">SURINAME</option>');
document.write('				<option value="SVALBARD AND JAN MAYEN">SVALBARD AND JAN MAYEN</option>');
document.write('				<option value="SWAZILAND">SWAZILAND</option>');
document.write('				<option value="SWEDEN">SWEDEN</option>');
document.write('				<option value="SWITZERLAND">SWITZERLAND</option>');
document.write('				<option value="SYRIAN ARAB REPUBLIC">SYRIAN ARAB REPUBLIC</option>');
document.write('				<option value="TAIWAN, PROVINCE OF CHINA">TAIWAN, PROVINCE OF CHINA</option>');
document.write('				<option value="TAJIKISTAN">TAJIKISTAN</option>');
document.write('				<option value="TANZANIA, UNITED REPUBLIC OF">TANZANIA, UNITED REPUBLIC OF</option>');
document.write('				<option value="THAILAND">THAILAND</option>');
document.write('				<option value="TIMOR-LESTE">TIMOR-LESTE</option>');
document.write('				<option value="TOGO">TOGO</option>');
document.write('				<option value="TOKELAU">TOKELAU</option>');
document.write('				<option value="TONGA">TONGA</option>');
document.write('				<option value="TRINIDAD AND TOBAGO">TRINIDAD AND TOBAGO</option>');
document.write('				<option value="TUNISIA">TUNISIA</option>');
document.write('				<option value="TURKEY">TURKEY</option>');
document.write('				<option value="TURKMENISTAN">TURKMENISTAN</option>');
document.write('				<option value="TURKS AND CAICOS ISLANDS">TURKS AND CAICOS ISLANDS</option>');
document.write('				<option value="TUVALU">TUVALU</option>');
document.write('				<option value="UGANDA">UGANDA</option>');
document.write('				<option value="UKRAINE">UKRAINE</option>');
document.write('				<option value="UNITED ARAB EMIRATES">UNITED ARAB EMIRATES</option>');
document.write('				<option value="UNITED KINGDOM">UNITED KINGDOM</option>');
document.write('				<option value="UNITED STATES">UNITED STATES</option>');
document.write('				<option value="UNITED STATES MINOR OUTLYING ISLANDS">UNITED STATES MINOR OUTLYING ISLANDS</option>');
document.write('				<option value="URUGUAY">URUGUAY</option>');
document.write('				<option value="UZBEKISTAN">UZBEKISTAN</option>');
document.write('				<option value="VANUATU">VANUATU</option>');
document.write('				<option value="VENEZUELA">VENEZUELA</option>');
document.write('				<option value="VIET NAM">VIET NAM</option>');
document.write('				<option value="VIRGIN ISLANDS, BRITISH">VIRGIN ISLANDS, BRITISH</option>');
document.write('				<option value="VIRGIN ISLANDS, U.S.">VIRGIN ISLANDS, U.S.</option>');
document.write('				<option value="WALLIS AND FUTUNA">WALLIS AND FUTUNA</option>');
document.write('				<option value="WESTERN SAHARA">WESTERN SAHARA</option>');
document.write('				<option value="YEMEN">YEMEN</option>');
document.write('				<option value="ZAMBIA">ZAMBIA</option>');
document.write('				<option value="ZIMBABWE">ZIMBABWE</option>');
document.write('			</select>');
document.write('		</td></tr>');
document.write('			<tr><td id="languageSelect_'+randomNumber+'" class="labelDiv" style="background-color:#FFFFFF;">');
document.write('				<label class="required lblDiv">Languages:</label>');
document.write('				<select name="preferredLanguage_'+randomNumber+'" style="width: 240px;" id="addSubscription_preferredLanguage">');
/* Default language check */
document.write('					<option name="preferredLanguageOption" value="en">English</option>');

if( newLang1 != null ){
	}

if( newLang2 != null ){
	}

if( newLang3 != null ){
	}

if( newLang4 != null ){
	}


/* Not default languages */
document.write('					<option name="preferredLanguageOption" value="da">Danish</option>');
if( newLang1 != null ){
			document.write('					<option name="preferredLanguageOption" value="lt">'+newLang1+'</option>');
	}

if( newLang2 != null ){
			document.write('					<option name="preferredLanguageOption" value="lt">'+newLang2+'</option>');
	}

if( newLang3 != null ){
		document.write('					<option name="preferredLanguageOption" value="ee">'+newLang3+'</option>');
	}

if( newLang4 != null ){
		document.write('					<option name="preferredLanguageOption" value="ru">'+newLang4+'</option>');
	}

document.write('				</select>');
document.write('			</td></tr>');
document.write('			<tr><td id="infoTypesLabel_'+randomNumber+'" class="labelDiv" style="background-color:#FFFFFF;">');
document.write('				<label class="required" style="width:100%">Select the message types you wish to receive:</label>');
document.write('			</td></tr>');
document.write('			<tr><td style="background-color:#FFFFFF;">');
document.write('			<table class="infoTypes_table" name="infoTypes_table" id="infoTypes_table_'+randomNumber+'" style="border-collapse: collapse;">');
document.write('				<tr>');
document.write('					<td width="20">');
document.write('						<input type="checkbox" name="infoTypes_'+randomNumber+'" value="1" id="addSubscription_selectedInfoTypes" class="noBorder" />');
document.write('					</td>');
document.write('					<td>');
document.write('						<label class="infoTypes">Financial reports</label>');
document.write('					</td>');
document.write('				</tr>');
document.write('				<tr>');
document.write('					<td>');
document.write('						<input type="checkbox" name="infoTypes_'+randomNumber+'" value="6" id="addSubscription_selectedInfoTypes" class="noBorder"/>');
document.write('					</td>');
document.write('					<td><label class="infoTypes">All Company Announcements</label></td>');
document.write('				</tr>');
document.write('				<tr>');
document.write('					<td>');
document.write('						<input type="checkbox" name="infoTypes_'+randomNumber+'" value="12" id="addSubscription_selectedInfoTypes" class="noBorder"/>');
document.write('					</td>');
document.write('					<td><label class="infoTypes">Annual report</label></td>');
document.write('				</tr>');
if ( newParam1 != null ){
document.write('				<tr>');
document.write('					<td>');
document.write('						<input type="checkbox" name="infoTypes_'+randomNumber+'" value="15" id="addSubscription_selectedInfoTypes" class="noBorder"/>');
document.write('					</td>');
document.write('					<td><label class="infoTypes" id="newParam1"></label></td>');
document.write('				</tr>');
}
if ( newParam2 != null ){
document.write('				<tr>');
document.write('					<td>');
document.write('						<input type="checkbox" name="infoTypes_'+randomNumber+'" value="16" id="addSubscription_selectedInfoTypes" class="noBorder"/>');
document.write('					</td>');
document.write('					<td><label class="infoTypes" id="newParam2"></label></td>');
document.write('				</tr>');
}
document.write('			</table>');
document.write('			</td></tr>');
document.write('			<tr><td class="labelDiv" style="background-color:#FFFFFF;">');
document.write('				<label class="required">Email:</label>');
document.write('				<input type="text" name="selectedEmail" id="selectedEmail" value="" id="addSubscription_selectedEmail" style="width: 240px;" class="formItem"/>');
document.write('			</td></tr>');
document.write('			<tr><td class="btnContainer" style="background-color:#FFFFFF;">');
document.write('				<button id="sendButton" style="float: right;" type="button" class="discButton" onClick="javascript: checkFieldsAndSubmit();">Send</button>');
document.write('			</td></tr>');
if ( newParam3 != null ){
document.write('			<tr>');
document.write('			<td class="labelDiv" style="background-color:#FFFFFF;">');
document.write('				<label id="bottomText"></label>');
document.write('			</td></tr>');
}
document.write('	</table>');
document.write('	<input type="hidden" name="disclosingPartyId" value="393" id="addSubscription_disclosingPartyId"/>');
document.write('</form>');


if( newParam1 != null ){
	document.getElementById("newParam1").innerHTML = newParam1;
}

if( newParam2 != null ){
	document.getElementById("newParam2").innerHTML = newParam2;
}

if( newParam3 != null ){
	document.getElementById("bottomText").innerHTML = newParam3;
}

if( document.getElementsByName('preferredLanguage_'+randomNumber).length == 1 ){
}
if( document.getElementsByName('infoTypes_'+randomNumber).length == 1 ){
	var table = document.getElementById('infoTypes_table_'+randomNumber);
	document.getElementById('addSubscription_selectedInfoTypes').checked = true;
	table.style.visibility='hidden';
	table.style.position='absolute';
	var tableLabel = document.getElementById('infoTypesLabel_'+randomNumber);
	tableLabel.style.visibility='hidden';
	tableLabel.style.position='absolute';
}