UNKNOWN {
var: /([0-9]+)/i; if: =0) || (query.indexOf(query.match("B"))==0) || (query.indexOf(query.match("C"))==0) ) {
mtx = query.match(rgArticle);
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzdetail&qsearch=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].charAt(0)=='0'?'20':'19') + mtx[2] +'&p='+ mtx[4];
else {
mtx = query.match(rgIssue);
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzhome&search_issue=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].match(/^0[0-9]$/)!=null?'20': (mtx[2].match(/^[2-9][0-9]$/)? '19':'')) + mtx[2] +'&axn=++Xem++';
else
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzsearch&post=1&kwd='+ query;
}
searchby = 'Article';
flagid = 1;
} else if (query.indexOf(query.match("ID"))==0) { // ID
if (query.indexOf(query.match("ID="))==0){ // ID=
var query2 = query.split('=');
}
else if(query.indexOf(query.match("ID:"))==0) { // ID:
var query2 = query.split(':');
}
query = query2[1];
mtx = query.match(rgArticle);
if ((query.indexOf(query.match("A"))==0) || (query.indexOf(query.match("B"))==0) || (query.indexOf(query.match("C"))==0) ) {
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzdetail&qsearch=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].charAt(0)=='0'?'20':'19') + mtx[2] +'&p='+ mtx[4];
else {
mtx = query.match(rgIssue);
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzhome&search_issue=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].match(/^0[0-9]$/)!=null?'20': (mtx[2].match(/^[2-9][0-9]$/)? '19':'')) + mtx[2] +'&axn=++Xem++';
else
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzsearch&post=1&kwd='+ query;
}
searchby = 'Article';
} else if (query.indexOf(query.match("L"))==0) { // L()
query = query.substring(1);
slink = 'http://www.pcworld.com.vn/pcworld/download.asp?t=dlddetail_find&find_id='+ query;
searchby = 'Link';
} else {
if (mtx != null) {
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzdetail&qsearch=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].charAt(0)=='0'?'20':'19') + mtx[2] +'&p='+ mtx[4];
} else {
mtx = query.match(rgIssue);
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzhome&search_issue=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].match(/^0[0-9]$/)!=null?'20': (mtx[2].match(/^[2-9][0-9]$/)? '19':'')) + mtx[2] +'&axn=++Xem++';
else
slink = 'http://www.pcworld.com.vn/pcworld/download.asp?t=dlddetail_find&find_id='+ query;
}
searchby = 'ID';
}
flagid = 1;
} else if (query.indexOf(query.match("L"))==0) { // L()
query = query.substring(1);
slink = 'http://www.pcworld.com.vn/pcworld/download.asp?t=dlddetail_find&find_id='+ query;
searchby = 'Link';
flagid = 1;
} else if (query.match(rgNum)) { // 12345
mtx = query.match(rgArticle);
if (mtx != null) {
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzdetail&qsearch=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].charAt(0)=='0'?'20':'19') + mtx[2] +'&p='+ mtx[4];
} else {
mtx = query.match(rgIssue);
if (mtx != null)
slink = 'http://www.pcworld.com.vn/pcworld/magazine.asp?t=mzhome&search_issue=yes&type='+ (mtx[1]=='G'||mtx[1]=='GM'?'GM':mtx[1]) +'&m='+ mtx[3] +'&y='+ (mtx[2].match(/^0[0-9]$/)!=null?'20': (mtx[2].match(/^[2-9][0-9]$/)? '19':'')) + mtx[2] +'&axn=++Xem++';
else
slink = 'http://www.pcworld.com.vn/pcworld/download.asp?t=dlddetail_find&find_id='+ query;
}
searchby = 'ID';
flagid = 1;
} else {
document.write('
');
document.write('Địa chỉ n?kh?tồn tại.');
window.setInterval("history.go(-1)", 5000);
}
if (slink != '' && flagid == 1)
{
document.location.href = slink + '&query=' + query + '&searchby=' + searchby;
}
return false
}