function addcartj(vendor, code, price, type) {
  if(type=="PDF"){
	type = "PDF+Practice+Exam";
  }
  else if(type=="TE"){
    type = "Test+Engine";
  }
  else if(type=="PDFTE"){
    type = "PDF+and+Test+Engine";
  }
  else if(type=="PDFS"){
    type = "PDF+Saving+Pack";
  }
  else if(type=="TES"){
    type = "Test+Engine+Saving+Pack";
  }
  url = "https://www.paypal.com/cgi-bin/webscr?cmd=_cart&add=1&lc=JP&business=8VEDFE8KBVK7U&item_name=DreamCertify+"+code+"+"+type+"+Japanese+Version&currency_code=JPY&amount="+price+"&image_url=https%3A//securehost92.hrwebservices.net/~elitece/images/dreamcertify.gif&return=http://www.dreamcertify.com/thankyou.php&cancel_return=http%3A//jp.dreamcertify.com/";
  window.open(url,'cartwin','width=600,height=400,scrollbars,location,resizable,status');
}

function addcarte(vendor, code, price, type) {
  if(type=="PDF"){
	type = "PDF+Practice+Exam";
  }
  else if(type=="TE"){
    type = "Test+Engine";
  }
  else if(type=="PDFTE"){
    type = "PDF+and+Test+Engine";
  }
  else if(type=="PDFS"){
    type = "PDF+Saving+Pack";
  }
  else if(type=="TES"){
    type = "Test+Engine+Saving+Pack";
  }
  url = "https://www.paypal.com/cgi-bin/webscr?cmd=_cart&add=1&lc=JP&business=8VEDFE8KBVK7U&item_name=DreamCertify+"+code+"+"+type+"+English+Version&currency_code=JPY&amount="+price+"&image_url=https%3A//securehost92.hrwebservices.net/~elitece/images/dreamcertify.gif&return=http://www.dreamcertify.com/thankyou.php&cancel_return=http%3A//jp.dreamcertify.com/";
  window.open(url,'cartwin','width=600,height=400,scrollbars,location,resizable,status');
}


function cartj(){
  url = "https://www.paypal.com/cart/display=1&lc=JP&business=8VEDFE8KBVK7U";
  window.open(url,'cartwin','width=600,height=400,scrollbars,location,resizable,status');
}

