function cp(f,ss,ct){f=parseInt(f);ss=parseInt(ss);var a=ct.split("|"),m=a[0].replace(/[^0-9]/g,""),x=a[1].replace(/[^0-9]/g,"");m=parseInt(m);x=parseInt(x);f=parseInt(f);m=m * f * 0.01;x=x * f * 0.01;if(ss < (m + f)) return false;if(ss > (x + f)) return false;return true;}function ca(f,ct){var s=0,a=ct.split("|"),m=a[0],x=a[1],mx=x.split(","),ma=m.split(",");var arr=new Array();for(var i=0; i < ma.length; i++){s=ma[i];s=s.replace("(","");s=s.replace(")","");s=parseInt(s);arr.push(s);}for(var i=0; i < mx.length; i++){s=mx[i];s=s.replace("(","");s=s.replace(")","");s=parseInt(s);arr.push(s);}f=parseInt(f);for(var i=0; i < arr.length; i++){if(arr[i] == f) return true;}return false;}function cf(f,ct){var a=ct.split("|"),m=a[0].replace(/[^0-9]/g,""),x=a[1].replace(/[^0-9]/g,""),m=parseInt(m),x=parseInt(x); f=parseInt(f);if(f > x) return false;if(f < m) return false;return true;}