0)){
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134938.gif";
}else{
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134422.gif";
}
}
}
}
//价格区间专用
function showTradeErrorPricerange(nameObj, show, errMsg, wb, wprice){
if(wb!=null && wprice!=null && wb.value!='' && wprice.value!=''){
var oldwrong = document.getElementById("wrong_" + nameObj);
if(show && oldwrong){
oldwrong.style.display="none";
}
var nowwrong = document.getElementById("trade_wrong_" + nameObj);
if(nowwrong){
nowwrong.innerHTML=errMsg;
if(show)
nowwrong.style.display="";
else
nowwrong.style.display="none";
}
showTradeValidPricerange(nameObj,show,wb,wprice);
}else{
var rightImagObj = document.getElementById("img_right_" + nameObj);
var valueObj = document.getElementById(nameObj);
if(rightImagObj){
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134422.gif";
}
}
}
function showTradeValidPricerange(nameObj,show,wb,wprice){
var rightImagObj = document.getElementById("img_right_" + nameObj);
var valueObj = document.getElementById(nameObj);
if(rightImagObj){
if(show){
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134422.gif";
}else{
if((valueObj)&&(valueObj.name)&&(valueObj.name.length>0)){
var ptn = /^\d+(.\d+)?$/;
if(wprice.value!='' && ptn.test(wprice.value) && parseFloat(wprice.value)>0){
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134938.gif";
}else{
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134422.gif";
}
}else{
rightImagObj.src = "/oledit/UploadFile/20103/2010328203134422.gif";
}
}
}
}
function getFieldFlagName(featureId){
}
//检查交易信息
function checkTradeInfo(featureId){
var nameObj;
var valueObj;
var errMsg;
var result = true;
var fieldAll = true;
var isTrade = false;
var showOther = true;
isTrade=false;
if(bizType == "WHOLESALE"){
isTrade = true;
}
nameObj = document.getElementById("fieldFlagName_unit");
if (nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
var temp = trim(valueObj.value).toLowerCase();
if(temp == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(temp != "" && !isNaN(temp)){
showTradeError(nameObj.value, true, "请用汉字填写,如:\"只\"、\"件\"、\"箱\"等。");
result = false;
}else if(temp != "" && (temp.indexOf("= 0 || temp.indexOf("=0 || temp.indexOf("java") >=0)){
showTradeError(nameObj.value, true, "计量单位含有非法字符");
result = false;
}else{
showTradeError(nameObj.value, false, "计量单位含有非法字符");
}
}
}
var amountMsg;
if(bizType == "WHOLESALE"){
amountMsg = "供货总量必须大于等于最小起批";
}
else{
amountMsg = "供货总量必须大于等于最小起订量";
}
nameObj = document.getElementById("fieldFlagName_beginamount");
if(nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
if(trim(valueObj.value) == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(trim(valueObj.value) != ""){
if(!isInteger(valueObj.value) || parseInt(valueObj.value) >= 1000000000){
showTradeError(nameObj.value, true, "请填写大于0小于10亿的整数");
result = false;
}else{
showTradeError(nameObj.value, false, "");
var beginamount = parseInt(valueObj.value);
nameObj = document.getElementById("fieldFlagName_amount");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj && isInteger(valueObj.value)){
if(parseInt(valueObj.value) >= beginamount){
showTradeError(nameObj.value, false, "");
}else{
showTradeError(nameObj.value, true, "" + amountMsg + "");
result = false;
}
}
}
}
}
else{
showTradeError(nameObj.value, false, "请填写大于0小于10亿的整数");
}
}
}
nameObj = document.getElementById("fieldFlagName_amount");
if(nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
if(trim(valueObj.value) == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(trim(valueObj.value) != "" ){
if(!isInteger(valueObj.value) || parseInt(valueObj.value=valueObj.value.replace(/^0+([^.]*)/,'$1')) >= 1000000000){
showTradeError(nameObj.value, true, "请填写大于0小于10亿的整数");
result = false;
}else{
valueObj.value=valueObj.value.replace(/^0+([^.]*)/,'$1');
showTradeError(nameObj.value, false, "");
var amount = parseInt(valueObj.value);
var oldnameObj = nameObj;
//最小起定量验证
nameObj = document.getElementById("fieldFlagName_beginamount");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj && isInteger(valueObj.value) && parseInt(valueObj.value) > amount){
showTradeError(oldnameObj.value, true, "" + amountMsg + "");
result = false;
}
}
}
}
else{
showTradeError(nameObj.value, false, "请填写大于0小于10亿的整数");
}
}
}
nameObj = document.getElementById("fieldFlagName_sendlimit");
if(nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
if(trim(valueObj.value) == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(trim(valueObj.value) != "" && (!isInteger(valueObj.value) || parseInt(valueObj.value) <= 0)){
showTradeError(nameObj.value, true, "发货期限必需是大于0的整数");
result = false;
}
else{
showTradeError(nameObj.value, false, "发货期限必需是大于0的整数");
}
}
}
nameObj = document.getElementById("fieldFlagName_price");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
if(!featureId || featureId.name == nameObj.value){
if(trim(valueObj.value) == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(isNaN(valueObj.value) || (valueObj.value.length > 0 && trim(valueObj.value.charAt(0)) == "+") || parseFloat(valueObj.value) <= 0 || parseFloat(valueObj.value) >= 1000000000){
showTradeError(nameObj.value, true, "请填写大于0小于10亿的数字");
result = false;
}else if(valueObj.value.indexOf(".") > -1 && valueObj.value.substring(valueObj.value.indexOf(".")+1).length >2){
showTradeError(nameObj.value, true, "产品单价只能以人民币统计到小数点后 2 位");
result = false;
}else{
showTradeError(nameObj.value, false, "请填写大于0小于10亿的数字");
}
}
//关联检查
//if(!isTrade && valueObj.value.length>0){
if(valueObj.value.length>0){
showTradeValid(nameObj.value,false);
var unitNameObj = document.getElementById("fieldFlagName_unit");
var unitvalueObj = document.getElementById(unitNameObj.value);
if(unitvalueObj.value.length<=0 && (!featureId || featureId.name == unitNameObj.value)){
showTradeError(unitNameObj.value, true, "请填写 计量单位");
result = false;
}
}
}
}
nameObj = document.getElementById("fieldFlagName_providertype");
if (nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
if(isEmptyvalueObject(nameObj.value)){
showTradeError(nameObj.value, true, "请选择供应商类型");
result = false;
}else{
showTradeError(nameObj.value, false, "请选择供应商类型");
}
}
}
nameObj=document.getElementById("fieldFlagName_retailprice");
if(nameObj && (!featureId || featureId.name == nameObj.value)){
valueObj=document.getElementById(nameObj.value);
if(valueObj){
if(trim(valueObj.value) == "" && isTrade){
showTradeError(nameObj.value, true, "带*为必填项");
result = false;
}else if(trim(valueObj.value) != ""){
//var ptn = /^\d+(.\d+)?$/;
if(/^\d+(\.\d+)?$/.test(valueObj.value)){
//小数
var v=valueObj.value;
if(0.005<=v*1 && v*1<0.01){
v=0.01;
}else{
v=(v*1).toFixed(2);
}
valueObj.value=v;
if(v <= 0 || v>=1000000000){
//小于0或大于10亿
showTradeError(nameObj.value, true, "请填写大于0小于10亿的数字");
result=false;
}else{
showTradeError(nameObj.value, false, "");
}
}else{
//非小数
showTradeError(nameObj.value, true, "请填写大于0小于10亿的数字");
result=false;
}
}else if(trim(valueObj.value) == ""){
showTradeError(nameObj.value, true, "");
}
}
}
var dError=GetCT('error',document,'div'),dInfo=GetCT('info',document,'div'),
r1s=GetNT('mixWholesale',document,'input'),rset=GetCT('rset',document,'span'),
sel=GetCT('sel',document,'select'),units=GetCT('unit',document,'span');
//价格区间中起批量和供货总量验证
var amountObj=document.getElementById("fieldFlagName_amount");
if(amountObj){
var amountvalueObj=document.getElementById(amountObj.value);
if(amountvalueObj && amountvalueObj.value != ''){
var wb1=document.getElementById("wb1");
if(wb1){
fun3(true);
}
}
}
//验证价格区间
if(!check_pricerange()) return false;
return result;
}
// 交易属性获得焦点 隐掉提示信息
function doOnFocusOfTrade(objName,type){
var trObj = document.getElementById("trade_wrong_" + objName);
if(trObj != null && typeof(trObj) == "object")
trObj.style.display="none";
var hunpiObj = document.getElementById("wrongword_hunpi");
if(hunpiObj){
hunpiObj.style.display = "none";
}
}
//检查是否满足 交易条件
function checkTradeCondition(isAwayNoShow, featureId){
//交易条件全角转半角
transferTradeNumber();
//var obj = document.getElementById("tr_AegisAlipay");
var serviceTerm = document.getElementById("serviceTerm");
var postsubmit = document.getElementById("postsubmit");
var freeMemberFlag = true;
try{
if(isFreemember)
freeMemberFlag = true;
else
freeMemberFlag = false;
}catch(e){
freeMemberFlag = false;
}
var bcanTrade = canTradeCondition(featureId);
if(!(isAwayNoShow == true) && bcanTrade && !freeMemberFlag){
//obj.style.display="";
if(serviceTerm){
serviceTerm.style.display="";
postsubmit.value="同意服务条款,我要发布";
}
}
else{
//obj.style.display="none";
if(serviceTerm){
serviceTerm.style.display="none";
postsubmit.value="一切完成,我要发布!";
}
}
}
//检查是否满足 交易条件
function canTradeCondition(featureId){
var result = checkTradeInfo(featureId);
if(!checkTradeField("fieldFlagName_unit")){
return false;
}
if(!checkTradeField("fieldFlagName_beginamount")){
return false;
}
if(!checkTradeField("fieldFlagName_price")){
return false;
}
if(!checkTradeField("fieldFlagName_amount")){
return false;
}
if(!checkTradeField("fieldFlagName_sendlimit")){
return false;
}
return result;
}
//交易条件全角转半角
function transferTradeNumber(){
var nameObj = document.getElementById("fieldFlagName_amount");
var valueObj;
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
valueObj.value = tot(valueObj.value);
}
}
nameObj = document.getElementById("fieldFlagName_beginamount");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
valueObj.value = tot(valueObj.value);
}
}
nameObj = document.getElementById("fieldFlagName_price");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
valueObj.value = tot(valueObj.value);
}
}
nameObj = document.getElementById("fieldFlagName_retailprice");
if(nameObj){
valueObj = document.getElementById(nameObj.value);
if(valueObj){
valueObj.value = tot(valueObj.value);
}
}
}
//全角转半角
function tot(mobnumber){
while(mobnumber.indexOf("。")!=-1){
mobnumber = mobnumber.replace("。",".");
}
while(mobnumber.indexOf(".")!=-1){
mobnumber = mobnumber.replace(".",".");
}
while(mobnumber.indexOf("0")!=-1){
mobnumber = mobnumber.replace("0","0");
}
while(mobnumber.indexOf("1")!=-1){
mobnumber = mobnumber.replace("1","1");}
while(mobnumber.indexOf("2")!=-1){
mobnumber = mobnumber.replace("2","2");}
while(mobnumber.indexOf("3")!=-1){
mobnumber = mobnumber.replace("3","3");}
while(mobnumber.indexOf("4")!=-1){
mobnumber = mobnumber.replace("4","4");}
while(mobnumber.indexOf("5")!=-1){
mobnumber = mobnumber.replace("5","5");}
while(mobnumber.indexOf("6")!=-1){
mobnumber = mobnumber.replace("6","6");}
while(mobnumber.indexOf("7")!=-1){
mobnumber = mobnumber.replace("7","7");}
while(mobnumber.indexOf("8")!=-1){
mobnumber = mobnumber.replace("8","8");}
while(mobnumber.indexOf("9")!=-1){
mobnumber = mobnumber.replace("9","9");}
return mobnumber;
}
function changeTradeUnit(){
setTradeUnit("price");
setTradeUnit("beginamount");
setTradeUnit("amount");
//价格区间
setTradeUnit("wb1");
setTradeUnit("wb2");
setTradeUnit("wb3");
setTradeUnit("we1");
setTradeUnit("we2");
setTradeUnit("we3");
setTradeUnit("wprice1");
setTradeUnit("wprice2");
setTradeUnit("wprice3");
}
function setTradeUnit(name){
var obj = document.getElementById("trade_unit_" + name);
if(obj){
var nameObj = document.getElementById("fieldFlagName_unit");
if(!nameObj){
return ;
}
var valueObj = document.getElementById(nameObj.value);
if(valueObj && trim(valueObj.value) != ""){
obj.innerHTML = trim(valueObj.value)
}else{
obj.innerHTML = "单位"
}
}
}
function checkTradeField(objName){
var nameObj = document.getElementById(objName);
if(!nameObj){
return false;
, }
var valueObj = document.getElementById(nameObj.value);
if(!valueObj || trim(valueObj.value) == ""){
return false;
}
return true;
}
//大于0等整数
function isInteger(value){
return (!isNaN(value) && trim(value) != "" && value.indexOf(".") == -1 && parseInt(value) > 0)
}
function getHttpRequest(){
var httpRequest;
if (window.XMLHttpRequest){ // Mozilla, Safari,...
httpRequest = new XMLHttpRequest();
if (httpRequest.overrideMimeType){
httpRequest.overrideMimeType('text/xml');
}
}else if (window.ActiveXObject){ // IE
try{
httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e){
try {
httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e){}
}
}
return httpRequest;
}
var activedCategoryObj = null;
function activedCategoryTd(obj){
if(activedCategoryObj!=null){
if(activedCategoryObj.parentNode !=null){
activedCategoryObj.parentNode.className="defaultItem";
}
}
if(obj!=null && obj.parentNode!=null){
obj.parentNode.className="activedItem";
}
activedCategoryObj=obj;
}
/** 选择用过的类目*/
function selectUsedCategory(objCat){
if(objCat.value!=''){
var objKeyword = document.getElementById("$group.keywords.key");
selectOtherCategory();
matchCategory(objKeyword.value,objCat.value);
aliclick(null,'?tracelog=fb_sort_used');
userdCategory =1;
}else{
userdCategory =0;
}
var objUsedCategoryvalue = document.getElementById('usedCategoryvalue');
if(objUsedCategoryvalue!=null){
objUsedCategoryvalue.value = objCat.value;
}
}
/** 更新用过的类目信息 */
function refreashUsedCategory(){
var objDiv = document.getElementById('usedCategoryDiv');
if(objDiv!=null){
objDiv.innerHTML = getCategoryUsed(getSelectTypevalue());
}
var objUsedCategory = document.getElementById('usedCategory');
var objUsedCategoryvalue = document.getElementById('usedCategoryvalue');
if(objUsedCategory!=null && objUsedCategoryvalue!=null && objUsedCategoryvalue.value!=''){
for(var i=0;i
function makeOrderfalse(){
var isOrder = true;
if(numCheckfalse(document.getElementById("buyAmountfalse"),1,0,isOrder)){
var buyAmount=document.getElementById("buyAmountfalse").value;
//window.open('http://china.alibaba.com/offer/make_order.htm?offerid=540800863&tracelog=freeselldetail_order_21623&render_type=alipay_offer_order&buyAmount='+buyAmount);
var url="http://trade.china.alibaba.com/order/makeOrder.htm?offerid=540800863&tracelog=freeselldetail_order_21623&renderType=alipay_offer_order&buyAmount="+buyAmount;
simulationLink(url,"_blank");
}
}
function simulationLink(url) {
var a = document.createElement('a'),
b = '_blank',
bd = document.body,
target = arguments[1]== b ?b:'_self';
if(!a.click) {
return window.open(url,target);
}
a.setAttribute("target",target);
a.setAttribute('href', url);
a.style.display = 'none';
if(!bd) return ;
bd.appendChild(a);
a.click();
if (target == b) {
setTimeout(function(){
try {
bd.removeChild(a);
}
catch (e) {
}
}, 500);
}
}
function numCheckfalse(input,min,max,isOrder){
input.value = tot(input.value);
var error=document.getElementById("err1false");
var res=true;
var pattern = /^\d*[1-9]\d*$/i;
if(!pattern.test(input.value*1)){
error.innerHTML='订购数量必须为大于0的整数';
error.style.display='block';
res = false;
}else{
// 如果点击【加入进货单】,而且该offer支持混批,则不校验最小起订量
// 点击【加入进货单】调用numCheck方法不会传入isOrder参数
if(isOrder && parseInt(input.value*1)max && max > 0){
error.innerHTML='订购数量超过了供货总量';
error.style.display='block';
res = false;
}
else{
error.style.display='none';
}
}
return res;
}
var alitalkParam_pay = initAlitalk($("alitalkImg"), $("alitalk"), $("alitalkTxt_alipay"), $("alitalkTxt_alink_alipay"));
function setWWClass_pay(hrefObj){
if(OnLine==1){
hrefObj.className = "talk";
}else{
hrefObj.className = "talk-off";
}
}
setWWClass_pay($("alitalkTxt_alink_alipay"));
function inquiryByWWTrace(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=$tracelogWW');
}
function inquiryByWWTraceFromMemberContact(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=freeselldetail_wangwang_21623');
}
function inquiryByWWTraceFromTradeFeedBack(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=freeselldetail_midwangwang_21623');
}
function inquiryByFeedBackTrace(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceCreateEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF&sourceUrl=http%3A%2F%2Fchina.alibaba.com%2Fmessage%2Flist_received_message.htm%3F_fmme.l._0.of%3Dsale";
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
}
//打点接口的URL
var tracelogUrl = "";
/**
打点操作
*/
function commonTracelog(obj, params) {
parseParams(params);
document.getElementById("tracelogForm").submit();
return true;
}
/**
组装参数
*/
function makeupParams(params){
var paramString = "?1=1";
if(params==null) return paramString;
if(params.length == 0) return paramString;
if(typeof(params) == "string") return (paramString + "&" + params);
var len = params.length;
for(var i=0;i1){
var obj = document.getElementById(arr[0]);
var _obj = document.getElementsByName(arr[0]);
if(_obj.length>1){
for(var t=0;t<_obj.length;t++){
if(_obj[t].value==""){
obj = _obj[t];
break;
}
}
}
if(obj!=null && typeof(obj)!='undefined'){
var _index = _value.indexOf("=");
obj.value = _value.substring(_index+1);
}
}
}
return false;
}
var renmaiModuleDomainUrl = 'http://renmai.china.alibaba.com';
/**
供求信息联系方式打点处理
*/
function contactInfo_Link_onclick(){
showBRMMScontact();
window.location.href='#contactInfo';
document.getElementById("brmms-show-link").style.display = "";
document.getElementById("brmms-show").style.display = "none";
return false;
}
/*
求购信息联系方式打点处理
*/
function buy_contactInfo_Link_onclick(){
showBRMMScontact();
window.location.href='#bottomContact';
feedbackTracelog(this, "changxiaoshijie666", "changxiaoshijie666", "10201", 'buyofferdetailtel', "buyofferdetail_tel_wy0818","540800863");
}
/*
显示勃拉姆斯会员名片信息
*/
function showBRMMScontact() {
//if(!swfobject.hasFlashPlayerVersion('9.0')){
if(document.getElementById("contactInfoDiv")!=null){
document.getElementById("contactInfoDiv").style.display = 'block';
}
if(document.getElementById("contactInfo_Prompt")!=null){
document.getElementById("contactInfo_Prompt").style.display = 'none';
}
return false;
//}
var toMemberId = "changxiaoshijie666";
var bizType = "buyoffer";
var offerType = "SALE";
var memberLevel = "common";
var offerId = "540800863";
var fromMemberId = "changxiaoshijie666";
var categoryId = "10201";
BRMMScontact(
[ toMemberId,bizType, '', bizType, renmaiModuleDomainUrl],
{'type':offerType,'memberLevel':memberLevel,'info_Id':offerId,'toid':toMemberId,'fromid':fromMemberId,'categoryId':categoryId});
}
/**
联系方式打点
*/
function linkTraceLog(){
return false;
}
function inquiryByWWTrace(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=freeselldetail_belowwangwang_21623');
}
function inquiryByWWTraceFromMemberContact(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=freeselldetail_wangwang_21623');
}
function inquiryByWWTraceFromTradeFeedBack(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF";
if("changxiaoshijie666" != "notmember" )
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
return aliclick(this,'?tracelog=freeselldetail_midwangwang_21623');
}
function inquiryByFeedBackTrace(){
var d = new Date();
var url = "http://interface.xp.china.alibaba.com/eq/enquiry/traceCreateEnquiry.json?fromId=changxiaoshijie666&toId=changxiaoshijie666&offerId=540800863&source=1&cna=rnIaBAFfWH8CAYDKB3hLOwcF&sourceUrl=http%3A%2F%2Fchina.alibaba.com%2Fmessage%2Flist_received_message.htm%3F_fmme.l._0.of%3Dsale";
if(document.images) {
(new Image()).src = url+'&time='+d.getTime();
}
}
1 2 3 4 5 6 7 8 9 10 … 2 [按键盘 ← → 键可翻页]
共有214条“电力电缆”供应信息
function otherDetail(obj, tracelogParam, currentNo, offersId){
var objForm = document.otherDetailFormTop;
aliclick(obj,'?tracelog='+tracelogParam);
if(objForm){
objForm.action = "http://detail.china.alibaba.com/buyer/offerdetail/" + offersId + ".html#playerStart";
objForm.target="_self";
objForm.currentno.value = currentNo;
objForm.submit();
}
return false;
}
function changeCategory(obj,tracelog, offersId){
var objForm = document.otherCategoryForm;
aliclick(obj,'?tracelog=' + tracelog);
objForm.action = "http://detail.china.alibaba.com/buyer/offerdetail/" + offersId + ".html#playerStart";
objForm.submit();
return false;
}
function changeCategory(obj,tracelog, offersId){
var objForm = document.otherCategoryForm;
aliclick(obj,'?tracelog=' + tracelog);
objForm.action = "http://detail.china.alibaba.com/buyer/offerdetail/" + offersId + ".html#playerStart";
objForm.submit();
return false;
}
function doNextAll(){
return otherDetail(this, 'offeredetail_page_free1', '2', '536332364');
}
function doPrevious(){
return false;
}
function addAlitalkListener(param, infoType, infoId, memberLevel, fromId, toId,categoryId) {
//update by ruihai.yerh at 2008-12-24
var gid = "540800863";
var url1Str = "";
var url2Str = "online="+OnLine+"#type="+infoType+"#memberLevel="+memberLevel+"#info_id="+infoId+"#toid="+toId+"#fromid="+fromId+"#categoryId="+categoryId;
addMoreProperties(param,url1Str,url2Str,gid);
//update end
Alitalk.addListener(param);
}
function setWWClass(hrefObj){
if(hrefObj&&hrefObj.nodeType){
if(OnLine==0||OnLine==2||OnLine==6){
hrefObj.className = "ww_offline_m";
}else if(OnLine==1){
hrefObj.className = "ww_online_m";
}else if(OnLine==4||OnLine==5){
hrefObj.className = "ww_telonline_m";
}else{
hrefObj.className = "ww_offline_m";
}
}
}
setWWClass($("alitalkTxt_alink1"));
setWWClass($("alitalkTxt_alink2"));
function getWinScroll(){
var t, l, w, h;
if (document.documentElement && document.documentElement.scrollTop) {
t = document.documentElement.scrollTop;
l = document.documentElement.scrollLeft;
w = document.documentElement.scrollWidth;
h = document.documentElement.scrollHeight;
} else if (document.body) {
t = document.body.scrollTop;
l = document.body.scrollLeft;
w = document.body.scrollWidth;
h = document.body.scrollHeight;
}
return { t: t, l: l, w: w, h: h };
}
function centralize(obj){
var windowScroll = new getWinScroll;
var top = windowScroll.t+(windowScroll.h-parseInt(obj.offsetHeight))/2-275;
if(top <= 0){
top = 100;
}
obj.style.top, = top+"px";
obj.style.left = windowScroll.l+(windowScroll.w-parseInt(obj.offsetWidth))/2+"px";
}
function getWebimFeedbackUrl(infoType, fromid, toid, status){
var param="http://stat.china.alibaba.com/feedbackfromalitalk.html?";
var gid=540800863;
var url1Str="";
var url2Str="online=#type="+infoType+"#memberLevel=#info_id="+540800863+"#toid="+toid+"#fromid="+fromid+"#categoryId=";
param=param+addMorePropertiesSearch(url1Str,url2Str,gid);
return param;
}
function addFeedbackToMultipleAltalk(paramArr, infoType, fromid){
for(i = 0; i < paramArr.length; i ++){
var param = paramArr[i];
//update by ruihai.yerh
var gid = "";
var url1Str = "";
var url2Str = "online="+online[i]+"#type="+infoType+"#info_id=540800863#toid="+param.uid+"#fromid="+fromid+"#categoryId=0";
if(typeof(memberLevel)!='undefined'){
url2Str += "#memberLevel="+memberLevel;
}
addMoreProperties(param,url1Str,url2Str,gid);
}
}
String.prototype.trim=function(){
return this.replace(/(^\s*)|(\s*$)/g, "");
}
function getCookie(sName) {
var sRE = "(?:; )?" + sName + "=([^;]*);?";
var oRE = new RegExp(sRE);
if (oRE.test(documents.cookie)) {
return decodeURIComponent(RegExp["$1"]);
} else {
return null;
}
}
function checkAll(){
var validateList = [document.getElementById("msgBtn"),validate1,validate2,validate3,validate4,validate5,document.getElementById("msgBtn")];
var ret = true;
for(var i=1;i= 0){
curUrl = curUrl + "&" + param;
}
else{
curUrl = curUrl + "?" + param;
}
return curUrl;
}
function refreshPlistBoard(){
function deleteChildren(node){
var children = node.childNodes;
for(var i = 0;i < children.length; i++){
node.removeChild(children[i]);
}
}
var speciesSpan = document.getElementById('cargospecies');
var totalSpan = document.getElementById('cargototal');
deleteChildren(speciesSpan);
deleteChildren(totalSpan);
xsAjax("http://china.alibaba.com/ims/ajax/fetch_plist_data.do",
function(){
speciesSpan.appendChild(document.createTextNode(plistData.species));
totalSpan.appendChild(document.createTextNode(plistData.total));
}
);
}
function genRefreshListener(initClosed){
var closed = initClosed;
return function(){
if(closed){
closed = false;
refreshPlistBoard();
}else{
closed = true;
}
}
}
function addEvent(node, event){
if(0 == YAHOO.env.ua.ie){
node.addEventListener("click", event, false);
}else{
node.attachEvent("onclick", event);
}
}
function xsAjax(url, onSuc){
if(url.indexOf('?') == -1){
url = url + '?t=' + (new Date()).getTime();
}else{
url = url + '&t=' + (new Date()).getTime();
}
FYU.Get.scrtpt(url,{
onSuccess : onSuc,
charset : 'GBK',
onFailure : function(){alert("xsAjax request failed!");},
onTimeout : function(){alert("xsAjax request timeout!")}
});
}
|