////////////////////////////////////////////////////////////////////////////////// V12 Variable Live Deposit Calc // function pipipipi(){ } function recalc_the_finance(scheme,chosen_deposit,cash_price,orderID){ if(scheme=="36") { var factor=0.0363; } else if(scheme=="48") // where is the 24 month calc?? { var factor=0.02953; } else // the BNPL factor for the 9 month scheme { var factor=0.04574; } var monthly_ppi=0; // we do not offer payment protection using 0 here. var balance_before_charges=(cash_price-chosen_deposit); var bob=balance_before_charges*factor; var monthly_installment=Math.round(bob*100)/100; var balance_payable=monthly_installment*scheme; var amount_payable=Math.round((balance_payable+chosen_deposit)*100)/100; var charge_for_credit=Math.round((amount_payable-cash_price)*100)/100; var credit_amount=Math.round((cash_price-chosen_deposit)*100)/100; document.cc_check.credit_amount.value=credit_amount; document.cc_check.monthly_installment.value=monthly_installment; //document.cc_check.charge_for_credit.value="£"+charge_for_credit; document.cc_check.amount_payable.value=amount_payable; var chosen_deposit_2=Number(chosen_deposit); var chosen_deposit_3 = chosen_deposit_2.toFixed(2); document.cc_check.amount.value=chosen_deposit_3; document.getElementById("payment_amount").innerHTML='Deposit to pay: £'+chosen_deposit_3; var tenpc=(cash_price/100)*10; if(chosen_deposit"; } else { document.cc_check.error.value="Your chosen deposit is OK"; document.getElementById("continue_button").innerHTML=""; } if(credit_amount<400) { document.cc_check.error.value="Deposit value too high"; document.getElementById("continue_button").innerHTML=""; } } ///////////////////////////////////////////////////////////////////////////////// /* ie = (document.all)? true:false mz = (document.getElementById)? true:false var browser; if (ie){ browser = "ie"; } else if (mz) { browser = "mz"; } */ function suggest_pop() { //if(ie) //{ window.open('https://www.creativevideo.co.uk/public/dont-leave-me-this-way.php', 'suggest', "toolbar=no, height=259, width=350, top=200, left=200"); //} } function pop_send_video_friend(videoID) { window.open('http://www.creativevideo.co.uk/public/video_send_friend.php?vID='+videoID, 'video_send_friend', "toolbar=no, height=259, width=350, top=200, left=200"); } function pop_comment_video(videoID) { window.open('http://www.creativevideo.co.uk/public/video_comment.php?vID='+videoID, 'video_comment', "toolbar=no, height=400, width=350, top=200, left=200"); } /* HINTER FOR BRIEF DETAILS */ function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldonload(); func(); } } } function prepareInputsForHints() { var inputs = document.getElementsByTagName("input"); for (var i=0; i function set_CSS(el_id, CSS_attr, CSS_val) { eval ("document.getElementById('" + el_id + "').style." + CSS_attr + " = '" + CSS_val + "'") } function set_CSS2(el_id, CSS_attr, CSS_val) { eval ("document.getElementById('" + el_id + "').style." + CSS_attr + " = '" + CSS_val + "'") } var focusColor = '#dddddd'; var blurColor = '#ffffff'; function hotbox() { var form, el, e, f = 0; while (form = document.forms[f++]) { e = 0; while (el = form.elements[e++]) if (el.type == 'text' && typeof el.style != 'undefined') { el.onfocus = new Function('this.style.background = "' + focusColor + '"'); el.onblur = new Function('this.style.background = "' + blurColor + '"'); } } } onload = hotbox; function explain(output) { newwin = window.open('','','top=150,left=150,width=300,height=300,scrollbars=1'); if (!newwin.opener) newwin.opener = self; with (newwin.document) { open(); write(''); write('

'); write('

To obtain an accurate shipping cost, please enter your postal / zip code:

