


<!----------------------- Start of date function ------------- ->




<!----------------------- Start of wendselect function ------------- ->



function wendselect() {



var nummenu = document.enginesearch.numbercount;

var numbercount = 1;

var maxnumbers = 57;

if (numbercount > maxnumbers) {

alert("Be sure to select a max weekend number value!");

}

else {

var ok = 1;

r = new Array (numbercount);

for (var i = 1; i <= numbercount; i++) {

r[i] = Math.round(Math.random() * (maxnumbers-1))+1;

}

for (var i = numbercount; i >= 1; i--) {

for (var j = numbercount; j >= 1; j--) {

if ((i != j) && (r[i] == r[j])) ok = 0;

}

}

if (ok) {

var output = "";

for (var k = 1; k <= numbercount; k++) {

output += "The activity no. is " + " = " + r[k] + "\n";

}

document.enginesearch.results.value = output;



}

else numbers();

}

}

// End -->



<!----------------------- End of wendselect function ------------- ->



<!----------------------- Start of map function ------------- ->

  



    function map()



    {



    g=document.propertyforsale.postcode.value;

	

  url="http://www.multimap.com/map/browse.cgi?client=public&db=pc&addr1=&client=public&addr2=&advanced=&addr3=&pc="+g+"&quicksearch="+g+"";

 {

viewmenu = window.open(url, 'picture', 'fullscreen=no,width=100,height=200,left=80,top=80,scrollbars=yes,menubar=no,status=yes,resizable=yes,toolbar=no,location=no,directories=no')

viewmenu.focus()

}



    }

  

<!----------------------- End of map function ------------- ->





<!----------------------- Selection of passing values functions ------------- ->

function topSplit() {

<!--

var passed = replace(replace(location.search.substring(1),"+"," "),"=","&");



function split(string,text) {



    var strLength = string.length, txtLength = text.length;

  

  // value is TRUE if either strLength or txtLength = 0 (empty)

    if ((strLength == 0) || (txtLength == 0)) return;

    var i = string.indexOf(text);

  

  //

    if ((!i) && (text != string.substring(0,txtLength))) return;

  

  //

    if (i == -1) {

        splitArray[splitIndex++] = string;

        return;

    }

  

    splitArray[splitIndex++] = string.substring(0,i);

  

    if (i+txtLength < strLength)

        split(string.substring(i+txtLength,strLength),text);

    return;

}



//-->

}



function hidden1() {

	var splitIndex = 0, m = 0, h = 0, splitArray = new Object();

	var passed = replace(replace(location.search.substring(1),"%3D","&"),"%26","&");

	

	split(passed,'hidden1=');

	var chosen = splitArray[1];

	

	split(chosen,'&');

	}



function replace(string,text,by) {



    // Replaces 'text' with 'by' in string

  

  // string.indexOf(text) this will give the position where the text is found

  // if the string isn't found the value will be -1

  // newstr is getting initialised

  var i = string.indexOf(text), newstr = '';

  

  // Comparison test

    // !i will return 'TRUE' if i is false

  // || will return 'TRUE' if either the left part or right part is 'TRUE' 

  // check to see if i=-1 (nothing was found), if it is return 'TRUE'

  if ((!i) || (i == -1))

        return string;

  

  // If the comparison test is true do this

  // newstr picks up the data between 0 and i and appends the data 'by' to it

    newstr += string.substring(0,i) + by;

  

  // 

    if (i+text.length < string.length)

  // replace(the old url with this one in the brackets)

  // substring(start,end)

        newstr += replace(string.substring(i+text.length,string.length),text,by);

    return newstr;

}



function split(string,text) {



    splitArray = string.split(text);

    splitIndex = splitArray.length;

}







function deleteOption(object,index) {

    object.options[index] = null;

}



function addOption(object,text,value) {

    var defaultSelected = true;

    var selected = false;

    var optionName = new Option(text, value, defaultSelected, selected)

    object.options[object.length] = optionName;

}



function copySelected(fromObject,toObject) {

    for (var i=0, l=fromObject.options.length;i<l;i++) {

        if (fromObject.options[i].selected)

            addOption(toObject,fromObject.options[i].text,fromObject.options[i].value);

    }

    for (var i=fromObject.options.length-1;i>-1;i--) {

        if (fromObject.options[i].selected)

            deleteOption(fromObject,i);

    }

}



function copyAll(fromObject,toObject) {

    for (var i=0, l=fromObject.options.length;i<l;i++) {

        addOption(toObject,fromObject.options[i].text,fromObject.options[i].value);

    }

    for (var i=fromObject.options.length-1;i>-1;i--) {

        deleteOption(fromObject,i);

    }

}



function populateHidden(fromObject,toObject) {

    var output = '';

    for (var i=0, l=fromObject.options.length;i<l;i++) {

            output += escape(fromObject.name) + '=' + escape(fromObject.options[i].text) + '&';

	}

    

    toObject.value = output;

	

	

}

<!----------------------- end of Selection of passing values functions ------------- ->





function HomePage()

{



if (document.all){

  document.write('<A  HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.uksearchindex.com\');">');

  document.write('<font size="2" color="aqua" ><B>Make this your Homepage </B></font></a>');

}



// If it's Netscape 6, tell user to drag link onto Home button

// Be sure to change the "http://www.uksearchindex.com\"

// to the URL you want them to bookmark.

else if (document.getElementById){

  document.write('<a href="http://www.uksearchindex.com">Drag this link onto your Home button to make this your Home Page.</a>');

}



// If it's Netscape 4 or lower, give instructions to set Home Page

else if (document.layers){

  document.write('<font size="2" color="gold" ><b>Make this site your homepage </b></FONT><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');

}



// If it's any other browser, for which I don't know the specifications of home paging, display instructions

else {

  document.write('<font size="2" color="gold" ><b>Make this site your homepage </b></FONT><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');

}

//  End -->

}



<!----------------------- Start of clearbox function ------------- ->

function clearBox(objElement)

{

objElement.value=""

}

<!----------------------- end of clearbox function ------------- ->





<!----------------------- Start of web search function ------------- ->

  



    function search()



    {



    g=document.enginesearch.T1.value;



    ch=document.enginesearch.D1.value;



    if(ch=="no")



                {



                alert("Please select a site to search first - Thank you");



                document.enginesearch.D1.focus();



                }



    if(ch=="y")



               window.location="http://uk.search.yahoo.com/search?p="+g;



    if(ch=="s")



               window.location="http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+g;



    if(ch=="a")



               window.location="http://uk.altavista.com/cgi-bin/query?pg=q&what&kl=en&q="+g;



    if(ch=="g")



               window.location="http://www.google.com/search?q="+g;



    if(ch=="l")



               window.location="http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query="+g+"&x=17&y=8";



    if(ch=="w")



               window.location="http://www.webcrawler.com/cgi-bin/webquery?searchtext="+g;



    if(ch=="m")



               window.location="http://www.mamma.com/Mamma?pl=1&timeout=4&qtype=0&query="+g;



    if(ch=="d")



               window.location="http://search.dmoz.org/cgi-bin/search?search="+g;



    if(ch=="gx")



                window.location="http://d.galaxy.com/b/q?k="+g+"&x=18&y=14";



    if(ch=="t")



               window.location="http://www.teoma.com/search.asp?&t="+g+"&qcat=1&qsrc=0&search.x=30&search.y=10";



    if(ch=="ask")



               window.location="http://www.ask.com/main/askjeeves.asp?ask="+g+"&origin=0&optout=1&site_name=Jeeves&metasearch=yes&ads=";



	if(ch=="msn")



               window.location="http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q="+g;



   

			   

    }

  

