<!--
 var RecaptchaOptions = {
    theme : 'white'
 };

 var focusTarget = null;
var searchcleared = false;

function checkRequestSelection() {
    while (document.getElementById('user_first_name').value.replace(/^\s+/, '') == "") {
        var ftname=prompt("Please enter your first name: ","");
        document.getElementById('user_first_name').value = ftname;
        }
    while (document.getElementById('user_last_name').value.replace(/^\s+/, '') == "") {
        var lname=prompt("Please enter your last name: ","");
        document.getElementById('user_last_name').value = lname;
        }
    while (document.getElementById('user_company').value.replace(/^\s+/, '') == "") {
        var cpname=prompt("Please enter your company name: ","");
        document.getElementById('user_company').value = cpname;
        }
    while (document.getElementById('user_email').value.replace(/^\s+/, '') == "") {
        var name=prompt("Please enter your email address: ","");
        document.getElementById('user_email').value = name;
        }
    while (document.getElementById('user_phone').value.replace(/^\s+/, '') == "") {
        var teln=prompt("Please enter your telephone number: ","");
        document.getElementById('user_phone').value = teln;
        }
    if (document.emailcompany.moreinfo.checked || document.emailcompany.catalog.checked || document.emailcompany.contact.checked || document.emailcompany.lal.checked || document.emailcompany.cad.checked) {
        return true;
        }
    else {
        alert ('Please check one of the checkboxes to request for more information before submitting the RFI form.');
        return false;
        }
}

function popUp(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=640,height=480,left=320,top=272');");
}

function createWindow(prmURL,prmName,prmWidth,prmHeight,prmExtra){
    var d=new Date();
    var randomprefix=d.getHours()+d.getSeconds()+d.getMinutes();
    if(prmExtra==null) prmExtra="";else prmExtra=","+prmExtra;
    return window.open(prmURL,randomprefix+prmName,"width="+prmWidth+",height="+prmHeight+prmExtra);
}

function launchBio(nodeid) {
    createWindow('/faculty_bio.php?parent_id='+nodeid,'bio','600', '400','scrollbars=yes');
}

function launchCertificate(nodeid) {
    createWindow('/pdf.php?user_id=&nodeid='+nodeid,'cert','640','480','scrollbars=yes');
}
    
function expandCol(colid) {
    document.getElementById('col_details_'+colid).style.display = 'block';
    document.getElementById('exp_col_'+colid).style.display = 'none';
    document.getElementById('col_col_'+colid).style.display = 'inline';
}

function collapseCol(colid) {
    document.getElementById('col_details_'+colid).style.display = 'none';
    document.getElementById('exp_col_'+colid).style.display = 'inline';
    document.getElementById('col_col_'+colid).style.display = 'none';
}

function aec_bpm_Search() {
    for (var i=0; i < document.search_aec_bpm.searchC.length; i++) 
       if (document.search_aec_bpm.searchC[i].checked) 
          search_site = document.search_aec_bpm.searchC[i].value;
    if (document.getElementById('query'))
        if (search_site == 'aecdaily')
            document.location.href='p_search_aec.php?q='+document.getElementById('query').value;
        else
            window.open('http://www.bpmselect.com/wsnsa.dll/WService=wsbrk1/mfgsearch/bpmselect.html?q='+document.getElementById('query').value+'&sa=Search&greenquery=no&qtype=mfg&qLabel=all&src=aecdaily','BPMSelectSearch');
}

function clearSearch() {
    if(document.getElementById("query").value=="Search" && searchcleared==false) {
        searchcleared=true;
        document.getElementById("query").focus();
        document.getElementById("query").value="";
    }
}
    
function clearRFLCats() {
    if(document.getElementById("cats")!=null) {
        document.getElementById("cats").focus();
        document.getElementById("cats").value="";
    }
}
    
function toggleAdditionSC() {
    document.getElementById('course_code').value = '';
    document.getElementById('course_title').value = '';
    document.getElementById('course_date').value = '';
    document.getElementById('course_hour').value = '';
    document.getElementById('course_provider').value = '';
    document.getElementById('notes').value = '';        
    document.getElementById('self_credits_add').style.display = 'block';
}

