function change_image(img_name, img_src) 
{
    document[img_name].src = img_src;
}


function GenNewCap() {
    NC = CyloCaptcha.genRan(6); //get a new random number
    document.getElementById("txt_holdCAP").value = NC;
    document.getElementById("SecurityCodeDiv").innerHTML = CyloCaptcha.display(NC);
}
function writeText(varText, varLabel) {
    var x = document.getElementById(varLabel);
    x.innerHTML = varText;
}
//valideaza forma rom
function validate() {
    var submitOK = true;
    var tempPhone = "";
    var tempObj = document.getElementById("txt_UserName");
    if (tempObj.value == "") {
        document.getElementById("lbl_UserName").setAttribute('style', 'color:red;');
        writeText("Va rugam completati numele si prenumele!", 'lbl_UserName');
        submitOK = false;
    }
    else if (tempObj.value.indexOf(' ') == -1) {
        document.getElementById("lbl_UserName").setAttribute('style', 'color:red;');
        writeText("Va rugam introduceti atat numele cat si prenumele!", 'lbl_UserName');
        submitOK = false;
    }
    else writeText("", 'lbl_UserName');

    tempObj = document.getElementById("txt_Email");
    if (tempObj.value == "") {
        document.getElementById("lbl_Email").setAttribute('style', 'color:red;');
        writeText("Va rugam completati adresa de email!", 'lbl_Email');
        submitOK = false;
    }
    else if (checkEmail(tempObj) == false) {
        writeText("Adresa de email introdusa nu este valida!", 'lbl_Email');
        submitOK = false;
    }
    else writeText("", 'lbl_Email');

    tempObj = document.getElementById("txt_Phone");
    tempPhone = tempObj.value
    if (tempPhone.value != "") {
        tempPhone = tempPhone.split(' ').join('');
        tempPhone = tempPhone.split('/').join('');
    }
    if (tempPhone == "") {
        document.getElementById("lbl_Phone").setAttribute('style', 'color:red;');
        writeText("Va rugam completati telefonul!", 'lbl_Phone');
        submitOK = false;
    }
    else if (isNaN(tempPhone)) {
        writeText("Nu ati introdus un numar de telefon!", 'lbl_Phone');
        submitOK = false;
    }
    else writeText("", 'lbl_Phone');

    tempObj = document.getElementById("txt_CompanyName");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyName").setAttribute('style', 'color:red;');
        writeText("Va rugam completati numele firmei!", 'lbl_CompanyName');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyName');

    tempObj = document.getElementById("txt_CompanyID");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyID").setAttribute('style', 'color:red;');
        writeText("Va rugam completati codul unic de inregistrare!", 'lbl_CompanyID');
        submitOK = false;
    }
    //else if (isNaN(tempObj.value.split(' ').join(''))) {
    //    writeText("Nu ati introdus un numar!", 'lbl_CompanyID');
    //    submitOK = false;
    //}
    else writeText("", 'lbl_CompanyID');

    tempObj = document.getElementById("txt_CompanyCity");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyCity").setAttribute('style', 'color:red;');
        writeText("Va rugam completati orasul!", 'lbl_CompanyCity');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyCity');

    tempObj = document.getElementById("txt_CompanyEmail");
    if (tempObj.value != "") {
        //document.getElementById("lbl_CompanyEmail").setAttribute('style','color:red;'); 
        //writeText("Va rugam completati adresa de email!",'lbl_CompanyEmail');   
        //submitOK=false;
        if (checkEmail(tempObj) == false) {
            writeText("Adresa de email introdusa nu este valida!", 'lbl_CompanyEmail');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyEmail');
    }
    else writeText("", 'lbl_CompanyEmail');

    tempObj = document.getElementById("txt_CompanyPhone");
    tempPhone = tempObj.value
    if (tempPhone.value != "") {
        tempPhone = tempPhone.split(' ').join('');
        tempPhone = tempPhone.split('/').join('');
    }
    if (tempPhone == "") {
        document.getElementById("lbl_CompanyPhone").setAttribute('style', 'color:red;');
        writeText("Va rugam completati telefonul!", 'lbl_CompanyPhone');
        submitOK = false;
    }
    else if (isNaN(tempPhone)) {
        writeText("Nu ati introdus un numar de telefon!", 'lbl_CompanyPhone');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyPhone');

    //checkboxes
    tempObj = document.getElementById("ckFax");
    if (tempObj.checked == true) {
        tempPhone = document.getElementById("txt_CompanyFax").value;
        if (tempPhone.value != "") {
            tempPhone = tempPhone.split(' ').join('');
            tempPhone = tempPhone.split('/').join('');
        }
        if (tempPhone == "") {
            document.getElementById("lbl_CompanyFax").setAttribute('style', 'color:red;');
            writeText("Va rugam completati numarul de fax!", 'lbl_CompanyFax');
            submitOK = false;
        }
        else if (isNaN(tempPhone)) {
            writeText("Nu ati introdus un numar de telefon!", 'lbl_CompanyFax');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyFax');
    }
    else writeText("", 'lbl_CompanyFax');

    tempObj = document.getElementById("ckPost");
    if (tempObj.checked == true) {
        tempPhone = document.getElementById("txt_CompanyAddress").value;
        if (tempPhone == "") {
            document.getElementById("lbl_CompanyAddress").setAttribute('style', 'color:red;');
            writeText("Va rugam completati adresa!", 'lbl_CompanyAddress');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyAddress');
    }
    else writeText("", 'lbl_CompanyAddress');

    tempObj = document.getElementById("txt_Request");
    if (tempObj.value == "") {
        document.getElementById("lbl_Request").setAttribute('style', 'color:red;');
        writeText("Va rugam completati cererea!", 'lbl_Request');
        submitOK = false;
    }
    else writeText("", 'lbl_Request');

    tempObj = document.getElementsByName("rbtnAbout");
    if (getCheckedValue(tempObj) == 6) {
        if (document.getElementById("txt_alteModuri").value == "") {
            document.getElementById("lbl_alteModuri").setAttribute('style', 'color:red;');
            writeText("Va rugam completati modul!", 'lbl_alteModuri');
            submitOK = false;
        }
        else writeText("", 'lbl_alteModuri');
    }
    else writeText("", 'lbl_alteModuri');

    tempObj = document.getElementById("txt_SecurityCode");
    if (tempObj.value == "") {
        document.getElementById("lbl_SecurityCode").setAttribute('style', 'color:red;');
        writeText("Va rugam introduceti codul de securitate!", 'lbl_SecurityCode');
        submitOK = false;
    }
    else if (document.getElementById("txt_holdCAP").value.toLowerCase() != tempObj.value.toLowerCase()) {
        document.getElementById("lbl_SecurityCode").setAttribute('style', 'color:red;');
        writeText("Cod de securitate incorect!", 'lbl_SecurityCode');
        submitOK = false;
    }
    else writeText("", 'lbl_SecurityCode');

    if (submitOK == false)
        return false;
    else
        return true;
}

//valideaza forma engl
function validate_engl() {
    var submitOK = true;
    var tempPhone = "";
    var tempObj = document.getElementById("txt_UserName");
    if (tempObj.value == "") {
        document.getElementById("lbl_UserName").setAttribute('style', 'color:red;');
        writeText("First name & last name are required!", 'lbl_UserName');
        submitOK = false;
    }
    else if (tempObj.value.indexOf(' ') == -1) {
        document.getElementById("lbl_UserName").setAttribute('style', 'color:red;');
        writeText("Please fill out first and last name!", 'lbl_UserName');
        submitOK = false;
    }
    else writeText("", 'lbl_UserName');

    tempObj = document.getElementById("txt_Email");
    if (tempObj.value == "") {
        document.getElementById("lbl_Email").setAttribute('style', 'color:red;');
        writeText("E-mail address is required!", 'lbl_Email');
        submitOK = false;
    }
    else if (checkEmail(tempObj) == false) {
        writeText("Not a valid e-mail address!", 'lbl_Email');
        submitOK = false;
    }
    else writeText("", 'lbl_Email');

    tempObj = document.getElementById("txt_Phone");
    tempPhone = tempObj.value
    if (tempPhone.value != "") {
        tempPhone = tempPhone.split(' ').join('');
        tempPhone = tempPhone.split('/').join('');
    }
    if (tempPhone == "") {
        document.getElementById("lbl_Phone").setAttribute('style', 'color:red;');
        writeText("Phone no. is required!", 'lbl_Phone');
        submitOK = false;
    }
    else if (isNaN(tempPhone)) {
        writeText("Not a valid phone no.!", 'lbl_Phone');
        submitOK = false;
    }
    else writeText("", 'lbl_Phone');

    tempObj = document.getElementById("txt_CompanyName");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyName").setAttribute('style', 'color:red;');
        writeText("Company name is required!", 'lbl_CompanyName');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyName');

    tempObj = document.getElementById("txt_CompanyID");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyID").setAttribute('style', 'color:red;');
        writeText("Registration no. is required!", 'lbl_CompanyID');
        submitOK = false;
    }
    //else if (isNaN(tempObj.value.split(' ').join(''))) {
    //    writeText("Not a valid no.!", 'lbl_CompanyID');
    //    submitOK = false;
    //}
    else writeText("", 'lbl_CompanyID');

    tempObj = document.getElementById("txt_CompanyCity");
    if (tempObj.value == "") {
        document.getElementById("lbl_CompanyCity").setAttribute('style', 'color:red;');
        writeText("City is required!", 'lbl_CompanyCity');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyCity');

    tempObj = document.getElementById("txt_CompanyEmail");
    if (tempObj.value != "") {
        //document.getElementById("lbl_CompanyEmail").setAttribute('style','color:red;'); 
        //writeText("Va rugam completati adresa de email!",'lbl_CompanyEmail');   
        //submitOK=false;
        if (checkEmail(tempObj) == false) {
            writeText("Not a valid e-mail address!", 'lbl_CompanyEmail');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyEmail');
    }
    else writeText("", 'lbl_CompanyEmail');

    tempObj = document.getElementById("txt_CompanyPhone");
    tempPhone = tempObj.value
    if (tempPhone.value != "") {
        tempPhone = tempPhone.split(' ').join('');
        tempPhone = tempPhone.split('/').join('');
    }
    if (tempPhone == "") {
        document.getElementById("lbl_CompanyPhone").setAttribute('style', 'color:red;');
        writeText("Phone no. is required!", 'lbl_CompanyPhone');
        submitOK = false;
    }
    else if (isNaN(tempPhone)) {
        writeText("Not a valid phone no.!", 'lbl_CompanyPhone');
        submitOK = false;
    }
    else writeText("", 'lbl_CompanyPhone');

    //checkboxes
    tempObj = document.getElementById("ckFax");
    if (tempObj.checked == true) {
        tempPhone = document.getElementById("txt_CompanyFax").value;
        if (tempPhone.value != "") {
            tempPhone = tempPhone.split(' ').join('');
            tempPhone = tempPhone.split('/').join('');
        }
        if (tempPhone == "") {
            document.getElementById("lbl_CompanyFax").setAttribute('style', 'color:red;');
            writeText("Fax no. is required!", 'lbl_CompanyFax');
            submitOK = false;
        }
        else if (isNaN(tempPhone)) {
            writeText("Not a valid fax no.!", 'lbl_CompanyFax');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyFax');
    }
    else writeText("", 'lbl_CompanyFax');

    tempObj = document.getElementById("ckPost");
    if (tempObj.checked == true) {
        tempPhone = document.getElementById("txt_CompanyAddress").value;
        if (tempPhone == "") {
            document.getElementById("lbl_CompanyAddress").setAttribute('style', 'color:red;');
            writeText("Address is required!", 'lbl_CompanyAddress');
            submitOK = false;
        }
        else writeText("", 'lbl_CompanyAddress');
    }
    else writeText("", 'lbl_CompanyAddress');

    tempObj = document.getElementById("txt_Request");
    if (tempObj.value == "") {
        document.getElementById("lbl_Request").setAttribute('style', 'color:red;');
        writeText("Request information is required!", 'lbl_Request');
        submitOK = false;
    }
    else writeText("", 'lbl_Request');

    tempObj = document.getElementsByName("rbtnAbout");
    if (getCheckedValue(tempObj) == 6) {
        if (document.getElementById("txt_alteModuri").value == "") {
            document.getElementById("lbl_alteModuri").setAttribute('style', 'color:red;');
            writeText("Please fill out the way!", 'lbl_alteModuri');
            submitOK = false;
        }
        else writeText("", 'lbl_alteModuri');
    }
    else writeText("", 'lbl_alteModuri');

    tempObj = document.getElementById("txt_SecurityCode");
    if (tempObj.value == "") {
        document.getElementById("lbl_SecurityCode").setAttribute('style', 'color:red;');
        writeText("Security code is required!", 'lbl_SecurityCode');
        submitOK = false;
    }
    else if (document.getElementById("txt_holdCAP").value.toLowerCase() != tempObj.value.toLowerCase()) {
        document.getElementById("lbl_SecurityCode").setAttribute('style', 'color:red;');
        writeText("Wrong security code!", 'lbl_SecurityCode');
        submitOK = false;
    }
    else writeText("", 'lbl_SecurityCode');

    if (submitOK == false)
        return false;
    else
        return true;
}


// return the value of the radio button that is checked
// return an empty string if none are checked, or
// there are no radio buttons
function getCheckedValue(radioObj) {
    if (!radioObj)
        return "";
    var radioLength = radioObj.length;
    if (radioLength == undefined)
        if (radioObj.checked)
        return radioObj.value;
    else
        return "";
    for (var i = 0; i < radioLength; i++) {
        if (radioObj[i].checked) {
            return radioObj[i].value;
        }
    }
    return "";
}

function checkEmail(emailObj) {
    //var email = document.getElementById("usr_email");
    var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
    if (!filter.test(emailObj.value)) {
        //writeText("Not a valid e-mail!",'lbl_usr_email'); 
        return false;
    }
    return true;
}

function ShowStatus(text) {
    window.status = text;
    return true;
}

function createMail(id, name) {
    var str1 = "mailto";
    var strDom = "gerotools";
    var str2 = "ro";
    document.getElementById(id).setAttribute('href', str1 + ':' + name + '@' + strDom + '.' + str2);
}

function openFile(object, url) {
    var path = getAppPath(url);
    var windowwidth = screen.width / 2;
    var windowheight = screen.height;
    var myTempWindow = window.open(path, "SaveMe", "left=" + windowwidth / 2 + ",resizable=1,height=" + windowheight + ",width=" + windowwidth);
    myTempWindow.document.execCommand("SaveAs", true, path);
    myTempWindow.close();
}

function roundNumber(number, decimals) {
    var newString; // The new rounded number
    decimals = Number(decimals);
    if (decimals < 1) {
        newString = (Math.round(number)).toString();
    } else {
        var numString = number.toString();
        if (numString.lastIndexOf(".") == -1) {// If there is no decimal point
            numString += "."; // give it one at the end
        }
        var cutoff = numString.lastIndexOf(".") + decimals; // The point at which to truncate the number
        var d1 = Number(numString.substring(cutoff, cutoff + 1)); // The value of the last decimal place that we'll end up with
        var d2 = Number(numString.substring(cutoff + 1, cutoff + 2)); // The next decimal, after the last one we want
        if (d2 >= 5) {// Do we need to round up at all? If not, the string will just be truncated
            if (d1 == 9 && cutoff > 0) {// If the last digit is 9, find a new cutoff point
                while (cutoff > 0 && (d1 == 9 || isNaN(d1))) {
                    if (d1 != ".") {
                        cutoff -= 1;
                        d1 = Number(numString.substring(cutoff, cutoff + 1));
                    } else {
                        cutoff -= 1;
                    }
                }
            }
            d1 += 1;
        }
        if (d1 == 10) {
            numString = numString.substring(0, numString.lastIndexOf("."));
            var roundedNum = Number(numString) + 1;
            newString = roundedNum.toString() + '.';
        } else {
            newString = numString.substring(0, cutoff) + d1.toString();
        }
    }
    if (newString.lastIndexOf(".") == -1) {// Do this again, to the new string
        newString += ".";
    }
    var decs = (newString.substring(newString.lastIndexOf(".") + 1)).length;
    for (var i = 0; i < decimals - decs; i++) newString += "0";
        var newNumber = Number(newString);// make it a number if you like
 
    return newNumber;
}

function modText(intLocation) {
    var content = new Array();
    var tempText;
    content[0] = '<strong><font face="Verdana" color="#000000">Bine ati venit!<br /></font></strong><font face="Verdana"><small>Gero Tools - scule profesionale: scule de mana, scule speciale pentru auto, chei dinamometrice, multiplicatoare de moment, calibre pentru filete, aparate de masura si control, prese, cuttere, masini electrice si altele. Va oferim, pe langa gama mare de produse, asistenta si consultanta tehnica, solutii tehnice individuale, servicii de calibrare si etalonare.</small>';
    content[1] = '<strong><font face="Verdana" color="#000000">Calibre metric si metric fin</font></strong><font face="Verdana"> (2 - 200 mm)<br /><small>Conform ISO-1502-1996 sau ANSI/ASME B1.16 M 1984. Standardele ANSI & BS folosesc tolerante unilaterale pentru calibre. Aceste calibre sunt fabricate dupa cererile clientilor si au cantitate minima de comanda.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT M14x1.5 6H</small>';
    content[2] = '<strong><font face="Verdana" color="#000000">Calibre UNIFIED</font></strong><font face="Verdana"> (No.4 - 4")<br /><small>Conform ANSI/ASME B1.2-1983. Calibrele tampon se fabrica pana la diametrul nominal 2.1/2" (inclusiv) cu doua capete (T-NT) iar peste aceasta dimensiune, cu un singur capat.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT 1.7/8"-8 UNC 2B<br />Calibru inel T 1.7/8"-8 UNC 2A</small>';
    content[3] = '<strong><font face="Verdana" color="#000000">Calibre Gaz</font></strong><font face="Verdana"> (1/8" - 6")<br /><small>Conform ISO-228 Part II-1987.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT G1/2"-14 TPI<br />Calibru inel T G1/2"-14 TPI Clasa B</small>';
    content[4] = '<strong><font face="Verdana" color="#000000">Calibre BSW, BSF si Whitworth</font></strong><font face="Verdana"> (1/8" - 6")<br /><small>Conform B.S. 919 Part II - 1971.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT 7/8"-9 BSW<br />Calibru inel T W30"-16 (M)</small>';
    content[5] = '<strong><font face="Verdana" color="#000000">Calibre ACME si STUB ACME</font></strong><font face="Verdana"> (1/4" - 5")<br /><small>Conform ANSI/ASME B1.5 - 1997 respectiv ANSI/ASME B1.8 - 1988.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT 1.1/8"-4 ACME RH<br />Calibru inel NT 1.1/8"-4 ACME RH</small>';
    content[6] = '<strong><font face="Verdana" color="#000000">Calibre NPT, NPTF si PTF</font></strong><font face="Verdana"> (1/16" - 6")<br /><small>Conform ANSI/ASME B1.20.1 - 1983 si H-28 Part II - 1957.<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon 1"-11.1/2 NPT L1 Basic<br />Calibru inel 3/4"-14 NPT L1 Step Limit</small>';
    content[7] = '<strong><font face="Verdana" color="#000000">Calibre LP si UPTBG</font></strong><font face="Verdana"><br /><small>Conform API 5B respectiv API 7<br />UPTBG - Upset tubing; NUPTBG - Non-upset tubing<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon 1.1/4"-11.5 LP<br />Calibru inel 2.3/8"-8 UPTBG</small>';
    content[8] = '<small>Calibre B.S. - conform B.S. 31 - 1940<br />Calibre B.A. - conform B.S. 919 Part II - 1971<br />Calibre B.S. Cycle - conform B.S. 919 Part II - 1971<br />Calibre PG - conform DIN 40430 - 1971 & DIN 40431 - 1972<br />Calibre Trapezoidal - conform DIN 103 - 1977<br />etc.</small>';
    content[9] = '<strong><font face="Verdana" color="#000000">Calibre lise (netede)</font></strong><font face="Verdana"><br /><small>Calibre tampon: DIN 7162 si DIN 7164<br />Calibre inel: DIN 2250 C, DIN ISO 286/1<br />&nbsp;&nbsp;Exemple:<br />Calibru tampon T-NT d=2.0 mm H7<br />Calibru inel NT d=18 mm h6</small>';
    content[10] = '<strong><font face="Verdana" color="#000000">Contracalibre master si de uzura</font></strong><font face="Verdana"><br /><small>- folosite pentru verificarea calibrelor noi respectiv pentru verificarea calibrelor in folosinta<br />&nbsp;&nbsp;Exemple:<br />Contracalibru tampon master NT pt. inel T 4"-8 UN 2A<br />Contracalibru de uzura pt. inel T 1.1/4"-6 ACME 2G LH</small>';
    
    tempText =content[intLocation] + '</small><br /></font>';
    writeText(tempText, "descriptions");

}

function modTextEN(intLocation) {
    var content = new Array();
    var tempText;
    content[0] = '<strong><font face="Verdana" color="#000000">Welcome!<br /></font></strong><font face="Verdana"><small>Gero Tools - professional tools: hand tools, special automotive tools, torque wrenches, torque multipliers, thread gauges, measuring tools, presses, cutters, electrical machines and other. We offer, besides the wide range of products, technical assistance and advice, individual technical solutions and calibration services.</small>';
    content[1] = '<strong><font face="Verdana" color="#000000">ISO metric thread gauges</font></strong><font face="Verdana"> (2 - 200 mm)<br /><small>As per ISO-1502-1996 or ANSI/ASME B1.16 M 1984. ANSI & BS standards use unilateral tolerances for gauges. These gauges are manufactured only against specific customer orders and require minimum ordering quantity.<br />&nbsp;&nbsp;Examples:<br />Thread plug Go&NoGo M14x1.5 6H</small>';
    content[2] = '<strong><font face="Verdana" color="#000000">Unified thread gauges</font></strong><font face="Verdana"> (No.4 - 4")<br /><small>As per ANSI/ASME B1.2-1983. Thread plugs are manufactured up to 2.1/2" nominal diameter (incl.) double-ended (Go&NoGo) and above this size, single-ended (Go or NoGo).<br />&nbsp;&nbsp;Examples:<br />Thread plug Go&NoGo 1.7/8"-8 UNC 2B<br />Thread ring Go 1.7/8"-8 UNC 2A</small>';
    content[3] = '<strong><font face="Verdana" color="#000000">ISO parallel pipe thread gauges</font></strong><font face="Verdana"> (1/8" - 6")<br /><small>As per ISO-228 Part II-1987.<br />&nbsp;&nbsp;Examples:<br />Thread plug Go&NoGo G1/2"-14 TPI<br />Thread ring Go G1/2"-14 TPI Class B</small>';
    content[4] = '<strong><font face="Verdana" color="#000000">BSW, BSF and Whitworth thread gauges</font></strong><font face="Verdana"> (1/8" - 6")<br /><small>As per B.S. 919 Part II - 1971.<br />&nbsp;&nbsp;Examples:<br />Thread plug Go&NoGo 7/8"-9 BSW<br />Thread ring Go W30"-16 (M)</small>';
    content[5] = '<strong><font face="Verdana" color="#000000">ACME and STUB ACME thread gauges</font></strong><font face="Verdana"> (1/4" - 5")<br /><small>As per ANSI/ASME B1.5 - 1997 and ANSI/ASME B1.8 - 1988.<br />&nbsp;&nbsp;Examples:<br />Thread plug Go&NoGo 1.1/8"-4 ACME RH<br />Thread ring NoGo 1.1/8"-4 ACME RH</small>';
    content[6] = '<strong><font face="Verdana" color="#000000">NPT, NPTF and PTF thread gauges</font></strong><font face="Verdana"> (1/16" - 6")<br /><small>As per ANSI/ASME B1.20.1 - 1983 and H-28 Part II - 1957.<br />&nbsp;&nbsp;Examples:<br />Taper thread plug 1"-11.1/2 NPT L1 Basic<br />Taper thread ring 3/4"-14 NPT L1 Step Limit</small>';
    content[7] = '<strong><font face="Verdana" color="#000000">Line Pipe (LP) and UPTBG thread gauges</font></strong><font face="Verdana"><br /><small>As per API 5B and API 7<br />UPTBG - Upset tubing; NUPTBG - Non-upset tubing<br />&nbsp;&nbsp;Exemples:<br />Thread plug 1.1/4"-11.5 LP<br />Thread ring 2.3/8"-8 UPTBG</small>';
    content[8] = '<small>B.S. thread gauges - as per B.S. 31 - 1940<br />B.A. thread gauges - as per B.S. 919 Part II - 1971<br />B.S. Cycle thread gauges - as per B.S. 919 Part II - 1971<br />PG thread gauges - as per DIN 40430 - 1971 & DIN 40431 - 1972<br />Trapezoidal thread gauges - as per DIN 103 - 1977<br />etc.</small>';
    content[9] = '<strong><font face="Verdana" color="#000000">Limit plug gauges & setting rings</font></strong><font face="Verdana"><br /><small>Limit plug gauges: DIN 7162 and DIN 7164<br />Setting rings: DIN 2250 C, DIN ISO 286/1<br />&nbsp;&nbsp;Exemple:<br />Limit plug Go&NoGo d=2.0 mm H7<br />Setting ring NoGo d=18 mm h6</small>';
    content[10] = '<strong><font face="Verdana" color="#000000">Master and wear check gauges</font></strong><font face="Verdana"><br /><small>- used to check new thread gauges respectively to check wear of used thread gauges<br />&nbsp;&nbsp;Examples:<br />Check plug NoGo for Go ring 4"-8 UN 2A<br />Wear check plug for Go ring 1.1/4"-6 ACME 2G LH</small>';

    tempText = content[intLocation] + '</small><br /></font>';
    writeText(tempText, "descriptions");

}
