function horizScroller(opt) /* Used in Showcase pages */
{
 var d = 0;
 opt.delay = opt.delay || 50;
 opt.dist = opt.dist || 2;
 opt.leftEl.onmouseover = function() { d = -opt.dist; scroll(); }
 opt.leftEl.onmouseout = function() { d = 0 }
 opt.rightEl.onmouseover = function() { d = opt.dist; scroll(); }
 opt.rightEl.onmouseout = function() { d = 0 }
 
 function scroll()
 {
 if (!d) return;
 var x = opt.contentEl.scrollLeft+d, stop = false, rightBoundary = opt.contentEl.scrollWidth-opt.contentEl.offsetWidth;
 if (x<0) {
 addClassName(opt.leftEl, 'disabled');
 x = 0;
 stop = true;
 } else {
 removeClassName(opt.leftEl, 'disabled');
 }
 if (x>=rightBoundary) {
 addClassName(opt.rightEl, 'disabled');
 x = rightBoundary;
 stop = true;
 } else {
 removeClassName(opt.rightEl, 'disabled');
 }
 opt.contentEl.scrollLeft = x;
 if (stop) return;
 window.setTimeout(scroll, opt.delay);
 }
 
 function addClassName(el, className)
 {
 el.className = el.className.replace(new RegExp(' ?'+className+'|$'), ' '+className);
 }
 
 function removeClassName(el, className)
 {
 el.className = el.className.replace(new RegExp(' ?'+className+'( |$)'), '$1');
  }
}


function fetchURL(form_name)
{
 var ele = document.getElementById(form_name);
 goURL = ele.options[ele.selectedIndex].value;
 if (goURL) location.href = goURL;
}

function showPaymentList(objId, lnk)
{
 obj = document.getElementById(objId);
 if( obj.style.display == 'block' ){
 obj.style.display = 'none';
 lnk.innerHTML = '[ + ] view all supported payment gateways';
 }else{
 obj.style.display = 'block';
 lnk.innerHTML = '[ - ] hide all supported payment gateways';
 }
}

function comment_check(){
 var hf = document.createElement("INPUT");
 hf.type = "hidden";
 hf.name = "cCheck";
 hf.value = "m"+"a"+"g"+"e"+"n"+"t"+"0";
 document.getElementById("comment_form").appendChild(hf);
}


