<!--
tagt = new Date();
tagt1= tagt.getHours();
tagt2 = tagt.getMinutes();
tagt3= tagt.getSeconds();
if(tagt1==0){tagt4=" AM";tagt1=12}
else if(tagt1 <= 11){tagt4=" AM"}
else if(tagt1 == 12){tagt4=" PM";tagt1=12}
else if(tagt1 >= 13){tagt4=" PM";tagt1-=12}
if(tagt2 <= 9){tagt2="0"+tagt2}

var pref = "www."; // special prefix, or ""
var at1 = "@";
var dot = ".";
var typ = "com";
var typ2 = "co.";
var id1 = "sales";    
var id2 = "uk";
var id3 = "za";   
var url = "talanha";      
var fid1 = "bob";      
var fid2 = "jam"   
var furl = "yahoo";  

function FixUK (obj1) {  // fix a hyperlink mail addr
var tmp;
  tmp = obj1.href;
  obj1.href = "mailto:" + id2 + id1 + at1 + url + dot + typ2 + id2 ;
  alert (" Please Click OK to email UK Distribution Team. \n") ;
  return true;             // make it work...
}
function FixZA (obj1) {  // fix a hyperlink mail addr
var tmp;
  tmp = obj1.href;
  obj1.href = "mailto:" + id3 + id1 + at1 + url + dot + typ ;
  alert (" Please Click OK to email the SA Sales Team. \n") ;
  return true;             // make it work...
}
function FixLink (obj1) {  
var tmp;
  tmp = obj1.href;
  obj1.href = "http://" + pref + url + dot + typ;
  alert ("Please don't use this form to spam! \n\n Click OK to Continue. \n");
  return true;             // make it work...
}

var initialtab=[1, "sc1"];
var turntosingle=0;
var disabletablinks=0;
var previoustab="";
if (turntosingle==1){
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>');}
function expandcontent(cid, aobject){
if(document.getElementById(cid)!=undefined)
{
 document.getElementById('sc1').style.display='none';
 document.getElementById('sc2').style.display='none';
 document.getElementById('sc3').style.display='none';
 document.getElementById('sc4').style.display='none';
 
 document.getElementById(cid).style.display='block';
}
}
function highlighttab(aobject){
if (typeof tabobjlinks=="undefined"){
collectddimagetabs();}
if(tabobjlinks!=undefined)
{
for (i=0; i<tabobjlinks.length; i++){
tabobjlinks[i].className="";
aobject.className="current";}
}
}
function collectddimagetabs(){
var tabobj=document.getElementById("ddimagetabs");
var tabobjlinks=undefined;
if(tabobj!=undefined) { tabobjlinks=tabobj.getElementsByTagName("A") }
}
function do_onload(){
collectddimagetabs();
expandcontent('sc1',null);
}
if (window.addEventListener){
window.addEventListener("load", do_onload, false);}
else if (window.attachEvent){
window.attachEvent("onload", do_onload);}
else if (document.getElementById){
window.onload=do_onload;}

function change(id){ 
     ID = document.getElementById(id); 
     
     if(ID.style.display == "") 
          ID.style.display = "none"; 
     else 
          ID.style.display = ""; 
      }

// - - - - - - - ++ - - - - - - - - //
function dolink(part1, part2 ){

//* ---- Change first part to Title Text ----- *//
var str= part1 ;
var fnm = str.charAt(0).toUpperCase()+ str.substr(1, str.length-1);
var fName = (fnm.split(".",1));


var eDom = 'talanha.com';
datetoday = new Date();
	timenow=datetoday.getTime();
	datetoday.setTime(timenow);
	thehour = datetoday.getHours();
	if (thehour >= 18) gtod = "evening";
	else if (thehour >= 12) gtod = "afternoon";
	else gtod = "morning";
	var greeting = ("Good " + gtod + " ");

var wPage = document.title;
wLocat = document.location;

link = 'ma'+'ilto'+':"'+fName+'"\<' + part1 + '@' +eDom+'\>?subject=Talanha.com Web Query - '+part2+'&body='+greeting+fName+',%0A%0AI refer to your web page - "'+wPage+'" - found at%0A'+wLocat+' %0A%0A' ;
var ans = confirm ('You are about to email '+fName+' on \<'+ part1 + '@' +eDom+'\>')

    if(ans) {
	return link;
	} else {
		alert('Please telephone +44 (0)870 4797201 and '+fName+' will help you!');
		/* window.location = 'http://www.talanha.com/contact.php'; */ 
		/* return showForm();*/
		return wLocat;
    }
}
// - - - - - - - ++ - - - - - - - - //

function Clicknprint()
{ 
  var disp_setting="toolbar=no,location=no,directories=no,menubar=no,"; 
      disp_setting+="scrollbars=yes,width=640, height=600, left=100, top=25"; 
  var v1 = document.getElementById("print1").innerHTML; 
  var v2 = document.getElementById("print2").innerHTML;
  var v3 = document.getElementById("print3").innerHTML; 
  var v4 = document.getElementById("print4").innerHTML; 
  var content_vlue = (v1+v2+v3+v4);
  
  var tncprint=window.open("","",disp_setting); 
   tncprint.document.open(); 
   tncprint.document.write('<html><head><title>Terms Summary</title>'); 
   tncprint.document.write('<style type="text/css" media="all">@import "css/print.css";</style>');
   tncprint.document.write('</head><body onLoad="self.print()"><center>');
   tncprint.document.write('<input type="button" value="Close this window" class="noPrint" id="btn" onClick="window.close();">'); 
   tncprint.document.write('<h4>Talanha Terms and Conditions Summary</h4><p><small>The full terms and conditions can be found at<br /> www.talanha.com/tandc.php and www.talanha.com/ordering.php</small>');         
   tncprint.document.write(content_vlue);
   tncprint.document.write('<p></p><p><small>These terms and conditions will change from time to time and without notice.</small></p>');         
   tncprint.document.write('</center></body></html>'); 
   tncprint.focus(); 
   tncprint.document.close();
}

//-->