function submitNewProfileForm() {
    if (document.getElementById('email').value=='') {
        alert ('Email is not entered. Please enter again and re-submit.');
        document.getElementById('email').focus();
        return false;
    }
    if ((document.getElementById('pass').value!='' && document.getElementById('pass').value!=document.getElementById('pass2').value) || document.getElementById('pass').value=='') {
        alert ('Passwords are not matched, or passwords are not entered. Please enter again and re-submit.');
        document.getElementById('pass').focus();
        return false;
    }     
    if (document.getElementById('first_name').value=='') {
        alert ('First name is not entered. Please enter again and re-submit.');
        document.getElementById('first_name').focus();
        return false;
    }
    if (document.getElementById('last_name').value=='') {
        alert ('Last name is not entered. Please enter again and re-submit.');
        document.getElementById('last_name').focus();
        return false;
    }
    if (document.getElementById('company').value=='') {
        alert ('Company name is not entered. Please enter again and re-submit.');
        document.getElementById('company').focus();
        return false;
    }
    if (document.getElementById('phone').value=='') {
        alert ('Phone number is not entered. Please enter again and re-submit.');
        document.getElementById('phone').focus();
        return false;
    }
    if (document.getElementById('occupation_radio_btn1').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn1').value;
    } else if (document.getElementById('occupation_radio_btn2').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn2').value;
    } else if (document.getElementById('occupation_radio_btn3').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn3').value;
    } else if (document.getElementById('occupation_radio_btn5').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn5').value;
    } else if (document.getElementById('occupation_radio_btn6').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn6').value;
    } else if (document.getElementById('occupation_radio_btn7').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn7').value;
    } else if (document.getElementById('occupation_radio_btn8').checked) {
        document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn8').value;
    }
    document.getElementById("new_user").submit();
}

function submitProfileForm() {
    if (document.getElementById('pass').value!='' && document.getElementById('pass').value!=document.getElementById('pass2').value) {
        alert ('Passwords are not matched. Please enter again and re-submit.');
        document.getElementById('pass').focus();
    } else {    
        if (document.getElementById('occupation_radio_btn1').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn1').value;
        } else if (document.getElementById('occupation_radio_btn2').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn2').value;
        } else if (document.getElementById('occupation_radio_btn3').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn3').value;
        } else if (document.getElementById('occupation_radio_btn5').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn5').value;
        } else if (document.getElementById('occupation_radio_btn6').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn6').value;
        } else if (document.getElementById('occupation_radio_btn7').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn7').value;
        } else if (document.getElementById('occupation_radio_btn8').checked) {
            document.getElementById('occupation_text').value = document.getElementById('occupation_radio_btn8').value;
        }
        document.getElementById("userverifyform").submit();
    }
}
    
function addSelfCredit() {
    if (document.getElementById('course_code').value.replace(/^\s+/, '') == "") {
        alert('Please enter a course code.');
        document.getElementById('course_code').focus();
        return false;
    }
    if (document.getElementById('course_title').value.replace(/^\s+/, '') == "") {
        alert('Please enter a course title.');
        document.getElementById('course_title').focus();
        return false;
    }
    if (document.getElementById('completion_date').value.replace(/^\s+/, '') == "") {
        alert('Please enter a course date.');
        document.getElementById('completion_date').focus();
        return false;
    } else {
        document.getElementById('course_date').value = document.getElementById('completion_date').value;
    }
    if (document.getElementById('course_hour').value.replace(/^\s+/, '') == "") {
        alert('Please enter a course length.');
        document.getElementById('course_hour').focus();
        return false;
    }
    if (isNaN(document.getElementById('course_hour').value)) {
        alert('Please enter a number hourse of course length.');
        document.getElementById('course_hour').focus();
        return false;
    }
    if (document.getElementById('course_provider').value.replace(/^\s+/, '') == "") {
        alert('Please enter a course provider.');
        document.getElementById('course_provider').focus();
        return false;
    }
    document.getElementById('self_credits_add').style.display = 'none';
    return true;
}         

function cancelSelfCredit() {
    document.getElementById('course_code').value = '';
    document.getElementById('course_title').value = '';
    document.getElementById('completion_date').value = '';
    document.getElementById('course_hour').value = '';
    document.getElementById('course_provider').value = '';
    document.getElementById('notes').value = '';        
    document.getElementById('self_credits_add').style.display = 'none';
}

