function fast_buy(id, lang) { FastBuy=window.open("inc/fast_buy.inc.php?modelId="+id+"&lang_id="+lang, "FastBuy", "scrollbars=1,resizable=1,location=0 width=500, height=550"); if (window.focus) {FastBuy.focus()} return false; } function to_basket_main(x) { document.toBasketForm.action=document.location.href; document.toBasketForm.addToBasketModelId.value=x; document.toBasketForm.submit(); } function auction_it(x) { document.toAuctionForm.addToAuctionModelId.value=x; document.toAuctionForm.submit(); } function to_basket_main_search(x, s, l, p) { document.toBasketForm.action='?lang_id='+l+'&page_id='+p+'&search_phrase='+s; document.toBasketForm.addToBasketModelId.value=x; document.toBasketForm.submit(); } function model_window(id, lang) { ModelWin=window.open("inc/info.model.inc.php?modelId="+id+"&lang_id="+lang, "ModelWin", "scrollbars=1,resizable=1,location=0 width=500, height=550"); if (window.focus) {ModelWin.focus()} return false; } function auction_window(id, lang) { ModelWinn=window.open("inc/info.auction.inc.php?modelId="+id+"&lang_id="+lang, "ModelWinn", "scrollbars=1,resizable=1,location=0 width=500, height=550"); if (window.focus) {ModelWinn.focus()} return false; } function gallery_window(id, lang) { GalleryWin=window.open("inc/gallery.manufacturer.inc.php?manufacturerId="+id+"&lang_id="+lang, "GalleryWin", "scrollbars=1,resizable=1,location=0 width=800, height=600"); } function upclock(){ var dte = new Date(); var hrs = dte.getHours(); var min = dte.getMinutes(); var sec = dte.getSeconds(); var col = ":"; var spc = " "; var apm; if (12 < hrs) { apm="PM"; //hrs-=12; } else { apm="AM"; } if (hrs == 0) hrs=12; if (min<=9) min="0"+min; if (sec<=9) sec="0"+sec; if (navigator.appVersion.indexOf("MSIE") != -1){ clock.innerHTML = hrs+col+min+col+sec+spc; } } function blinkIt(id, col1, col2) { if (i = document.getElementById(id)) { i.style.color = i.style.color == col1 ? col2 : col1; setTimeout("blinkIt('"+id+"', '"+col1+"', '"+col2+"');", 400); } } setTimeout("blinkIt('blink_text_new', '#ff0000', '#ff7f00');", 400);