﻿////get the jsHost detail
//var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
////ref  http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=76305    
////http://www.google-analytics.com/ga.js 
//var pageTracker
//try {
//    pageTracker = _gat._getTracker("UA-7537337-1");
//    pageTracker._trackPageview();
//} catch(err) {
////cannot start the tracker
////alter("No tracker");
//}


//to track user infromation when lose force on the input box
//inputbox is the input box object
//path is the path define for the google tracker
//name is the name for google tracker 
function inputBoxTracker(inputbox, path, name){
    if (typeof pageTracker != 'undefined'){
        if(inputbox.value!=""){
            pageTracker._trackPageview(path + name)
            //alert(path + name);
        } 
    }   
}

//simair code but may handel differently in future
//to track user infromation when lose force on the selectbox 
//selectbox is the input box object
//path is the path define for the google tracker
//name is the name for google tracker 
function selectBoxTracker(selectBox, path, name){
    if (typeof pageTracker != 'undefined'){ 
        if(selectBox.value!=""){
            pageTracker._trackPageview(path + name)
        } 
    }   
}
