isNav = (navigator.appName == "Netscape") ;
isIE = (navigator.appName.indexOf("Microsoft") != -1);

function layerWrite(id,nestref,text) {
	document.getElementById("details").innerHTML = text;
	document.getElementById("details").style.display = "inline";

	/*
	if (isNav) {
		var lyr = (nestref)? eval('document.'+nestref+'.document.'+id+'.document') : document.layers[id].document
		lyr.open()
		lyr.write(text)
		lyr.close()
	}
	else if (isIE) document.all[id].innerHTML = text
	*/

}

var thead="<table width='640' border='0' cellspacing='2' cellpadding='2'><tr><td class='error'>"
var tfoot="</td></tr></table><br>"


var locationArray = new Array();

locationArray[0] = thead+"Email - <a href='mailto:tonycranny@dsi-pbl.com'>tonycranny@dsi-pbl.com</a> - to be advised of regional project contact."+tfoot
locationArray[1] = thead+"RRTI - Kevin Heikkinen<br>Mobile: +1 403 669 2589 | Head Office: +1 780 463 4648 | Email: <a href='mailto:kheikkinen@shaw.ca'>kheikkinen@shaw.ca</a><br><br>Norquest Machine Works Ltd - Manufacturing: +1 780 434 3322<br>Email: <a href='mailto:norquest@norquestgroup.com'>norquest@norquestgroup.com</a>"+tfoot
locationArray[2] = thead+"Weir Houston Engineers (Europe & Denmark): +31 (0)251 211925 - <a href='mailto:tschulz@weirhouston.com '>tschulz@weirhouston.com </a><br><br>NORWAY (QSST) Thomas Bakke Mobile : +47 91 69 29 36 Fax:  +47 47 70 51 84  - <a href='mailto:thomas@qsst.no'>thomas@qsst.no </a><br>Drilling Operations Contact - <a href='mailto:alecgwynn@dsi-pbl.com'>alecgwynn@dsi-pbl.com</a>"+tfoot
locationArray[3] = thead+"DownHole Devices LLC<br><br>Email: <a href='mailto:information@downholedvcs.com'>information@downholedvcs.com</a>"+tfoot
//locationArray[3] = thead+"DownHole Devices LLC<br><br>Tel: +1 337 839 2413<br>Fax: +1 337 839 2414<br>Cell:+1 337 344 5999<br>Email: <a href='mailto:johnray@downholedvcs.com'>johnray@downholedvcs.com </a>"+tfoot
locationArray[4] = thead+"Email - <a href='mailto:tonycranny@dsi-pbl.com'>tonycranny@dsi-pbl.com</a> - to be advised of regional project contact."+tfoot
locationArray[5] = thead+"Third Wave Group:<br>Tel: +62-21-72787872<br>Fax: +62-21-72787871<br><a href='mailto:m.sourders@tigaombak.co.id'>m.sourders@tigaombak.co.id</a>"+tfoot
locationArray[6] = thead+"Email - <a href='mailto:alecgwynn@dsi-pbl.com'>alecgwynn@dsi-pbl.com</a> - to be advised of regional project contact."+tfoot
locationArray[7] = thead+"Third Wave Group: +65 5422264"+tfoot
locationArray[8] = thead+"Third Wave Group: +66 2 3184403"+tfoot
locationArray[9] = thead+"Anfield Services Limited<br><br>Tel: +1 868 657 7339<br>Fax: +1 868 652 5759<br>Email: <a href='mailto:anfield@rave-tt.net'>anfield@rave-tt.net</a>"+tfoot
locationArray[10] = thead+"Aberdeen PBL Services Center<br>Kestrel Engineering<br><br>Tel:+44(0)1224 773901<br>Fax:+44(0)1224 774901<br><br><a href='mailto:graham@kestrel01.fsnet.co.uk'>graham@kestrel01.fsnet.co.uk</a><br><br><br>DSI Direct +44 7887 556245<br><br>Alec Gwynn-Engineering Consultant for Europe/CIS<br><a href='mailto:alecgwynn@dsi-pbl.com'>alecgwynn@dsi-pbl.com</a>"+tfoot
locationArray[11] = thead+"Asia Pacific Drilling Services: +84 64 848337"+tfoot
/*
locationArray[0] = thead+"Al Wazan Trading: +971 2 622 5773"+tfoot
locationArray[1] = thead+"RRTI - Kevin Heikkinen<br>Mobile: +1 403 669 2589 | Head Office: +1 780 463 4648 | Email: <a href='mailto:kheikkinen@shaw.ca'>kheikkinen@shaw.ca</a><br><br>Norquest Machine Works Ltd - Manufacturing: +1 780 434 3322<br>Email: <a href='mailto:norquest@norquestgroup.com'>norquest@norquestgroup.com</a>"+tfoot
locationArray[2] = thead+"Weir Houston Engineers (Europe & Scandinavia): +31 251 211925<br>Weir Houston Engineers (Norway Only) - +47 51531900"+tfoot
locationArray[3] = thead+"Global Completions Services Inc: +1 318 2335302"+tfoot
locationArray[4] = thead+"C. Ramon Associates: +91 22 2616812 / 2703433"+tfoot
locationArray[5] = thead+"Third Wave Group: +62 21 75908858"+tfoot
locationArray[6] = thead+"Caspian Downhole Service: +7 3122254395"+tfoot
locationArray[7] = thead+"Third Wave Group: +65 5422264"+tfoot
locationArray[8] = thead+"Third Wave Group: +66 2 3184403"+tfoot
locationArray[9] = thead+"Anfield Services Limited<br><br>Tel: +1 868 657 7339<br>Fax: +1 868 652 5759<br>Email: <a href='mailto:anfield@rave-tt.net'>anfield@rave-tt.net</a>"+tfoot
locationArray[10] = thead+"Cansco Equipment & Rental Limited: +44 1224 872228"+tfoot
locationArray[11] = thead+"Asia Pacific Drilling Services: +84 64 848337"+tfoot
*/
function getLocation(val){
	layerWrite('details',null,locationArray[val])
}