'); write(''); write('
'); close(); } } function confirm_add_promo_to_basket(original_page,productID,product_name,price,quantity,promo_productID) { if(!promo_productID) { var answer = confirm ("Are you sure that you want to add this product to\nyour basket without first choosing a special offer?") if (!answer){ window.location=original_page; var bob = original_page; alert(bob); } else { add_promo_to_basket('productID', 'product_name', 'price', 'quantity', 'promo_productID'); } } else { add_promo_to_basket('productID', 'product_name', 'price', 'quantity', 'promo_productID'); } } ////////////////////////////////////////////////////////// Validate the form for the product notification subscription function check_the_notice(first_name,surname,email) { if(first_name=="") { alert('Please enter your first name.'); } else if(surname=="") { alert('Please enter your surname.'); } else if(email=="") { alert('Please enter your Email address.'); } else if(email.indexOf("@")==-1) { alert('Please enter your Email address.'); } else { document.thisone.submit(); } } /////////////////////////// register form password check function buildWeak() { var $weak=''; $weak=$weak+'a'; $weak=$weak+'b'; $weak=$weak+'c'; $weak=$weak+'d'; $weak=$weak+'e'; $weak=$weak+'f'; $weak=$weak+'g'; $weak=$weak+'h'; $weak=$weak+'i'; $weak=$weak+'j'; $weak=$weak+'k'; $weak=$weak+'l'; $weak=$weak+'m'; $weak=$weak+'n'; $weak=$weak+'o'; $weak=$weak+'p'; $weak=$weak+'q'; $weak=$weak+'r'; $weak=$weak+'s'; $weak=$weak+'t'; $weak=$weak+'u'; $weak=$weak+'v'; $weak=$weak+'w'; $weak=$weak+'x'; $weak=$weak+'y'; $weak=$weak+'z'; return $weak; } function buildMedium() { var $medium=''; $medium=$medium+'0'; $medium=$medium+'1'; $medium=$medium+'2'; $medium=$medium+'3'; $medium=$medium+'4'; $medium=$medium+'5'; $medium=$medium+'6'; $medium=$medium+'7'; $medium=$medium+'8'; $medium=$medium+'9'; $medium=$medium+'A'; $medium=$medium+'B'; $medium=$medium+'C'; $medium=$medium+'D'; $medium=$medium+'E'; $medium=$medium+'F'; $medium=$medium+'G'; $medium=$medium+'H'; $medium=$medium+'I'; $medium=$medium+'J'; $medium=$medium+'K'; $medium=$medium+'L'; $medium=$medium+'M'; $medium=$medium+'N'; $medium=$medium+'O'; $medium=$medium+'P'; $medium=$medium+'Q'; $medium=$medium+'R'; $medium=$medium+'S'; $medium=$medium+'T'; $medium=$medium+'U'; $medium=$medium+'V'; $medium=$medium+'W'; $medium=$medium+'X'; $medium=$medium+'Y'; $medium=$medium+'Z'; return $medium; } function buildStrong() { var $strong=''; $strong=$strong+'!'; $strong=$strong+'!'; $strong=$strong+'#'; $strong=$strong+'$'; $strong=$strong+'%'; $strong=$strong+'&'; $strong=$strong+','; $strong=$strong+'.'; $strong=$strong+':'; $strong=$strong+'-'; $strong=$strong+'­'; $strong=$strong+'­'; $strong=$strong+'–'; $strong=$strong+'—'; $strong=$strong+';'; $strong=$strong+'?'; $strong=$strong+'@'; $strong=$strong+'['; $strong=$strong+']'; $strong=$strong+'^'; $strong=$strong+'ˆ'; $strong=$strong+'_'; $strong=$strong+'{'; $strong=$strong+'|'; $strong=$strong+'}'; $strong=$strong+'~'; return $strong; } function buildIllegal() { var $illegal=''; $illegal=$illegal+'('; $illegal=$illegal+')'; $illegal=$illegal+'*'; $illegal=$illegal+"'"; return $illegal; } function isWhat($ch,$what) { var $isat=-1; if ($what=="illegal") { // Find if this is a strong char var $illegal=buildIllegal(); $isat=$illegal.indexOf($ch); } if ($what=="strong") { // Find if this is a strong char var $strong=buildStrong(); $isat=$strong.indexOf($ch); } if ($what=="medium") { // Find if this is a strong char var $medium=buildMedium(); $isat=$medium.indexOf($ch); } if ($what=="weak") { // Find if this is a strong char var $weak=buildWeak(); $isat=$weak.indexOf($ch); } if ($isat>-1) { return true; } if ($isat==-1) { return false; } } function updateStrength() { $score='weak'; $pw=contactDetails.password.value; var $ch=''; var $isweak=''; var $isstrong=''; var $ismedium=''; var $isillegal=''; var $highest=''; var $divnum=0; $divnum=$pw * 1; if ($divnum==$pw) { $highest='weak'; $score='weak'; } else { //document.print('

slicing: ' + $pw + ' with ' + $pw.length + ' slices.