<!----------------------- End of web search function ------------- ->



<!----------------------- Start of populatelength function ------------- ->

function populatelength(inForm,selected) {



var helicoilArray;

var helicoilArraylength;

var gaugeArray;

var gaugeArraylength;

var ImperialgaugeArray;

var ImperialgaugeArraylength;

var MetricArray;

var MetricArraylength;

var InchArray;

var InchArraylength;

var whitArray;

var whitArraylength;

var uncArray;

var uncArraylength;

var unfArray;

var unfArraylength;

var baArray;

var baArraylength;

var bsfArray;

var bsfArraylength;

var bspArray;

var bspArraylength;

var buttArray;

var buttArraylength;

var knuckleArray;

var knuckleArraylength;

var sharpArray;

var sharpArraylength;

var acmeArray;

var acmeArraylength;

var squareArray;

var squareArraylength;

var ansiArray;

var ansiArraylength;

var wormArray;

var wormArraylength;



var clevis5Arraylength;

var clevis6Arraylength;





var clevis5Arraylength = new Array("('None Selected','',true,true)",

"('40')");

var clevis6Arraylength = new Array("('None Selected','',true,true)",

"('16')",

"('18')",

"('20')",

"('25')",

"('30')",

"('35')",

"('40')");



var helicoilArray = new Array("('None Selected','',true,true)",

"('M2')",

"('M2.5')",

"('M3')",

"('M4')",

"('M5')",

"('M6')",

"('M8')",

"('M10')",

"('M12')",

"('M14')",

"('M16')",

"('M20')",

"('M24')",

"('M30')");



var helicoilArraylength = new Array("('None Selected','',true,true)",

"('1.0D')",

"('1.5D')",

"('2.0D')",

"('2.5D')",

"('3.0D')");



var gaugeArray = new Array("('None Selected','',true,true)",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')",

"('12')",

"('14')",

"('16')",

"('18')",

"('20')");



var gaugeArraylength = new Array("('None Selected','',true,true)",

"('6.5mm')",

"('9mm')",

"('12mm')",

"('19mm')",

"('22mm')",

"('25mm')",

"('28mm')",

"('32mm')",

"('38mm')",

"('44mm')",

"('50mm')",

"('57mm')",

"('63mm')",

"('70mm')",

"('76mm')",

"('82mm')",

"('89mm')",

"('101mm')",

"('115mm')",

"('127mm')",

"('152mm')");



var ImperialgaugeArray = new Array("('None Selected','',true,true)",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')",

"('12')",

"('14')",

"('16')",

"('18')",

"('20')");



var ImperialgaugeArraylength = new Array("('None Selected','',true,true)",

"('1/4 in')",

"('3/8 in')",

"('1/2 in')",

"('3/4 in')",

"('7/8 in')",

"('1 in')",

"('1 1/8 in')",

"('1 1/4 in')",

"('1 1/2 in')",

"('1 3/4 in')",

"('2 in')",

"('2 1/4 in')",

"('2 1/2 in')",

"('2 3/4 in')",

"('3 in')",

"('3 1/4 in')",

"('3 1/2 in')",

"('4 in')",

"('4 1/2 in')",

"('5 in')",

"('6 in')");



var MetricArray = new Array("('None Selected','',true,true)",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('8')",

"('10')",

"('12')",

"('14')",

"('16')",

"('18')",

"('20')",

"('22')",

"('25')",

"('28')",

"('32')",

"('36')",

"('40')",

"('45')",

"('50')",

"('56')",

"('63')",

"('71')",

"('80')",

"('90')",

"('100')",

"('112')",

"('125')",

"('140')");



var metricArraylength = new Array("('None Selected','',true,true)",

"('M1.6')",

"('M2')",

"('M3')",

"('M3.5')",

"('M4')",

"('M5')",

"('M6')",

"('M8')",

"('M10')",

"('M12')",

"('M14')",

"('M16')",

"('M20')",

"('M22')",

"('M24')",

"('M27')",

"('M30')",

"('M36')",

"('M42')",

"('M48')",

"('M56')",

"('M64')",

"('M72')",

"('M80')",

"('M90')",

"('M100')");



var InchArray = new Array("('None Selected','',true,true)",

"('1/4')",

"('3/8')",

"('1/2')",

"('9/16')",

"('5/8')",

"('3/4')",

"('7/8')",

"('1in')",

"('1.1/8')",

"('1.1/4')",

"('1.3/8')",

"('1.1/2')",

"('1.5/8')",

"('1.3/4')",

"('1.7/8')",

"('2in')",

"('2.1/4')",

"('2.1/2')",

"('2.3/4')",

"('3in')",

"('3.1/4')",

"('3.1/2')",

"('3.3/4')",

"('4in')",

"('4.1/4')",

"('4.1/2')",

"('4.3/4')",

"('5.1/2')",

"('6in')",

"('6.1/2')",

"('7in')",

"('8in')",

"('9in')");



var InchArraylength = new Array("('None Selected','',true,true)",

"('Dave')",

"('you')",

"('need')",

"('to')",

"('update')",

"('the')",

"('length')",

"('Inch')",

"('M10')",

"('M12')",

"('M14')",

"('M16')",

"('M20')",

"('M22')",

"('M24')",

"('M27')",

"('M30')",

"('M36')",

"('M42')",

"('M48')",

"('M56')",

"('M64')",

"('M72')",

"('M80')",

"('M90')",

"('M100')");





var whitArray = new Array("('None Selected','',true,true)",

"('1/16 60TPI')",

"('3/32 48TPI')",

"('1/8 40TPI')",

"('5/32 32TPI')",

"('3/16 24TPI')",

"('7/32 24TPI')",

"('1/4 20TPI')",

"('5/16 18TPI')",

"('3/8 16TPI')",

"('7/16 14TPI')",

"('1/2 12TPI')",

"('9/16 12TPI')",

"('5/8 11TPI')",

"('3/4 10TPI')",

"('7/8 9TPI')",

"('1 8TPI')",

"('1-1/8 7TPI')",

"('1-1/4 7TPI')",

"('1-1/2 6TPI')",

"('2 4-1/2TPI')");



var whitArraylength = new Array("('None Selected','',true,true)",

"('1/16 60TPI')",

"('3/32 48TPI')",

"('1/8 40TPI')",

"('5/32 32TPI')",

"('3/16 24TPI')",

"('7/32 24TPI')",

"('1/4 20TPI')",

"('5/16 18TPI')",

"('3/8 16TPI')",

"('7/16 14TPI')",

"('1/2 12TPI')",

"('9/16 12TPI')",

"('5/8 11TPI')",

"('3/4 10TPI')",

"('7/8 9TPI')",

"('1 8TPI')",

"('1-1/8 7TPI')",

"('1-1/4 7TPI')",

"('1-1/2 6TPI')",

"('2 4-1/2TPI')");



var uncArray = new Array("('None Selected','',true,true)",

"('1-64TPI')",

"('2-56TPI')",

"('3-48TPI')",

"('4-40TPI')",

"('5-40TPI')",

"('6-32TPI')",

"('8-32TPI')",

"('10-24TPI')",

"('12-24TPI')",

"('1/4-20TPI')",

"('5/16-18TPI')",

"('3/8-16TPI')",

"('7/16-14TPI')",

"('1/2-13TPI')",

"('9/16-12TPI')",

"('5/8-11TPI')",

"('3/4-10TPI')",

"('7/8-9TPI')",

"('1in-8TPI')",

"('1-1/8-7TPI')",

"('1-1/4-7TPI')",

"('1-3/8-6TPI')",

"('1-1/2-6TPI')",

"('1-3/4-5TPI')",

"('2in-4TPI')",

"('2-1/4-4TPI')",

"('2-1/2-4TPI')",

"('2-3/4-4TPI')",

"('3in-4TPI')",

"('3-1/4-4TPI')",

"('3-1/2-4TPI')",

"('3-3/4-4TPI')",

"('4in-4TPI')");



var uncArraylength = new Array("('None Selected','',true,true)",

"('1-64TPI')",

"('2-56TPI')",

"('3-48TPI')",

"('4-40TPI')",

"('5-40TPI')",

"('6-32TPI')",

"('8-32TPI')",

"('10-24TPI')",

"('12-24TPI')",

"('1/4-20TPI')",

"('5/16-18TPI')",

"('3/8-16TPI')",

"('7/16-14TPI')",

"('1/2-13TPI')",

"('9/16-12TPI')",

"('5/8-11TPI')",

"('3/4-10TPI')",

"('7/8-9TPI')",

"('1in-8TPI')",

"('1-1/8-7TPI')",

"('1-1/4-7TPI')",

"('1-3/8-6TPI')",

"('1-1/2-6TPI')",

"('1-3/4-5TPI')",

"('2in-4TPI')",

"('2-1/4-4TPI')",

"('2-1/2-4TPI')",

"('2-3/4-4TPI')",

"('3in-4TPI')",

"('3-1/4-4TPI')",

"('3-1/2-4TPI')",

"('3-3/4-4TPI')",

"('4in-4TPI')");



var unfArray = new Array("('None Selected','',true,true)",

"('0-80TPI')",

"('1-72TPI')",

"('2-64TPI')",

"('3-56TPI')",

"('4-48TPI')",

"('5-44TPI')",

"('6-40TPI')",

"('8-36TPI')",

"('10-32TPI')",

"('12-28TPI')",

"('1/4-28TPI')",

"('5/16-24TPI')",

"('3/8-24TPI')",

"('7/16-20TPI')",

"('9/16-18TPI')",

"('5/8-18TPI')",

"('3/4-16TPI')",

"('7/8-14TPI')",

"('1in-12TPI')",

"('1-1/8-12TPI')",

"('1-1/4-12TPI')",

"('1-3/8-12TPI')",

"('1-1/2-12TPI')");



var unfArraylength = new Array("('None Selected','',true,true)",

"('0-80TPI')",

"('1-72TPI')",

"('2-64TPI')",

"('3-56TPI')",

"('4-48TPI')",

"('5-44TPI')",

"('6-40TPI')",

"('8-36TPI')",

"('10-32TPI')",

"('12-28TPI')",

"('1/4-28TPI')",

"('5/16-24TPI')",

"('3/8-24TPI')",

"('7/16-20TPI')",

"('9/16-18TPI')",

"('5/8-18TPI')",

"('3/4-16TPI')",

"('7/8-14TPI')",

"('1in-12TPI')",

"('1-1/8-12TPI')",

"('1-1/4-12TPI')",

"('1-3/8-12TPI')",

"('1-1/2-12TPI')");



var baArray = new Array("('None Selected','',true,true)",

"('0')",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')");



var baArraylength = new Array("('None Selected','',true,true)",

"('0')",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')");



var bsfArray = new Array("('None Selected','',true,true)",

"('3/16')",

"('7/32')",

"('1/4')",

"('9/32')",

"('5/16')",

"('3/8')",

"('7/16')",

"('1/2')",

"('9/16')",

"('5/8')",

"('11/16')",

"('3/4')",

"('13/16')",

"('7/8')",

"('1in')",

"('1-1/8')",

"('1-1/4')",

"('1-3/8')",

"('1-1/2')",

"('1-5/8')",

"('1-3/4')",

"('2in')",

"('2-1/4')",

"('2-1/2')");



var bsfArraylength = new Array("('None Selected','',true,true)",

"('3/16')",

"('7/32')",

"('1/4')",

"('9/32')",

"('5/16')",

"('3/8')",

"('7/16')",

"('1/2')",

"('9/16')",

"('5/8')",

"('11/16')",

"('3/4')",

"('13/16')",

"('7/8')",

"('1in')",

"('1-1/8')",

"('1-1/4')",

"('1-3/8')",

"('1-1/2')",

"('1-5/8')",

"('1-3/4')",

"('2in')",

"('2-1/4')",

"('2-1/2')");



var bspArray = new Array("('None Selected','',true,true)",

"('1/8')",

"('1/4')",

"('3/8')",

"('1/2')",

"('3/4')",

"('1')",

"('1-1/4')",

"('1-1/2')",

"('2')",

"('2-1/2')",

"('3')",

"('3-1/2')",

"('4')",

"('4-1/2')",

"('5')",

"('6')");



var bspArraylength = new Array("('None Selected','',true,true)",

"('1/8')",

"('1/4')",

"('3/8')",

"('1/2')",

"('3/4')",

"('1')",

"('1-1/4')",

"('1-1/2')",

"('2')",

"('2-1/2')",

"('3')",

"('3-1/2')",

"('4')",

"('4-1/2')",

"('5')",

"('6')");



var buttArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('BUTTRESS')");



var buttArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('BUTTRESS')");



var knuckleArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('KNUCKLE')");



var knuckleArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('KNUCKLE')");



var sharpArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SHARP')");



var sharpArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SHARP')");



var acmeArray = new Array("('None Selected','',true,true)",

"('1/4-16TPI')",

"('5/16-14TPI')",

"('3/8-12TPI')",

"('7/16-12TPI')",

"('1/2-10TPI')",

"('5/8-8TPI')",

"('3/4-6TPI')",

"('7/8-6TPI')",

"('1in-5TPI')",

"('1-1/8-5TPI')",

"('1-1/4-5TPI')",

"('1-3/8-4TPI')",

"('1-1/2-4TPI')",

"('1-3/4-4TPI')",

"('2in-4TPI')",

"('2-1/4-3TPI')",

"('2-1/2-3TPI')",

"('2-3/4-3TPI')",

"('3in-2TPI')",

"('3-1/2-2TPI')",

"('4in-2TPI')",

"('4-1/2-2TPI')",

"('5in-2TPI')");



var acmeArraylength = new Array("('None Selected','',true,true)",

"('1/4-16TPI')",

"('5/16-14TPI')",

"('3/8-12TPI')",

"('7/16-12TPI')",

"('1/2-10TPI')",

"('5/8-8TPI')",

"('3/4-6TPI')",

"('7/8-6TPI')",

"('1in-5TPI')",

"('1-1/8-5TPI')",

"('1-1/4-5TPI')",

"('1-3/8-4TPI')",

"('1-1/2-4TPI')",

"('1-3/4-4TPI')",

"('2in-4TPI')",

"('2-1/4-3TPI')",

"('2-1/2-3TPI')",

"('2-3/4-3TPI')",

"('3in-2TPI')",

"('3-1/2-2TPI')",

"('4in-2TPI')",

"('4-1/2-2TPI')",

"('5in-2TPI')");



var squareArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SQUARE')");



var squareArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SQUARE')");



var ansiArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('ANSI')");



var ansiArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('ANSI')");



var wormArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('WORM')");



var wormArraylength = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('WORM')");



var selectedArray = eval(selected + "Array");

while (selectedArray.length < inForm.helilength.options.length) {

inForm.helilength.options[(inForm.helilength.options.length - 1)] = null;

}

for (var i=0; i < selectedArray.length; i++) {

eval("inForm.helilength.options[i]=" + "new Option" + selectedArray[i]);

}

if (inForm.helithread.options[0].value == '') {

inForm.helithread.options[0]= null;

}

}



// ----------------------- end of populatelength function -------------------------------->







<!----------------------- Start of SHOWTIP2 function -------------------------------------- ->

<!---on a mouseover this scrolls text                                            --------- ->

<!------------------------------------------------------------------------------------------------------------- ->

<!--- Uses 3 parameters

<!--- Param 1 is the document 'this'

<!--- Param 2 is the 'event'

<!--- Param 3 is the 'text' to display

<!---

function showtip2(current,e,text){

  if (document.all&&document.readyState=="complete"){

    document.all.tooltip2.innerHTML='<marquee style="border:1px solid black">'+text+'</marquee>'

    document.all.tooltip2.style.pixelLeft=event.clientX+document.body.scrollLeft+10

    document.all.tooltip2.style.pixelTop=event.clientY+document.body.scrollTop+10

    document.all.tooltip2.style.visibility="visible"

}

  else if (document.layers){

    document.tooltip2.document.nstip.document.write('<b>'+text+'</b>')

    document.tooltip2.document.nstip.document.close()

    document.tooltip2.document.nstip.left=0

    currentscroll=setInterval("scrolltip()",100)

    document.tooltip2.left=e.pageX+10

    document.tooltip2.top=e.pageY+10

    document.tooltip2.visibility="show"

}

}

function hidetip2(){

  if (document.all)

    document.all.tooltip2.style.visibility="hidden"

    else if (document.layers){

    clearInterval(currentscroll)

    document.tooltip2.visibility="hidden"

}

}

//  End -->







<!----------------------- End of SHOWTIP2 function -------------------------------------- ->







<!----------------------- start of Fading Message function ------------- ->





function doPause(){

   totality=false; t=setTimeout("changecolor()",pause);

   }



function initiate(){







//set the height of the display in pixels

high=10;



//set the width of the display in pixels

wide=380;



//set the pixel coordinates for the upper left hand corner of the display

Xpos=190;

Ypos=50;



// move the display away from the edges of the background

pad=15;



// set the background color of the display

bgcol="4169e1";



//add a background image if you want.

// *** for no image, just leave empty quotes (ex. cellbg=""; ) ***

cellbg="";



// set the font

fntFam="verdana,helvetica,arial";

fntSize=12;



// set how how many seconds you want the message to stay remain at totality.

pause=2.5;





// Do not edit these values below!!!



icolor=0;

mcolor=1;

imsg=0;

spWidth=wide-(2*pad);

totality=false;

glowing=true;

var theMsg="";

var cellcontent="";

pause=pause*1000;



if(cellbg.length>4){cellbg=" background="+cellbg}

else{cellbg="";}













   getContentColor();

   getMsg();

   getCellContent();

   if(document.all){

   msgbg.innerHTML=cellcontent;

   msgfade.innerHTML=theMsg;

   msgbg.style.posLeft=Xpos;

   msgbg.style.posTop=Ypos;

   msgfade.style.posLeft=Xpos+pad;

   msgfade.style.posTop=Ypos+pad;

   t=setTimeout("changecolor()",50);}

   if(document.layers){

   document.msgbg.document.write(cellcontent);

   document.msgbg.document.close();

   document.msgfade.document.write(theMsg);

   document.msgfade.document.close();

   document.msgbg.left=Xpos;

   document.msgbg.top=Ypos;

   document.msgfade.left=Xpos+pad;

   document.msgfade.top=Ypos+pad;

   t=setTimeout("changecolor()",100);}

   }

function changecolor(){

   if(totality==true){doPause();}

   else{

   getMsg();

   getContentColor();

   if(document.all){

   msgfade.innerHTML=theMsg;

   t=setTimeout("changecolor()",50);}

   if(document.layers){

   document.msgfade.document.write(theMsg);

   document.msgfade.document.close();

   t=setTimeout("changecolor()",70);}

   }

   }

function getFadeColor(){

   icolor=icolor-1;

   if(mcolor==1){contentcolor=colors1[icolor];}

   else{contentcolor=colors2[icolor];}

   }

function getGlowColor(){

   icolor=icolor+1;

   if(mcolor==1){contentcolor=colors1[icolor];}

   else{contentcolor=colors2[icolor];}

   }

function changemsg(){

   if(imsg==msg.length-1){imsg=0; mcolor=1;}

   else if(imsg != msg.lenght-1 && mcolor==1){imsg=imsg+1; mcolor=0;}

   else{imsg=imsg+1; mcolor=1;}

   }

function getContentColor(){

   if(icolor==colors1.length-1 && glowing==true){

   getFadeColor(); glowing=false; totality=true;}

   else if(icolor < colors1.length && glowing==true){

   getGlowColor();}

   else if(icolor < 1 && glowing==false){changemsg(); getGlowColor(); glowing=true;}

   else{getFadeColor();}

   }

function getMsg() {

   theMsg="<span style='font-size:"+fntSize+"pt; font-family:"+fntFam+"; width:"+spWidth+";'>"

   theMsg+="<B><font color="+contentcolor+">"+msg[imsg]+"</font></B> "

   theMsg+="</span>"

   }

function getCellContent(){

   cellcontent="<TABLE height="+high+

   " width="+wide+" bgcolor="+bgcol+" cellpadding=0 cellspacing=0><TR><TD"+cellbg+"> </TD></TR></TABLE>"}

//  End -->



<!----------------------- end of Fading Message function ------------- ->





<!----------------------- start of cascading menu function ------------- ->

 

   function InitMenu()

   {

     var bar = menuBar.children     



     for(var i=0;i < bar.length;i++) 

        {

          var menu=eval(bar[i].menu)

          menu.style.visibility = "hidden"

          bar[i].onmouseover = new Function("ShowMenu("+bar[i].id+")")

          var Items = menu.children

          for(var j=0; j<Items.length; j++)

            {

              var menuItem = eval(Items[j].id)

                

                if(menuItem.menu != null)

                   { 

                    menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'>4</Span>"

                    //var tmp = eval(menuItem.id+"_Arrow")

                    // tmp.style.pixelLeft = menu.getBoundingClientRect().Right //- tmp.offsetWidth - 15

                    FindSubMenu(menuItem.menu)}

               

                 if(menuItem.cmd != null) 

                   {

                   menuItem.onclick = new Function("Do("+menuItem.id+")") } 

                   

              menuItem.onmouseover = new Function("highlight("+Items[j].id+")")

            

            }    

        

        }  

   }

   function FindSubMenu(subMenu)

   {

         var menu=eval(subMenu)

         var Items = menu.children

          for(var j=0; j<Items.length; j++)

            {

              menu.style.visibility = "hidden"

              var menuItem = eval(Items[j].id)

              

              

              if(menuItem.menu!= null)

                 {

                    menuItem.innerHTML += "<Span Id="+menuItem.id+"_Arrow class='Arrow'></Span>"

                    // var tmp = eval(menuItem.id+"_Arrow")

                    //tmp.style.pixelLeft = 35 //menuItem.getBoundingClientRect().right - tmp.offsetWidth - 15

                    FindSubMenu(menuItem.menu)

                 }



                 if(menuItem.cmd != null) 

                   {

                   menuItem.onclick = new Function("Do("+menuItem.id+")") } 

                  

              menuItem.onmouseover = new Function("highlight("+Items[j].id+")")

                 

            }  

   } 

   function ShowMenu(obj)

   {

     HideMenu(menuBar)

     var menu = eval(obj.menu)

     var bar = eval(obj.id)

     bar.className="barOver"

     menu.style.visibility = "visible"

     menu.style.pixelTop =  obj.getBoundingClientRect().top + obj.offsetHeight + Bdy.scrollTop

     menu.style.pixelLeft = obj.getBoundingClientRect().left + Bdy.scrollLeft

   }

   

   function highlight(obj)

   {

     var PElement = eval(obj.parentElement.id)

     if(PElement.hasChildNodes() == true)

     {  var Elements = PElement.children

       for(var i=0;i<Elements.length;i++)

       {

          TE = eval(Elements[i].id)

          TE.className = "menuItem"

       }

      } 

     obj.className="ItemMouseOver"

     window.defaultStatus = obj.title

     ShowSubMenu(obj)

   }

   

   function Do(obj)

   {

    var cmd = eval(obj).cmd	

    window.navigate(cmd)

     

   }

   

   function HideMenu(obj)

   {

          if(obj.hasChildNodes()==true)

              {  

                 var child = obj.children     

                 

                 for(var j =0;j<child.length;j++)

                  {

                     if (child[j].className=="barOver")

                     {var bar = eval(child[j].id)

                      bar.className="Bar"}

                      

                     if(child[j].menu != null)

                       {

                          var childMenu = eval(child[j].menu)

                          if(childMenu.hasChildNodes()==true) 

                               HideMenu(childMenu)

                          

                           childMenu.style.visibility = "hidden" 

                         }

                  }

              

              }

   }

  function ShowSubMenu(obj)

  {

     PMenu = eval(obj.parentElement.id)

      HideMenu(PMenu)

     if(obj.menu != null)

     {

     var menu = eval(obj.menu)

     menu.style.visibility = "visible"

     menu.style.pixelTop =  obj.getBoundingClientRect().top + Bdy.scrollTop

     menu.style.pixelLeft = obj.getBoundingClientRect().right + Bdy.scrollLeft

     if(menu.getBoundingClientRect().right > window.screen.availWidth )

       menu.style.pixelLeft = obj.getBoundingClientRect().left - menu.offsetWidth

    }

  } 











 ///////////////////CascadedDropdown Menu/////////////////

 //Date : 08/09/2001               						//

 //Version : 1.0        								//

 //Author Mr.Arun N Kumar	                            //

 //EMail: n_arunk@hotmail.com							//		

 /////////////////////////////////////////////////////////

 // Modifications on this code is not recomended

 // Suggestions are welcome



<!----------------------- End of cascading menu function ------------- ->







<!----------------------- Start of populateExtras function ------------- ->

function populateExtras(inForm,selected) {





var ballArray;

var clevisArray;

var cotterArray;

var dowelArray;

var driveArray;

var dropArray;

var grooveArray;

var linchArray;

var pipeArray;

var retainArray;

var shaftArray;

var splitArray;

var springArray;

var taperArray;



var ballArray = new Array("('Please select','',true,true)",

"('Ball')");



var clevisArray = new Array("('Please select','',true,true)",

"('Plain with Head')",

"('Plain without Head')",

"('No Head but drilled')",

"('Head and drilled')",

"('Head and grooved')");



var cotterArray = new Array("('Please select','',true,true)",

"('Standard')",

"('Tee Head')",

"('Open or even leg')",

"('Drive open')",

"('Hinge pin')",

"('Taper Tee head')",

"('Offset eye')",

"('Hump back')");



var dowelArray = new Array("('Please select','',true,true)",

"('Chamfer both ends')",

"('Dome and chamfer')",

"('Extractable')");



var driveArray = new Array("('Please select','',true,true)",

"('drive pin')");



var dropArray = new Array("('Please select','',true,true)",

"('drop nose pin')");



var grooveArray = new Array("('Please select','',true,true)",

"('GP1 DIN 1471')",

"('GP2 DIN 1472')",

"('GP3 DIN 1473')",

"('GP4 DIN 1474')",

"('GP5 ')",

"('GP8 DIN 1475')",

"('Series 30')",

"('Series 31')",

"('Series 32')",

"('Series 33')",

"('Series 34')",

"('Series 46')",

"('Series 47')",

"('Series 49')");



var linchArray = new Array("('Please select','',true,true)",

"('Linch pin A80')",

"('Linch pin A81')");



var pipeArray = new Array("('Please select','',true,true)",

"('Pipe pin')");



var retainArray = new Array("('Please select','',true,true)",

"('Series 89')",

"('Series 90')",

"('Series 91')",

"('Series 92')",

"('Series 96')",

"('Series 97')");



var shaftArray = new Array("('Please select','',true,true)",

"('Shaft pin')");



var splitArray = new Array("('Please select','',true,true)",

"('Split')",

"('Plain without Head')",

"('No Head but drilled')",

"('Head and drilled')",

"('Head and grooved')");



var springArray = new Array("('Please select','',true,true)",

"('Slotted Spring Pin')",

"('Coiled Spring Pin')");



var taperArray = new Array("('Please select','',true,true)",

"('Standard Taper')",

"('Extractable Taper')");





var selectedArray = eval(selected + "Array");





while (selectedArray.length < inForm.extras.options.length) {

inForm.extras.options[(inForm.extras.options.length - 1)] = null;

}

for (var i=0; i < selectedArray.length; i++) {

eval("inForm.extras.options[i]=" + "new Option" + selectedArray[i]);

}

if (inForm.pintype.options[0].value == '') {

inForm.pintype.options[0]= null;

}

}



// ----------------------- end of populateextras function -------------------------------->











<!----------------------- Start of populateAnyitem function ------------- ->

function populateMaterial(inForm,selected) {



var ballArray;

var clevisArray;

var cotterArray;

var dowelArray;

var driveArray;

var dropArray;

var grooveArray;

var linchArray;

var pipeArray;

var retainArray;

var shaftArray;

var springArray;

var slotArray;

var taperArray;



var ballArray = new Array("('None Selected','',true,true)",

"('Mild Steel')",

"('Stainless')");



var clevisArray = new Array("('None Selected','',true,true)",

"('Mild Steel')");



var cotterArray = new Array("('None Selected','',true,true)",

"('Mild Steel')",

"('Stainless')",

"('Brass')");



var dowelArray = new Array("('None Selected','',true,true)",

"('Mild Steel')",

"('Stainless')");



var driveArray = new Array("('None Selected','',true,true)",

"('Steel')",

"('Brass')",

"('Monel')",

"('Aluminium')");



var dropArray = new Array("('None Selected','',true,true)",

"('Stainless')");



var grooveArray = new Array("('None Selected','',true,true)",

"('Mild Steel')",

"('Stainless')");



var linchArray = new Array("('None Selected','',true,true)",

"('Mild Steel')");



var pipeArray = new Array("('None Selected','',true,true)",

"('Mild Steel')");



var retainArray = new Array("('None Selected','',true,true)",

"('High Carbon Steel')",

"('Stainless')");



var shaftArray = new Array("('None Selected','',true,true)",

"('Mild Steel')");



var springArray = new Array("('None Selected','',true,true)",

"('Carbon Steel')",

"('Stainless')");



var slotArray = new Array("('None Selected','',true,true)",

"('Carbon Steel')",

"('Stainless')");



var taperArray = new Array("('None Selected','',true,true)",

"('Mild Steel')",

"('Stainless')");





var selectedArray = eval(selected + "Array");





while (selectedArray.length < inForm.Material.options.length) {

inForm.Material.options[(inForm.Material.options.length - 1)] = null;

}

for (var i=0; i < selectedArray.length; i++) {

eval("inForm.Material.options[i]=" + "new Option" + selectedArray[i]);

}

if (inForm.pintype.options[0].value == '') {

inForm.pintype.options[0]= null;

}

}



// ----------------------- end of populateAnyitem function -------------------------------->













<!----------------------- Start of msg function -------------------------------------- ->

<!---allows user choice of recipient and subject                                            --------- ->

<!------------------------------------------------------------------------------------------------------------- ->



function msg() {

document.mailer.action = "mailto:"

mailtoandsubject =

((document.mailer.mailtoperson.options[document.mailer.mailtoperson.selectedIndex].value) +

'?subject=' + document.mailer.subject.value);

}



<!----------------------- End of msg function -------------------------------------- ->







<!----------------------- Start of frameBranding function -------------------------------------- ->

<!---This function informs the user they are leaving the site           --------- ->

<!------------------------------------------------------------------------------------------------------------- ->



function frameBranding(actualurl, brandingurl, frametype) {

function newWindow(actualurl) {

viewmenu = window.open

(actualurl, 'thedisplay', 

'fullscreen=no,width=650,height=450,left=80,top=80,scrollbars=yes,menubar=no,status=yes,resizable=yes,toolbar=yes,location=no,directories=yes')



}





}

//  End -->



<!----------------------- End of frameBranding function -------------------------------------- ->



<!----------------------- Start of newWindow function -------------------------------------- ->

<!---This function will open a new window with the options below--------- ->

<!------------------------------------------------------------------------------------------------------------- ->



function newWindow(whatuwant2c) {

viewmenu = window.open

(whatuwant2c, 'thedisplay', 

'fullscreen=no,width=650,height=450,left=80,top=80,scrollbars=yes,menubar=no,status=yes,resizable=yes,toolbar=yes,location=no,directories=yes')

viewmenu.focus()

}





<!----------------------- END of   newWindow function ------------- ->



<!----------------------- Start of smallWindow function -------------------------------------- ->

<!---This function will open a small window with the options below--------- ->

<!------------------------------------------------------------------------------------------------------------- ->



function smallWindow(whatuwant2c) {

viewmenu = window.open

(whatuwant2c, 'thedisplay', 

'fullscreen=no,width=100,height=200,left=80,top=80,scrollbars=yes,menubar=no,status=yes,resizable=yes,toolbar=no,location=no,directories=no')

viewmenu.focus()

}

<!----------------------- END of   smallWindow function ------------- ->





<!----------------------- Start of placeFocus function -------------------------------------- ->

<!---This function places the cursor in a field on the page --------- ->

<!------------------------------------------------------------------------------------------------------------- ->





function placeFocus() {

if (document.forms.length > 0) {

var field = document.forms[0];

for (i=0; i< field.length; i++) {

if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") ||

(field.elements[i].type.toString().charAt(0) == "s")) {

document.forms[0].elements[i].focus();

break;

				}

			}

		}

	}



<!----------------------- End of placeFocus function -------------------------------------- ->























<!----------------------- Start of list organiser function -------------------------------------- ->

<!---This function will allow you to add, delete, and move up and down in a select box--------- ->

<!------------------------------------------------------------------------------------------------------------- ->



function move(fbox,tbox) {

var i = 0;

if(fbox.value != "") {

var no = new Option();

no.value = fbox.value;

no.text = fbox.value;

tbox.options[tbox.options.length] = no;

fbox.value = "";

   }

}

function remove(box) {

for(var i=0; i<box.options.length; i++) {

if(box.options[i].selected && box.options[i] != "") {

box.options[i].value = "";

box.options[i].text = "";

   }

}

BumpUp(box);

} 

function BumpUp(abox) {

for(var i = 0; i < abox.options.length; i++) {

if(abox.options[i].value == "")  {

for(var j = i; j < abox.options.length - 1; j++)  {

abox.options[j].value = abox.options[j + 1].value;

abox.options[j].text = abox.options[j + 1].text;

}

var ln = i;

break;

   }

}

if(ln < abox.options.length)  {

abox.options.length -= 1;

BumpUp(abox);

   }

}

function Moveup(dbox) {

for(var i = 0; i < dbox.options.length; i++) {

if (dbox.options[i].selected && dbox.options[i] != "" && dbox.options[i] != dbox.options[0]) {

var tmpval = dbox.options[i].value;

var tmpval2 = dbox.options[i].text;

dbox.options[i].value = dbox.options[i - 1].value;

dbox.options[i].text = dbox.options[i - 1].text

dbox.options[i-1].value = tmpval;

dbox.options[i-1].text = tmpval2;

      }

   }

}

function Movedown(ebox) {

for(var i = 0; i < ebox.options.length; i++) {

if (ebox.options[i].selected && ebox.options[i] != "" && ebox.options[i+1] != ebox.options[ebox.options.length]) {

var tmpval = ebox.options[i].value;

var tmpval2 = ebox.options[i].text;

ebox.options[i].value = ebox.options[i+1].value;

ebox.options[i].text = ebox.options[i+1].text

ebox.options[i+1].value = tmpval;

ebox.options[i+1].text = tmpval2;

      }

   }

}







<!----------------------- END of   list organiser function ------------- ->















function MakeArray(n){



		if(n<=0){

		this.length=0;

		return this;

		}



		this.length=n;



		for(var i=1;i<=n;i++){

		this[i]=0;

		}



	return this;



}







function f_store(sTR){

var i;

if(index >= history.length)

{

for(i=1;i<history.length;i++)

history[i-1]=history[i];

index=history.length-1;

}

history[index]=cmmnd+ ":" + sTR;

++cmmnd;

++index;

document.history.command.value="";

}



function f_print(){

var allCmmnds, i;

allCmmnds = "";

for(i=0;i<index;i++)

allCmmnds += history[i]+ "\n";





}

<!-- These 3 commands are required for the functions MakeArray, f_store and f_print

var history=new MakeArray(30);

var index=0;

var cmmnd=1;

//-------------------- -->











function reqlineno(){



var delindex

delindex = parseInt(prompt

("please enter the line number you wish to delete",""));





var size

size=history.length;





var validNo

validNo = (delindex != "NaN");



var inRange

inRange = (delindex >= 1) && (delindex <= history.length )



delindex = delindex-1

var xoutput

		 

if (validNo && inRange) {



   for (var i=0; i <=size; i++)

   

   history[i] =((i-1 == delindex) ? "delete" : history[i]);



   for (var j=delindex; j<size-1; j++)

   

if (j !=size) history[j] = history[j+1];



   history.length = size-1;



   

   var allCmmnds, i;allCmmnds = "";

for(i=0;i<index;i++)

allCmmnds += history[i]+ "\n";

document.heli.command.value=allCmmnds;

   

    }

   

else alert

("you can only delete items entered below - from 1 to "+(size-1)

+ "."); 

}



















<!----------------------- Start of populatesize function   Width ------------ ->

function populatesize(inForm,selected) {







var helicoilArray;

var gaugeArray;

var ImperialgaugeArray;

var MetricArray;

var whitArray;

var uncArray;

var unfArray;

var baArray;

var bsfArray;

var bspArray;

var buttArray;

var knuckleArray;

var sharpArray;

var acmeArray;

var squareArray;

var ansiArray;

var wormArray;

var clevisinchArray;

var clevismetricArray;



var clevismetricArray = new Array("('None Selected','',true,true)",

"('5')",

"('6')",

"('8')",

"('10')");



var clevisinchArray = new Array("('None Selected','',true,true)",

"('3/16')",

"('1/4')",

"('5/16')",

"('3/8')",

"('1/2')",

"('5/8')");



var helicoilArray = new Array("('None Selected','',true,true)",

"('M2')",

"('M2.5')",

"('M3')",

"('M4')",

"('M5')",

"('M6')",

"('M8')",

"('M10')",

"('M12')",

"('M14')",

"('M16')",

"('M20')",

"('M24')",

"('M30')");



var helicoilArraylength = new Array("('None Selected','',true,true)",

"('1.0D')",

"('1.5D')",

"('2.0D')",

"('2.5D')",

"('3.0D')");



var gaugeArray = new Array("('None Selected','',true,true)",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')",

"('12')",

"('14')",

"('16')",

"('18')",

"('20')");



var ImperialgaugeArray = new Array("('None Selected','',true,true)",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')",

"('12')",

"('14')",

"('16')",

"('18')",

"('20')");







var metricArray = new Array("('None Selected','',true,true)",

"('M1.6')",

"('M2')",

"('M2.5')",

"('M3')",

"('M3.5')",

"('M4')",

"('M5')",

"('M6')",

"('M8')",

"('M10')",

"('M12')",

"('M14')",

"('M16')",

"('M20')",

"('M22')",

"('M24')",

"('M27')",

"('M30')",

"('M36')",

"('M42')",

"('M48')",

"('M56')",

"('M64')",

"('M72')",

"('M80')",

"('M90')",

"('M100')");



var MetricArray = new Array("('None Selected','',true,true)",

"('1')",

"('1.2')",

"('1.6')",

"('2')",

"('2.5')",

"('3.2')",

"('4')",

"('5')",

"('6.3')",

"('8')",

"('10')",

"('13')");



var InchArray = new Array("('None Selected','',true,true)",

"('1/32')",

"('3/64')",

"('1/16')",

"('5/64')",

"('3/32')",

"('7/64')",

"('1/8')",

"('9/64')",

"('5/32')",

"('3/16')",

"('7/32')",

"('1/4')",

"('9/32')",

"('5/16')",

"('3/8')",

"('1/2')",

"('5/8')");



var whitArray = new Array("('None Selected','',true,true)",

"('1/16 60TPI')",

"('3/32 48TPI')",

"('1/8 40TPI')",

"('5/32 32TPI')",

"('3/16 24TPI')",

"('7/32 24TPI')",

"('1/4 20TPI')",

"('5/16 18TPI')",

"('3/8 16TPI')",

"('7/16 14TPI')",

"('1/2 12TPI')",

"('9/16 12TPI')",

"('5/8 11TPI')",

"('3/4 10TPI')",

"('7/8 9TPI')",

"('1 8TPI')",

"('1-1/8 7TPI')",

"('1-1/4 7TPI')",

"('1-1/2 6TPI')",

"('2 4-1/2TPI')");



var uncArray = new Array("('None Selected','',true,true)",

"('1-64TPI')",

"('2-56TPI')",

"('3-48TPI')",

"('4-40TPI')",

"('5-40TPI')",

"('6-32TPI')",

"('8-32TPI')",

"('10-24TPI')",

"('12-24TPI')",

"('1/4-20TPI')",

"('5/16-18TPI')",

"('3/8-16TPI')",

"('7/16-14TPI')",

"('1/2-13TPI')",

"('9/16-12TPI')",

"('5/8-11TPI')",

"('3/4-10TPI')",

"('7/8-9TPI')",

"('1in-8TPI')",

"('1-1/8-7TPI')",

"('1-1/4-7TPI')",

"('1-3/8-6TPI')",

"('1-1/2-6TPI')",

"('1-3/4-5TPI')",

"('2in-4TPI')",

"('2-1/4-4TPI')",

"('2-1/2-4TPI')",

"('2-3/4-4TPI')",

"('3in-4TPI')",

"('3-1/4-4TPI')",

"('3-1/2-4TPI')",

"('3-3/4-4TPI')",

"('4in-4TPI')");



var unfArray = new Array("('None Selected','',true,true)",

"('0-80TPI')",

"('1-72TPI')",

"('2-64TPI')",

"('3-56TPI')",

"('4-48TPI')",

"('5-44TPI')",

"('6-40TPI')",

"('8-36TPI')",

"('10-32TPI')",

"('12-28TPI')",

"('1/4-28TPI')",

"('5/16-24TPI')",

"('3/8-24TPI')",

"('7/16-20TPI')",

"('9/16-18TPI')",

"('5/8-18TPI')",

"('3/4-16TPI')",

"('7/8-14TPI')",

"('1in-12TPI')",

"('1-1/8-12TPI')",

"('1-1/4-12TPI')",

"('1-3/8-12TPI')",

"('1-1/2-12TPI')");



var baArray = new Array("('None Selected','',true,true)",

"('0')",

"('1')",

"('2')",

"('3')",

"('4')",

"('5')",

"('6')",

"('7')",

"('8')",

"('9')",

"('10')");



var bsfArray = new Array("('None Selected','',true,true)",

"('3/16')",

"('7/32')",

"('1/4')",

"('9/32')",

"('5/16')",

"('3/8')",

"('7/16')",

"('1/2')",

"('9/16')",

"('5/8')",

"('11/16')",

"('3/4')",

"('13/16')",

"('7/8')",

"('1in')",

"('1-1/8')",

"('1-1/4')",

"('1-3/8')",

"('1-1/2')",

"('1-5/8')",

"('1-3/4')",

"('2in')",

"('2-1/4')",

"('2-1/2')");



var bspArray = new Array("('None Selected','',true,true)",

"('1/8')",

"('1/4')",

"('3/8')",

"('1/2')",

"('3/4')",

"('1')",

"('1-1/4')",

"('1-1/2')",

"('2')",

"('2-1/2')",

"('3')",

"('3-1/2')",

"('4')",

"('4-1/2')",

"('5')",

"('6')");



var buttArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('BUTTRESS')");

var knuckleArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('KNUCKLE')");

var sharpArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SHARP')");



var acmeArray = new Array("('None Selected','',true,true)",

"('1/4-16TPI')",

"('5/16-14TPI')",

"('3/8-12TPI')",

"('7/16-12TPI')",

"('1/2-10TPI')",

"('5/8-8TPI')",

"('3/4-6TPI')",

"('7/8-6TPI')",

"('1in-5TPI')",

"('1-1/8-5TPI')",

"('1-1/4-5TPI')",

"('1-3/8-4TPI')",

"('1-1/2-4TPI')",

"('1-3/4-4TPI')",

"('2in-4TPI')",

"('2-1/4-3TPI')",

"('2-1/2-3TPI')",

"('2-3/4-3TPI')",

"('3in-2TPI')",

"('3-1/2-2TPI')",

"('4in-2TPI')",

"('4-1/2-2TPI')",

"('5in-2TPI')");





var squareArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('SQUARE')");

var ansiArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('ANSI')");

var wormArray = new Array("('None Selected','',true,true)",

"('sorry')",

"('dont supply')",

"('WORM')");



var selectedArray = eval(selected + "Array");

while (selectedArray.length < inForm.helisize.options.length) {

inForm.helisize.options[(inForm.helisize.options.length - 1)] = null;

}

for (var i=0; i < selectedArray.length; i++) {

eval("inForm.helisize.options[i]=" + "new Option" + selectedArray[i]);

}

if (inForm.helithread.options[0].value == '') {

inForm.helithread.options[0]= null;

}

}



// ----------------------- end of populatesize function -------------------------------->















































































<!----------------------- Start of tickinit function ------------- ->



function tickinit(){



var l1 = 0; // Position where it appears on a line  0 -----> 500

var t1 = 275; // How far down it appears on the screen 0 -------->500

var w1 = 100; // How wide the display area is 

var ie = document.all ? true : false;

var first = true;

var l2 = l1 + w1;

var l3 = l1 - l2;

var l = 2;





if (ie) {

if (l1 == 0 && t1 == 0) {

pos = document.all['tickpos'];

l1 = getLeft(pos);

t1 = getTop(pos);

}

ticktext.style.posTop = t1;

}

else {

if (l1 == 0 && t1 == 0) {

pos = document.anchors['tickpos'];

l1 = pos.x;

t1 = pos.y;

}

document.ticktext.pageY = t1;

}

l2 = l1 + w1;

l3 = l1 - l2;

l = l2;

setInterval('tick()', 300);

}



function getLeft(ll) {

if (ll.offsetParent)

return (ll.offsetLeft + getLeft(ll.offsetParent));

else

return (ll.offsetLeft);

}



function getTop(ll) {

if (ll.offsetParent)

return (ll.offsetTop + getTop(ll.offsetParent));

else

return (ll.offsetTop);

}



function tick() {

l = l - 5;              //change the 5 to speed up or slow down

if (l < l3) l = l2;

cl = l1 - l;

cr = l2 - l;

if (ie) {

ticktext.style.posLeft = l;

ticktext.style.posTop = t1;

ticktext.style.clip = "rect(auto "+cr+"px auto "+cl+"px)";

if (first) ticktext.style.visibility = "visible";

}

else {

document.ticktext.pageX = l;

document.ticktext.clip.left = cl;

document.ticktext.clip.right = cr;

if (first) document.ticktext.visibility = "show";

}

first = false;

}

// ----------------------- end of tickinit function -------------------------------->



















<!----------------------- Start of shake function ------------- ->





function shake(n){



         if (parent.moveBy){

         

         	  for(i=10;i>0;i--){

	  

         	  		for(j=n;j>0;j--){

         	  		parent.moveBy(0,i);

         	  		parent.moveBy(i,0);

         	  		parent.moveBy(0,-1);

         	  		parent.moveBy(-1,0);

         	  		}

         	  }

         }

}





// ----------------------- end of shake function -------------------------------->







































<!----------------------- Start of time function ------------- ->



function time() {

stopclock();

showtime();

}

 

{

function stopclock (){

var timerID = null;

var timerRunning = false;



if(timerRunning)

clearTimeout(timerID);

timerRunning = false;

}



function showtime () {

var now = new Date();

var hours = now.getHours();

var minutes = now.getMinutes();

var seconds = now.getSeconds()

var timeValue = "" + ((hours >12) ? hours -12 :hours)

if (timeValue == "0") timeValue = 12;

timeValue += ((minutes < 10) ? ":0" : ":") + minutes

timeValue += ((seconds < 10) ? ":0" : ":") + seconds

timeValue += (hours >= 12) ? " P.M." : " A.M."

document.clock.face.value = timeValue;

timerID = setTimeout("showtime()",1000);

timerRunning = true;

}



// End -->

}



// ----------------------- end of time function -------------------------------->



















<!----------------------- Start of date function ------------- ->



function longdate() {



<!-- Begin

var d = new Array(

	"Sunday",

	"Monday",

	"Tuesday",

	"Wednesday",

	"Thursday",

	"Friday",

	"Saturday"

	);



var m = new Array(

	"January",

	"February",

	"March",

	"April",

	"May",

	"June",

	"July",

	"August",

	"September",

	"October",

	"November",

	"December"

	);



var today = new Date();

var day = today.getDate();

var year = today.getYear();



if (year < 2000) year = year + 1900; 



var end = "th";

if (day==1 || day==21 || day==31) end="st";

if (day==2 || day==22) end="nd";

if (day==3 || day==23) end="rd";

day+=end;



document.write("<font color='black'><center><H5>Last updated on ");

document.write(d[today.getDay()]+", "+m[today.getMonth()]+" ");

document.write(day+", " + year);

document.write(".      Copyright Quality Internet Business Solutions Limited <H5></font></center>");

// End -->



}



// ----------------------- end of date function -------------------------------->

























<!----------------------- Start of lottery function ------------- ->





function lottery()

{

newWindow('../source/htm/lotto.htm');

}



function numbers() {



var nummenu = document.lotto.numbercount;

var numbercount = nummenu.options[nummenu.selectedIndex].value*1;

var maxnumbers = document.lotto.maxnum.value*1;

if (numbercount > maxnumbers) {

alert("Be sure to select a max lottery number value!");

}

else {

var ok = 1;

r = new Array (numbercount);

for (var i = 1; i <= numbercount; i++) {

r[i] = Math.round(Math.random() * (maxnumbers-1))+1;

}

for (var i = numbercount; i >= 1; i--) {

for (var j = numbercount; j >= 1; j--) {

if ((i != j) && (r[i] == r[j])) ok = 0;

}

}

if (ok) {

var output = "";

for (var k = 1; k <= numbercount; k++) {

output += "Number " + k + " = " + r[k] + "\n";

}

document.lotto.results.value = output;

}

else numbers();

}

}

// End -->



// ----------------------- end of lottery function -------------------------------->

<!----------------------- Start of multiSearch function ------------- ->
    function multiSearch() {
    g=document.enginesearch.T1.value;
    ch=document.enginesearch.D1.value;

    if(ch=="no") {
		alert("Please select a site to search first - Thank you");
		document.enginesearch.D1.focus();
		}

	if(ch=="y")
		window.location="http://uk.search.yahoo.com/search?p="+g;

	if(ch=="s")
		window.location="http://www.search.com/search?channel=1&tag=st.se.fd..sch&q="+g;

	if(ch=="a")
		window.location="http://uk.altavista.com/cgi-bin/query?pg=q&what&kl=en&q="+g;

	if(ch=="g")
		window.location="http://www.google.com/search?q="+g;

	if(ch=="l")
		window.location="http://search.lycos.com/main/default.asp?lpv=1&loc=searchhp&query="+g+"&x=17&y=8";

	if(ch=="w")
		window.location="http://www.webcrawler.com/cgi-bin/webquery?searchtext="+g;

	if(ch=="m")
		window.location="http://www.mamma.com/Mamma?pl=1&timeout=4&qtype=0&query="+g;

	if(ch=="d")
		window.location="http://search.dmoz.org/cgi-bin/search?search="+g;

	if(ch=="t")
		window.location="http://www.teoma.com/search.asp?&t="+g+"&qcat=1&qsrc=0&search.x=30&search.y=10";

	if(ch=="ask")
		window.location="http://www.ask.com/main/askjeeves.asp?ask="+g+"&origin=0&optout=1&site_name=Jeeves&metasearch=yes&ads=";

	if(ch=="msn")
		window.location="http://search.msn.com/results.asp?RS=CHECKED&FORM=MSNH&v=1&q="+g;

	}

<!----------------------- End of multiSearch function ------------- ->




