';
}
var a = new Ajax.Updater(
update,
url,
{asynchronous:true, evalScripts:true, parameters:Form.serialize(frmtoObserv), requestHeaders:['X-Update', update], onCreate: startLoading, onComplete: stopLoading}
);
}
function custome_updater(update, url)
{
new Ajax.Updater(
update,
url,
{
asynchronous:true,
evalScripts:true,
requestHeaders:['X-Update', update],
onSuccess: function(transport) {
if(update == '') {
alert("Member Type has been updated!");
}
}
}
);
}
function getFedexRates(update, url, frmtoObserv)
{
//SITE_URL_LAN=SITE_URL.replace("http:","https:");
//alert(SITE_URL);
if($('fedexCountry').value == '')
{
window.location.href = SITE_URL_LAN+'shopping/cart/?msg=3&c='+$('fedexCountry').value+'&z='+$('zipcode').value;
//alert("Please Select destination country.")
return false;
}
//if($('zipcode').value == '')
//{
// window.location.href=SITE_URL_LAN+'shopping/cart/?msg=4&c='+$('fedexCountry').value+'&z='+$('zipcode').value;
//alert("Please enter Zip?Postal code.")
// return false;
//}
//if($('fedexCountry').value!="" && $('zipcode').value!="")
$('totalwithfedex').innerHTML = preloader();
if($('fedexCountry').value!="")
{
xmlHttp1=GetXmlHttpObject();
if($('zipcode').value!="")
{
var zp = $('zipcode').value;
}else{
var zp = 0;
}
var url1=SITE_URL_LAN+"shopping/checkpostalcode/"+zp+"/"+$('fedexCountry').value;
//alert(url1);
xmlHttp1.open("GET",url1,false);
xmlHttp1.send(null);
if(parseInt(xmlHttp1.responseText)==0)
{
window.location.href = SITE_URL_LAN+'shopping/cart/?msg=2&c='+$('fedexCountry').value+'&z='+$('zipcode').value;
}
if(parseInt(xmlHttp1.responseText)==20) // 20 means fedex failed to provide rates.
{
window.location.href = SITE_URL_LAN+'shopping/cart/?msg=20&c='+$('fedexCountry').value+'&z='+$('zipcode').value;
}
}
var v=$('shippingservice').value;
s='Shipping Details';
if($('fedexCountry').value == 'US')
{
//$('shippingservicescontainer').innerHTML = usa_shipping_options;
/* Changes for Task 4392*/
//s=s+'FREE shipping on US orders of $'+uspsfreeamount+' or more';
}
else
{
//$('shippingservicescontainer').innerHTML = international_shipping_options;
}
$('shippingservice').value=v;
$('shippingservicescontainer').style.display="";
$('shippingdetailslinkcontainer').innerHTML=s;
//$('uspsfree').innerHTML='FREE shipping on US orders of $'+uspsfreeamount;+' or more';
$('shippingservicescontainerbeforetext').style.display="none";
if($('shippingservice').value == '' || true)
{
url = SITE_URL_LAN + 'shopping/shippingrates/';
updatewithformobserve(update, url, frmtoObserv);
//alert("Please select carrier service.")
return false;
}
else
{
updatewithformobserve(update, url, frmtoObserv);
}
_body_onunload();
}
function changefedexTotalText()
{
if($("shippingservice").value=='USPS')
{
$('fedexTotalText').innerHTML = "USPS Rate";
}
else
{
$('fedexTotalText').innerHTML = "Fedex Rate";
}
}
function updateLowestShippingCost()
{
$('shippingservice').value = LOWEST_SHIPPING_SERVICE;
$('fedexTotal').innerHTML = LOWEST_SHIPPING_PRICE;
}
function showhippingdetails(self, show)
{
lastItem = false;
if(show==true)
{
lastItem = self;
if($('fedexCountry').value == '')
{
alert("Please Select destination country.")
return false;
}
$('lightBox').style.display='';
if($('fedexCountry').value == 'US')
{
$('shiptime').innerHTML = usa_shipping_time;
}
else
{
$('shiptime').innerHTML = international_shipping_time;
}
//alert(document.body.clientHeight);
//$('lightBox').style.top=(document.body.clientHeight-255) +"px";
$('lightBox').style.top=(679) +"px";
$('lightBox').style.left=(336) +"px";
if(jQuery( window ).width() <768 || true){
if(typeof $('shipping-method-link') !='undefined'){
try{
$('lightBox').style.left="0.5%";
var pos = jQuery(self).offset();
jQuery('#lightBox').css('top',pos.top+20);
}catch(e){
}
}
}
}
else
{
$('lightBox').style.display='none';
}
}
jQuery(window).resize(function (){
if(jQuery('#lightBox').is(":visible")){
if(typeof lastItem !='undefined' && typeof lastItem !=null && lastItem!=false){
jQuery('#lightBox').css("left","0.5%");
var pos = jQuery(lastItem).offset();
jQuery('#lightBox').css('top',pos.top+20);
}
}
if(jQuery('.lightboxes_div').is(":visible")){
if(typeof lastItem !='undefined' && typeof lastItem !=null && lastItem!=false){
var pos = jQuery(lastItem).offset();
jQuery('#lightBox').css('top',pos.top+20);
}
}
});
function showcheckoutbox(show)
{
if(show==true)
{
$('lightBox01').style.display=''
$('lightBox01').style.top=(document.body.clientHeight-505) +"px";
}
else
{
$('lightBox01').style.display='none'
}
}
function largeView(crsobj, obj, view, c, man, imgn)
{
var paras = $A(document.getElementsByClassName('pcNormalBig01'));
paras.each(Element.hide);
getBrowserInfo();
if(obj!='' && obj != null){refobj=obj}else{obj=refobj}
if(c!=0 && c != null){largeViewCounter=c}
if(man!='' && man != null){master_asset_number=man}
if(imgn!='' && imgn != null){image_number=imgn}
if(crsobj!='' && crsobj != null){crossobj=crsobj}
var scrld = Number(document.getElementById("t").innerHTML);
//crossobj=(domII)?document.getElementById("largeImage").style : ieII? document.all.largeImage : document.largeImage;
var offsetLeft=0;
var offsetTop=0;
//alert(obj.offsetParent.offsetLeft);
var extra_pixels_for_higher_resolutions=0;
if(view!='none')
{
if(browser == "Internet Explorer 7.0" || browser == "Internet Explorer 6.0")
{
if(window.screen.availWidth>1024){
extra_pixels_for_higher_resolutions=124;
}
offsetLeft = (obj.offsetParent.offsetLeft + obj.parentNode.offsetLeft)+extra_pixels_for_higher_resolutions + 'px';
offsetTop = (obj.offsetParent.offsetTop + obj.parentNode.offsetTop)+585 - scrld + 'px';
}
else
{
offsetLeft = (obj.offsetLeft )-10 + 'px';
offsetTop = (obj.offsetTop )-(10+scrld ) + 'px';
}
//alert("left = "+offsetLeft+" \ top = "+offsetTop)
crossobj.style.left = offsetLeft;
crossobj.style.top = offsetTop;
}
crossobj.style.display = view;
//document.getElementById('bigviewlnkI').href = document.getElementById('bigviewlnk'+c).href;
//$('bigviewlnkI').href = '/criticalpast/products/bigview/'+master_asset_number+'/'+image_number;
//$('bigviewlnkII').href = '/criticalpast/products/bigview/'+master_asset_number+'/'+image_number;
//$('thumbimgI').src = $('thumbimg'+c).src;
//$('photobuylnkI').href = '/criticalpast/products/photobuydetails/'+master_asset_number+'/'+image_number; //
}
function scrollTheScroller2()
{
pollID = setInterval("scrollTheScroller2()",500);
}
var tm;
var flag=0;
var mainscrld = 0;
function scrollTheScroller(r)
{
var min1=0;
var max1=0;
var mod1=29;
var mod2=130;
var min1=0;
var min11=1;
var max1=0;
var max11=20;
//$('picContainer').style.overflow = 'auto';
document.getElementById("t").innerHTML = document.getElementById("picContainer").scrollTop;
var scrld = Number(document.getElementById("t").innerHTML);
if (scrld==0){$('count').innerHTML="1-20";return;}
if (scrld>0 && scrldName on Card cannot be blank.
Card Security Code cannot be blank.
Your two entries for Email Address do not match. Please try again.
' + transport.responseText.replace("|","
")+'
|
'; html += data.error; html += '
\"+val+"
"; }); jQuery("#jscorrection_error").html(html_error); } else { jQuery(".jscorrectionErrorbox").hide(); jQuery("#correctionFormBlock").hide(); jQuery(".jscorrectionSuccessbox").show(); window.scrollTo(0,0); window.scrollTop = 0 Modalbox.resizeToContent(); jQuery(".jscorrection_success p").html(data.success_message); } } var HFMessageCard = ''; var HFMessageDate = ''; var HFMessageCVV = ''; var HFMessageOwner = ''; function showError4BT (msg) { //msg = ''; if(HFMessageCard != '') { msg = msg + HFMessageCard; } if(msg != '') { msg = msg + '