'); for ($x=0; $x < $pw.length; $x++) { $ch=$pw.charAt($x); $isillegal=isWhat($ch,'illegal'); $isstrong=isWhat($ch,'strong'); $ismedium=isWhat($ch,'medium'); $isweak=isWhat($ch,'weak'); if ($isillegal==true) { $isresult='illegal'; $highest='illegal'; } if ($isstrong==true) { // contains a weak character $isresult='strong'; if ($highest=='illegal') { } else { $highest='strong'; } } if ($ismedium==true) { // contains a weak character $isresult='medium'; if ($highest=='illegal') { } else { if ($highest=='strong') { } else { $highest='medium'; } } } if ($isweak==true) { // contains a weak character $isresult='weak'; if ($highest=='illegal') { } else { if ($highest=='strong') { } else { if ($highest=='medium') { } else { $highest='weak'; } } } } } // for x } // check for div * 1 if ($highest=='illegal') { alert('The character you entered cannot be part of your password. Please enter a new password, without the character: '+$ch+'.'); $score='weak'; contactDetails.password.value=''; // This will reset the field, because illegal characters aren't wanted. document.images["strength"].src="images/10.gif"; } else { $score=$highest; if ($highest=="illegal") { document.images["strength"].alt="Invalid"; document.images["strength"].src="images/5.gif"; } if ($highest=="strong") { document.images["strength"].alt="Secure"; document.images["strength"].src="images/90.gif"; } if ($highest=="medium") { document.images["strength"].alt="Better"; document.images["strength"].src="images/60.gif"; } if ($highest=="weak") { document.images["strength"].alt="Insecure"; document.images["strength"].src="images/25.gif"; } } // If it contains 4 or more characters, allow over weak $len=$pw.length; if ($len<4) { $score='weak'; document.images["strength"].alt="Too short"; document.images["strength"].src="images/10.gif"; } if ($len>10) { if ($score=='weak') { document.images["strength"].src="images/60.gif"; $score='medium'; } } if ($len>30) { if ($score=='medium') { document.images["strength"].src="images/75.gif"; $score='strong'; } } if ($len>40) { if ($score=='strong') { document.images["strength"].src="images/20.gif"; alert('Your password is too long. Please choose a shorter password (8 to 20 characters long).'); $score='illegal'; contactDetails.password.value=''; } } //contactDetails.password_strength.value=$score; } function openQuickMenu(){ document.getElementById("quickMenuContainer").style.bottom="0px"; document.getElementById("quickMenuTab").innerHTML=""; } function closeQuickMenu(){ document.getElementById("quickMenuContainer").style.bottom="-33px"; document.getElementById("quickMenuTab").innerHTML=""; } var pausecontent=new Array() pausecontent[0]='



QUALITY

We don\'t sell inferior \'grey\' imports - You only get the \'real deal\' from us.
' pausecontent[1]='


PRICE

If you\'ve seen an identical product at a lower price elsewhere simply call us and let us match it for you (prior to the point of sale).
' pausecontent[2]='


EXPERIENCE

First class telephone advice, comprehensive in-house demo facilities plus simple and efficient on-line ordering whenever you need it.
' pausecontent[3]='
WARRANTY

Rest-assured that when you buy equipment from us you\'ll get the benefit of a comprehensive warranty package that\'s backed by our manufacturer-approved, in-house broadcast engineering team.
' /*pausecontent[4]='


FINANCE

