﻿// JScript 文件
function GetProOtherInfo(username,proid)
{

 
 var url ='/user/proxml.aspx';
 var pars ='username='+ username+'&ProID='+proid ;
 var myAjax = new Ajax.Request(url,{method: 'get', parameters: pars, onComplete:showResponse}); 

function showResponse(originalRequest)
{
var cc = originalRequest.responseText;
  var xmlDoc;
  try
  {
 	 xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  }
  catch(e)
  {
  xmlDoc = document.implementation.createDocument("text/xml", "", null);
  }
  xmlDoc.async=false;
  xmlDoc.loadXML(cc);
  var xmlnode=xmlDoc.selectSingleNode("//ds");
  var html="<ul id=\"moreproduct\">";
  
  for(i=0;i<xmlnode.childNodes.length;i++)
  {
  
  //document.write();
  html+="<li><div class=\"boxofpic\"><a href=\"/Html/Product/s_Pro"+xmlnode.childNodes.item(i).getAttribute('ID')+".html\" target=\"_blank\" title=\""+xmlnode.childNodes.item(i).getAttribute('proname')+"\"><img src=\""+ckrstr(xmlnode.childNodes.item(i).getAttribute('propic'))+"\" border=\"0\"  onload=\"javascript:DrawImage(this,126,96)\"/></a></div><div class=\"titleinfo\"><a href=\"/Html/Product/s_Pro"+xmlnode.childNodes.item(i).getAttribute('ID')+".html\"  title=\""+xmlnode.childNodes.item(i).getAttribute('proname')+"\">"+xmlnode.childNodes.item(i).getAttribute('proname')+"</a></div></li>";
  }
  html+="</ul>";
  //alert(html);  

  $('proaaa').innerHTML=html       
    
 
}
}


function GetbuyoOtherInfo(username,proid,stid)
{

 
 var url ='/user/proxml.aspx';
 var pars ='username='+ username+'&ProID='+proid+'&stid='+stid ;
 var myAjax = new Ajax.Request(url,{method: 'get', parameters: pars, onComplete:showResponse}); 

function showResponse(originalRequest)
{
var cc = originalRequest.responseText;
  var xmlDoc;
  try
  {
 	 xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  }
  catch(e)
  {
  xmlDoc = document.implementation.createDocument("text/xml", "", null);
  }
  xmlDoc.async=false;
  xmlDoc.loadXML(cc);
  var xmlnode=xmlDoc.selectSingleNode("//ds");
  var html="<ul id=\"moreproduct\">";
  
  for(i=0;i<xmlnode.childNodes.length;i++)
  {
  
  //document.write();
  html+="<li><div class=\"boxofpic\"><a href=\"http://www."+xmlnode.childNodes.item(i).getAttribute('username')+".v2vshoes.com/Html/Product/S_Pro"+xmlnode.childNodes.item(i).getAttribute('ID')+".html\" target=\"_blank\" title=\""+xmlnode.childNodes.item(i).getAttribute('title')+"\"><img src=\""+ckrstr(xmlnode.childNodes.item(i).getAttribute('propic'))+"\" border=\"0\"  onload=\"javascript:DrawImage(this,126,96)\"/></a></div><div class=\"titleinfo\"><a href=\"http://www."+xmlnode.childNodes.item(i).getAttribute('username')+".v2vshoes.com/Html/Product/s_Pro"+xmlnode.childNodes.item(i).getAttribute('ID')+".html\"  title=\""+xmlnode.childNodes.item(i).getAttribute('title')+"\">"+xmlnode.childNodes.item(i).getAttribute('title')+"</a></div></li>";
  }
  html+="</ul>";
  //alert(html);  

  $('proaaa').innerHTML=html       
    
 
}
}


function GetUleft(username)
{

 
 var url ='/user/proxml.aspx';
 var pars ='username='+ username+'&action=left' ;
 var myAjax = new Ajax.Request(url,{method: 'get', parameters: pars, onComplete:showResponse}); 

function showResponse(originalRequest)
{
	echo();
var cc = originalRequest.responseText;
  var xmlDoc;
  try
  {
 	 xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
  }
  catch(e)
  {
  xmlDoc = document.implementation.createDocument("text/xml", "", null);
  }
  xmlDoc.async=false;
  xmlDoc.loadXML(cc);
  var xmlnode=xmlDoc.selectSingleNode("//ds");
  var html="<ul id=\"product_info\">";
  
  for(i=0;i<xmlnode.childNodes.length;i++)
  {
  
  //document.write();
  html+="<li><span class=\"spit\">●</span><a href=\"http://www."+xmlnode.childNodes.item(i).getAttribute('username')+".v2vshoes.com/html/Product/S_Pro"+xmlnode.childNodes.item(i).getAttribute('ID')+".html\" title=\""+xmlnode.childNodes.item(i).getAttribute('title')+"\" target=\"_blank\">"+xmlnode.childNodes.item(i).getAttribute('title2')+"</a></li>";
  }
  html+="</ul>";
  //alert(html);  

  $('leftaaa').innerHTML=html       
    
 
}
}

function ckrstr(str)
{
	var str1="/Uploadfile/product/";
	if(str=="")
	{
	return "http://china.v2vshoes.com/images/nopic.jpg";
	}
	else
	{
		return str1+str;
		
		}
	}
	
function echo()
{
	$('leftaaa').innerHTML="<img src=\"/images/loading2.gif\">&nbsp;loading...";
}