function loadXMLDoc(url){
    if (window.XMLHttpRequest) {
        xmlhttp=new XMLHttpRequest();
        }
    else {
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
    xmlhttp.open("GET",url,false);
    xmlhttp.send(null);
}

function editCredit(srid) {
    if (window.XMLHttpRequest) {
        xmlhttp=new XMLHttpRequest();
        }
    else {
        xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
        }
    xmlhttp.open("GET",'transcript_edit_selfcredit.php?usr_id='+srid,false);
    xmlhttp.send(null);
    creditStr = xmlhttp.responseText;
    var creditArr = creditStr.split('|');
    document.getElementById('usr_id').value = creditArr[0];
    document.getElementById('course_code').value = creditArr[1];
    document.getElementById('course_title').value = creditArr[2];
    document.getElementById('completion_date').value = creditArr[3];
    document.getElementById('course_hour').value = creditArr[4];
    document.getElementById('course_provider').value = creditArr[5];
    document.getElementById('notes').value = creditArr[6];
    document.getElementById('user_id').value = creditArr[7];
    document.getElementById('self_credits_add').style.display = 'block';
}
    
function deleteCredit(srid,userid) {
    var answer = confirm("Are you sure to delete this record?")
    if (answer) {
        document.location.href = 'transcript_delete_selfcredit.php?user_id='+userid+'&usr_id='+srid;
        }
}

var secs
var timerID = null
var timerRunning = false
var delay = 1000

function InitializeTimer()
{                    
    secs = 25 // set the length of the timer, in seconds
    StartTheTimer()
}

function StopTheClock()
{
    if(timerRunning)
        clearTimeout(timerID)
    timerRunning = false
}

function StartTheTimer()
{       
    if (secs==20)
    {    
        document.getElementById("tabbedLinks").className="headlineB";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="block";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
    else if (secs==15)
    {    
        document.getElementById("tabbedLinks").className="headlineC";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="block";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
    else if (secs==10)
    {    
        document.getElementById("tabbedLinks").className="headlineD";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="block";
        document.getElementById("imageE").style.display="none";
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
    else if (secs==5)
    {    
        document.getElementById("tabbedLinks").className="headlineE";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="block";
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
    else if (secs==0)
    {    
        document.getElementById("tabbedLinks").className="headlineA";
        document.getElementById("imageA").style.display="block";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";
        secs = 25
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
    else
    {
        secs = secs - 1
        timerRunning = true
        timerID = self.setTimeout("StartTheTimer()", delay)
    }
}

//the following pertains to each tab - where th hyperlink resides    
function selectHeadlineA() 
{        StopTheClock()
        document.getElementById("tabbedLinks").className="headlineA";
        document.getElementById("imageA").style.display="block";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";           
}


function selectHeadlineB() 
{        StopTheClock()
        document.getElementById("tabbedLinks").className="headlineB";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="block";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";           
}

function selectHeadlineC() 
{        StopTheClock()
        document.getElementById("tabbedLinks").className="headlineC";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="block";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="none";           
}

function selectHeadlineD() 
{        StopTheClock()
        document.getElementById("tabbedLinks").className="headlineD";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="block";
        document.getElementById("imageE").style.display="none";           
}

function selectHeadlineE() 
{        StopTheClock()
        document.getElementById("tabbedLinks").className="headlineE";
        document.getElementById("imageA").style.display="none";
        document.getElementById("imageB").style.display="none";
        document.getElementById("imageC").style.display="none";
        document.getElementById("imageD").style.display="none";
        document.getElementById("imageE").style.display="block";         
}

function checkSubscribeForm() { 
    if (document.forms.alead.email.value.replace(/\s*/,'') == '') {
        alert ('Please enter an email address and re-submit.');
        document.forms.alead.email.focus();
        return false;
    }
    if (!validateEmailAddress(document.forms.alead.email.value)) {
        alert ('That does not appear to be a valid email address. Please re-enter the email address and submit.');
        document.forms.alead.email.focus();
        return false;
        }
    return true;
}

function validateEmailAddress(thisEmail) {
    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(thisEmail)){
        return true;
        }
    return false;
}

function checkRFIRequestSelection() {
    var iCountry = '';
    var cIdx = document.emailcompany.user_country.selectedIndex;
    if (cIdx != null) {
        document.emailcompany.country_title.value = document.emailcompany.user_country.options[cIdx].text;
        iCountry = document.emailcompany.user_country.options[cIdx].value;
        }
    var stIdx = '';
    if (iCountry == 'CA') {
        stIdx = document.emailcompany.user_prov.selectedIndex;
        if (stIdx != null)
            document.emailcompany.state_title.value = document.emailcompany.user_prov.options[stIdx].text;
        }
    else if (iCountry == 'US') {
        stIdx = document.emailcompany.user_state.selectedIndex;
        if (stIdx != null)
            document.emailcompany.state_title.value = document.emailcompany.user_state.options[stIdx].text;
        }
    else {
            document.emailcompany.state_title.value = document.emailcompany.user_other_state.value;
        }
    if (document.getElementById('user_first_name').value.replace(/^\s+/, '') == "") {
        alert('Please enter your first name.');
        document.getElementById('user_first_name').focus();
        return false;
    }
    if (document.getElementById('user_last_name').value.replace(/^\s+/, '') == "") {
        alert('Please enter your last name.');
        document.getElementById('user_last_name').focus();
        return false;
    }
    if (document.getElementById('user_address_1').value.replace(/^\s+/, '') == "") {
        alert('Please enter your address.');
        document.getElementById('user_address_1').focus();
        return false;
    }
    if (document.getElementById('user_city').value.replace(/^\s+/, '') == "") {
        alert('Please enter your city.');
        document.getElementById('user_city').focus();
        return false;
    }
    if (document.getElementById('user_zip').value.replace(/^\s+/, '') == "") {
        alert('Please enter your postal/zip code.');
        document.getElementById('user_zip').focus();
        return false;
    }
    if (document.getElementById('user_email').value.replace(/^\s+/, '') == "") {
        alert('Please enter your email address.');
        document.getElementById('user_email').focus();
        return false;
    }
    if (!validateEmailAddress(document.getElementById('user_email').value)) {
        alert ('That does not appear to be a valid email address. Please re-enter the email address and submit.');
        document.getElementById('user_email').focus();
        return false;
        }
    if (document.getElementById('user_company').value.replace(/^\s+/, '') == "") {
        alert('Please enter your company name.');
        document.getElementById('user_company').focus();
        return false;
    }
    if (document.getElementById('user_phone').value.replace(/^\s+/, '') == "") {
        alert('Please enter your phone number.');
        document.getElementById('user_phone').focus();
        return false;
    }
    if (!document.emailcompany.occupation[0].checked && !document.emailcompany.occupation[1].checked && !document.emailcompany.occupation[2].checked && !document.emailcompany.occupation[3].checked && !document.emailcompany.occupation[4].checked && !document.emailcompany.occupation[5].checked && !document.emailcompany.occupation[6].checked && !document.emailcompany.occupation[7].checked) {
        alert ('Please select an occupation.');
        return false;
    }
    if (document.emailcompany.occupation[7].checked) 
        if (document.getElementById('occupation_text').value.replace(/^\s+/, '') == "") {
            alert ('Please specify an occupation.');
            return false;
            }
    if (!document.emailcompany.moreinfo.checked && !document.emailcompany.catalog.checked && !document.emailcompany.contact.checked && !document.emailcompany.lal.checked && !document.emailcompany.cad.checked) {
        alert ('Please check one of the "Request For Information" checkboxes before submitting the form.');
        return false;
    }
    if (document.emailcompany.lal.checked) {
        if (!document.emailcompany.company_type[0].checked && !document.emailcompany.company_type[1].checked && !document.emailcompany.company_type[2].checked && !document.emailcompany.company_type[3].checked && !document.emailcompany.company_type[4].checked && !document.emailcompany.company_type[5].checked && !document.emailcompany.company_type[6].checked) {
            alert ('Please select a type of company.');
            return false;
        }
        if (document.emailcompany.company_type[6].checked) 
            if (document.getElementById('company_type_text').value.replace(/^\s+/, '') == "") {
                alert ('Please specify a type of company.');
                document.getElementById('company_type_text').focus(); 
                return false;
                }
        if (document.emailcompany.no_employee.value.replace(/^\s+/, '') == "") {
            alert ('Please specify number of people attending Lunch & Learn.');
            document.getElementById('no_employee').focus();
            return false;
        }
    }
    if (document.emailcompany.current_project.value == "") {
        alert ('Please specify your current project.');
        return false;
    }
    return true;
}

function toggleStateProvince(value,countrytxt) {
    if (value == 'CA') {        
        document.getElementById('state_can').style.display = 'inline';
        document.getElementById('state_usa').style.display = 'none';
        document.getElementById('state_other').style.display = 'none';
        }
    else if (value == 'US') {
        document.getElementById('state_can').style.display = 'none';
        document.getElementById('state_usa').style.display = 'inline';
        document.getElementById('state_other').style.display = 'none';
        }
    else {
        document.getElementById('state_can').style.display = 'none';
        document.getElementById('state_usa').style.display = 'none';
        document.getElementById('state_other').style.display = 'inline';
        }
    document.getElementById('country_title').value = countrytxt;
}

function toggleState(statetxt) {
    document.getElementById('state_title').value = statetxt;
}

function toggleCompany(tf) {
    if (tf.lal.checked) {
        document.getElementById('companytable').style.display = 'inherit';
        }
    else {
        document.getElementById('companytable').style.display = 'none';
    }
}

function viewCreditNote(usr_id) {
        createWindow('/transcript_view_src.php?usr_id='+usr_id,'cert','640','480','scrollbars=yes');
    }

/**
 * DHTML phone number validation script. Courtesy of SmartWebby.com (http://www.smartwebby.com/dhtml/)
 */

// Declaring required variables
var digits = "0123456789";
// non-digit characters which are allowed in phone numbers
var phoneNumberDelimiters = "()-. ";
// characters which are allowed in international phone numbers
// (a leading + is OK)
var validWorldPhoneChars = phoneNumberDelimiters + "+";
// Minimum no of digits in an international phone no.
var minDigitsInIPhoneNumber = 10;

function isInteger(s)
{   var i;
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character is number.
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    // All characters are numbers.
    return true;
}
function trim(s)
{   var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not a whitespace, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (c != " ") returnString += c;
    }
    return returnString;
}
function stripCharsInBag(s, bag)
{   var i;
    var returnString = "";
    // Search through string's characters one by one.
    // If character is not in bag, append to returnString.
    for (i = 0; i < s.length; i++)
    {   
        // Check that current character isn't whitespace.
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function checkInternationalPhone(strPhone){
    var bracket=3
    strPhone=trim(strPhone)
    if(strPhone.indexOf("+")>1) return false
    if(strPhone.indexOf("-")!=-1)bracket=bracket+1
    if(strPhone.indexOf("(")!=-1 && strPhone.indexOf("(")>bracket)return false
    var brchr=strPhone.indexOf("(")
    if(strPhone.indexOf("(")!=-1 && strPhone.charAt(brchr+2)!=")")return false
    if(strPhone.indexOf("(")==-1 && strPhone.indexOf(")")!=-1)return false
    s=stripCharsInBag(strPhone,validWorldPhoneChars);
    return (isInteger(s) && s.length >= minDigitsInIPhoneNumber);
}

function checkADForm() { 
    if (document.forms.alead.fname.value.replace(/\s*/,'') == '') {
        alert ('Please enter a first name and re-submit.');
        document.forms.alead.fname.focus();
        return false;
    }
    if (document.forms.alead.lname.value.replace(/\s*/,'') == '') {
        alert ('Please enter a last name and re-submit.');
        document.forms.alead.lname.focus();
        return false;
    }
    if (document.forms.alead.email.value.replace(/\s*/,'') == '') {
        alert ('Please enter an email address and re-submit.');
        document.forms.alead.email.focus();
        return false;
    }
    if (!validateEmailAddress(document.forms.alead.email.value)) {
        alert ('That does not appear to be a valid email address. Please re-enter the email address and submit.');
        document.forms.alead.email.focus();
        return false;
        }
    if (document.forms.alead.company.value.replace(/\s*/,'') == '') {
        alert ('Please enter a company name and re-submit.');
        document.forms.alead.company.focus();
        return false;
    }
    if (document.forms.alead.phone.value.replace(/\s*/,'') == '' || checkInternationalPhone(document.forms.alead.phone.value) == false) {
        alert ('Please enter a phone number and re-submit.');
        document.forms.alead.phone.focus();
        return false;
    }
    return true;
}

function launchDelete(childid) {
    createWindow('/admin/delete_node.php?node_id='+childid,'delete','800', '200','scrollbars=no,resizable=no');
}

//-->