Spread the cost of your purchase with one of our wide range of personal or commercial finance options.
' */ /*********************************************** * Pausing up-down scroller- Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for this script and 100s more. ***********************************************/ function pausescroller(content, divId, divClass, delay){ this.content=content //message array content this.tickerid=divId //ID of ticker div to display information this.delay=delay //Delay between msg change, in miliseconds. this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is) this.hiddendivpointer=1 //index of message array for hidden div document.write('
'+content[0]+'
') var scrollerinstance=this if (window.addEventListener) //run onload in DOM2 browsers window.addEventListener("load", function(){scrollerinstance.initialize()}, false) else if (window.attachEvent) //run onload in IE5.5+ window.attachEvent("onload", function(){scrollerinstance.initialize()}) else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec setTimeout(function(){scrollerinstance.initialize()}, 500) } // ------------------------------------------------------------------- // initialize()- Initialize scroller method. // -Get div objects, set initial positions, start up down animation // ------------------------------------------------------------------- pausescroller.prototype.initialize=function(){ this.tickerdiv=document.getElementById(this.tickerid) this.visiblediv=document.getElementById(this.tickerid+"1") this.hiddendiv=document.getElementById(this.tickerid+"2") this.visibledivtop=parseInt(pausescroller.getCSSpadding(this.tickerdiv)) //set width of inner DIVs to outer DIV's width minus padding (padding assumed to be top padding x 2) this.visiblediv.style.width=this.hiddendiv.style.width=this.tickerdiv.offsetWidth-(this.visibledivtop*2)+"px" this.getinline(this.visiblediv, this.hiddendiv) this.hiddendiv.style.visibility="visible" var scrollerinstance=this document.getElementById(this.tickerid).onmouseover=function(){scrollerinstance.mouseoverBol=1} document.getElementById(this.tickerid).onmouseout=function(){scrollerinstance.mouseoverBol=0} if (window.attachEvent) //Clean up loose references in IE window.attachEvent("onunload", function(){scrollerinstance.tickerdiv.onmouseover=scrollerinstance.tickerdiv.onmouseout=null}) setTimeout(function(){scrollerinstance.animateup()}, this.delay) } // ------------------------------------------------------------------- // animateup()- Move the two inner divs of the scroller up and in sync // ------------------------------------------------------------------- pausescroller.prototype.animateup=function(){ var scrollerinstance=this if (parseInt(this.hiddendiv.style.top)>(this.visibledivtop+5)){ this.visiblediv.style.top=parseInt(this.visiblediv.style.top)-5+"px" this.hiddendiv.style.top=parseInt(this.hiddendiv.style.top)-5+"px" setTimeout(function(){scrollerinstance.animateup()}, 50) } else{ this.getinline(this.hiddendiv, this.visiblediv) this.swapdivs() setTimeout(function(){scrollerinstance.setmessage()}, this.delay) } } // ------------------------------------------------------------------- // swapdivs()- Swap between which is the visible and which is the hidden div // ------------------------------------------------------------------- pausescroller.prototype.swapdivs=function(){ var tempcontainer=this.visiblediv this.visiblediv=this.hiddendiv this.hiddendiv=tempcontainer } pausescroller.prototype.getinline=function(div1, div2){ div1.style.top=this.visibledivtop+"px" div2.style.top=Math.max(div1.parentNode.offsetHeight, div1.offsetHeight)+"px" } // ------------------------------------------------------------------- // setmessage()- Populate the hidden div with the next message before it's visible // ------------------------------------------------------------------- pausescroller.prototype.setmessage=function(){ var scrollerinstance=this if (this.mouseoverBol==1) //if mouse is currently over scoller, do nothing (pause it) setTimeout(function(){scrollerinstance.setmessage()}, 100) else{ var i=this.hiddendivpointer var ceiling=this.content.length this.hiddendivpointer=(i+1>ceiling-1)? 0 : i+1 this.hiddendiv.innerHTML=this.content[this.hiddendivpointer] this.animateup() } } pausescroller.getCSSpadding=function(tickerobj){ //get CSS padding value, if any if (tickerobj.currentStyle) return tickerobj.currentStyle["paddingTop"] else if (window.getComputedStyle) //if DOM2 return window.getComputedStyle(tickerobj, "").getPropertyValue("padding-top") else return 0 } /* var micChat = (("https:" == document.location.protocol) ? "https://www." : "http://www."); document.write(unescape("%3Cscript src='" + micChat + "cvp.com/chat/monitor.php' type='text/javascript'%3E%3C/script%3E")); */ function say_happy() { window.status ="Merry Christmas and a Happy New Year from everyone at CVP Mitcorp."; } function do_effall(){ } function search_checker(){ var search_value = document.searchform.q.value; if(search_value=="Product search..."){ document.searchform.q.value=''; } else { // dont clear the search box do_effall(); } } function isdefined(variable){ return (typeof(window[variable]) == "undefined") ? false : true; } var loading_content = "Loading..." var reqlivesearch = createXMLHttpRequest(); function search_live(query){ if(query != ""){ document.getElementById('livesearch').style.display = 'block'; reqlivesearch.open('get', 'cvp_search_suggest.php?q=' + query); reqlivesearch.onreadystatechange = handleResponselivesearch; reqlivesearch.send(null); } else { document.getElementById('livesearch').style.display = 'none'; } } function handleResponselivesearch(){ if (reqlivesearch.readyState == 4) { var response = reqlivesearch.responseText; //alert(response); var update = new Array(); if (response.indexOf('||' != -1)) { update = response.split('||'); contentreturned = update[0]; variant = update[1]; document.getElementById('livesearch').innerHTML = contentreturned; } } }