
							function go(loc)
						{window.location.href = loc;}





						function clrTextBox(){document.forms.emailsub.emailAddr.value='';}


						
						function isBrowserSupp() {
							version =  parseFloat( navigator.appVersion );

							if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
								return false;
							}else {
								return true;
							}

							return true;
						}

						function isLeapYear(yrStr){
							var leapYear=false;
							var year = parseInt(yrStr, 10);
							
							if (year%4 == 0){
								leapYear=true;
								if (year%100 == 0)
									{
									leapYear=false;
										if (year%400 == 0){
										leapYear=true;
									}
								}
							}
							return leapYear;
						}

						function setStateProvince(test){
						
							if(test =='Edinburgh'){
								document.forms['myform'].stateProvince.value = '';
								document.forms['myform'].country.value='GB';
							}else if(test =='New+York+City'){
								document.forms['myform'].stateProvince.value = 'NY';
								document.forms['myform'].country.value='US';
							}else if(test =='Miami'){
								document.forms['myform'].stateProvince.value = 'FL';
								document.forms['myform'].country.value='US';
							}else if(test =='Las+Vegas'){
								document.forms['myform'].stateProvince.value = 'NV';
								document.forms['myform'].country.value='US';
							}else if(test =='Chicago'){
								document.forms['myform'].stateProvince.value = 'IL';
								document.forms['myform'].country.value='US';
							}else if(test =='San+Francisco'){
								document.forms['myform'].stateProvince.value = 'CA';
								document.forms['myform'].country.value='US';
							}else if(test =='Atlanta'){
								document.forms['myform'].stateProvince.value = 'GA';
								document.forms['myform'].country.value='US';
							}else if(test =='London'){
								document.forms['myform'].stateProvince.value = '';
								document.forms['myform'].country.value='GB';
							}else if(test =='Dallas'){
								document.forms['myform'].stateProvince.value = 'TX';
								document.forms['myform'].country.value='US';
							}else if(test =='Washington'){
								document.forms['myform'].stateProvince.value = 'DC';
								document.forms['myform'].country.value='US';
							}else if(test =='Boston'){
								document.forms['myform'].stateProvince.value = 'MA';
								document.forms['myform'].country.value='US';
							}else if(test =='Orlando'){
								document.forms['myform'].stateProvince.value = 'FL';
								document.forms['myform'].country.value='US';
							}else if(test =='San+Diego'){
								document.forms['myform'].stateProvince.value = 'CA';
								document.forms['myform'].country.value='US';
							}else if(test =='Paris'){
								document.forms['myform'].stateProvince.value = '';
								document.forms['myform'].country.value='FR';
							}else if(test =='Los+Angeles'){
								document.forms['myform'].stateProvince.value = 'CA';
								document.forms['myform'].country.value='US';
							}else if(test =='New+Orleans'){
								document.forms['myform'].stateProvince.value = 'LA';
								document.forms['myform'].country.value='US';
							}else if(test =='Berlin'){
								document.forms['myform'].stateProvince.value = '';
								document.forms['myform'].country.value='DE';
							}else if (test ==''){
								document.forms['myform'].stateProvince.value = '';
								document.forms['myform'].country.value = '';
							}
						}


						function getDaysInMonth(mthIdx, YrStr)
						{
							
							var maxDays=31
							
							if (mthIdx==1){
								if (isLeapYear(YrStr)){
									maxDays=29;
								}else{
									maxDays=28;
								}
							}

						
							if (mthIdx==3 || mthIdx==5 || mthIdx==8 || mthIdx==10){
								maxDays=30;
							}
							return maxDays;
						}


						
						function adjustDate(mthIdx, Dt){
							var value=0;

							var today = new Date()
							var theYear = parseInt(today.getYear(),10)

							if (mthIdx < today.getMonth()) {
								theYear = (parseInt(today.getYear(), 10) + 1)
							}

							if(theYear<100){
								theYear = "19" + theYear
							}else{
								if((theYear-100) < 10){
									theYear = "0" + (theYear-100)
								}else{
									theYear = (theYear-100)+""
								}
								theYear = "20" + theYear
							}


							var numDays=getDaysInMonth(mthIdx, theYear);

							if (mthIdx==1){
								if (Dt.options.selectedIndex + 1 < numDays){
									return 0;
								}else{
									Dt.options.selectedIndex=numDays - 1;
								
									if (numDays==29){
										return 99;
									}else{
										return 1;
									}
								}
							}

							if (Dt.options.selectedIndex + 1 < numDays){
								value=0;
							}else{
								if (Dt.options.selectedIndex + 1 > numDays){
									Dt.options.selectedIndex--;
									value=3;
								}else{
								
									value=2;
								}
							}
							return value;
						}

						function amadChange(inM,inD,outM,outD){
							if (!isBrowserSupp()){
									return;
							}

							var res = adjustDate(inM.options.selectedIndex, inD);
							if (res != 0){
							   outD.options.selectedIndex=0;
							   if (outM.options.selectedIndex==11){
									outM.options.selectedIndex=0
							   }
							   else{
									outM.options.selectedIndex=inM.options.selectedIndex + 1;
							   }
							}else{
								outM.options.selectedIndex = inM.options.selectedIndex;
								outD.options.selectedIndex = inD.options.selectedIndex+1;
							}
							return;
						}

						function dmddChange(outM,outD){
							if (!isBrowserSupp()){
								return;
							}

							adjustDate(outM.options.selectedIndex,outD);
							return;
						}

						function validateForm(){
							if(document.forms['myform'].speccountry.value!=null && document.forms['myform'].speccountry.value!='Enter Country'&& document.forms['myform'].speccountry.value!=''){
								document.forms['myform'].country.value=document.forms['myform'].speccountry.value;
							}else{}

							if(document.forms['myform'].speccity.value!=null && document.forms['myform'].speccountry.value!='Enter City'&& document.forms['myform'].speccity.value!=''){
								document.forms['myform'].city.value=document.forms['myform'].speccity.value;
							}else{}



							for (var x=0 ; x<window.document.forms['myform'].radcity.length; x++) {
								if (window.document.forms['myform'].radcity[x].checked &&
								    window.document.forms['myform'].radcity[x].value=='London') {
									window.document.forms['myform'].city.value='London';
									window.document.forms['myform'].stateProvince.value='';
									window.document.forms['myform'].country.value='GB';
								}else if(window.document.forms['myform'].radcity[x].checked){
									window.document.forms['myform'].city.value=window.document.forms['myform'].radcity[x].value;
									setStateProvince(window.document.forms['myform'].city.value);
								}
							}

							setStateProvince(document.forms['myform'].city.value);

							if(document.forms['myform'].hotelName !=null && document.forms['myform'].hotelName.value!=''){
								window.document.forms['myform'].mode.value='1';
								window.document.forms['myform'].validateDates.value='false';
								window.document.forms['myform'].avail.value='false';
							}else{
								window.document.forms['myform'].mode.value='2';
								window.document.forms['myform'].validateDates.value='true';
								window.document.forms['myform'].avail.value='true';
							}
								window.document.forms['myform'].submit();
						}

						function clearTextBox(source) {
							 window.document.forms['myform'].usertyped.checked=false;
							document.forms.myform.speccity.value='';
							document.forms.myform.speccountry.value='';

						}

						function clearCities(){
							for(var x=0;x<window.document.forms['myform'].radcity.length;x++){
								window.document.forms['myform'].radcity[x].checked=false;
							}
						}

						function checkDest(destName) {
							for (var x=0 ; x<window.document.forms['myform'].radcity.length; x++) {
								if (window.document.forms['myform'].radcity[x].value==destName) {
									window.document.forms['myform'].radcity[x].checked=true;
								}
							}
						}

