// PARTSEARCH ACTION
function tracking(url){
//find all tokens
var fields = [];
url.scan(/\#{\w+}/, function(match){ fields.push(match[0])});
//create hash with form fields
var tokens = new Hash();
fields.collect(
function(s){
s.scan(/\w+/, 
function(match){ 
//Apache mod_rewrite is escaping the % sign before passing it
// on, so we double escape it
var val = $F(match[0]).replace(/%/g,"%25");
tokens.set(match[0],encodeURIComponent($F(match[0])));
}
)
}
);
var urlTemplate = new Template(url);
var loc = urlTemplate.evaluate(tokens);
window.location=loc;
}
function quickquote(){
this.serviceLocation = "/datasheet-pdf/part/search/";
}
function performSearch(partNum){
var detailUrl = "/trackingservlet/track/?action=" + actionVar + "&value1=" + encodeURIComponent(partNum) + "&url=" + this.serviceLocation + encodeURIComponent(partNum);
window.location = detailUrl;
}
quickquote.prototype.performSearch=performSearch;
quickquoteservice = new quickquote();
// SIGN IN - REGISTRATION ACTION
function signInValue() {
if (signInVar==undefined){
var signInVar ="UNDEFINED";
}
window.location = "/trackingservlet/track/?action=signIn&zone=" + signInVar + "&url=/partsearchservlet/secure/viewClipboard.do"
}
