
//////////////////////////////////		COMMON USED BY ALL SEARCH PAGES		///////////////////////////
var xmlhttp,alerted
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
  try {
  xmlhttp=new ActiveXObject('Msxml2.XMLHTTP')
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject('Microsoft.XMLHTTP')
  } catch (E) {
   alert('You must have Microsofts XML parsers available')
  }
 }
@else
 alert('You must have JScript version 5 or above.')
 xmlhttp=false
 alerted=true
@end @*/
if (!xmlhttp && !alerted) {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  alert('You need a browser which supports an XMLHttpRequest Object.')
 }
}
///////////////////////////////////////////////////////////////////////////
function RSshipchange() {
 if (xmlhttp.readyState==4) {

  document.getElementById(whichdiv).style.visibility='visible';
  document.getElementById(whichdiv).style.display='block';

  document.getElementById(changediv).innerHTML=xmlhttp.responseText

 }
}
/////////////////////////////////////////////////////////////////////////////////////
function addships(lineid){

  whichdiv = 'DIVship';
  changediv = 'shipsel';

url = 'http://www.addisoncruises.co.uk/cgi-bin/getships.cgi?lineid=' + lineid;

  xmlhttp.open('GET', url,true);
  xmlhttp.onreadystatechange=RSshipchange
  xmlhttp.send(null)
}
///////////////////////////////////////////////////////////////////////////








