function $(id){ return document.getElementById(id); } function showPicture(b,id){ var scr=window.open(b+'popups/pics.html?id='+id+'&pic=0','fullpic','width=850, height=800, resizable=1, scrollbars=yes'); scr.moveTo(0,0); scr.focus(); } function show3D(b,id,w,h){ var scr1=null; var params='scrollbars=no,status=no,innerWidth='+w+',width='+w+',height='+h; var scr1=window.open(b+'popups/3dview.html?id='+id,'trideewin'+id,params); scr1.moveTo(0,0); if(scr1.innerHeight){ scr1.resizeTo(w+(scr1.outerWidth-scr1.innerWidth),h+(scr1.outerHeight-scr1.innerHeight)); } scr1.focus(); } /*var trideeshown=0; function show3D(b,id,w,h){ var tmpdiv=$('tridviewdiv'); if(trideeshown==0){ tmpdiv.style.width=w+11+'px'; tmpdiv.style.height=h+43+'px'; document.trideeform.submit(); trideeshown=1; } tmpdiv.style.display=''; var group var coordinates = ToolMan.coordinates() var drag = ToolMan.drag() var boxHandle = tmpdiv group = drag.createSimpleGroup(boxHandle, $('cDelay_move')) }*/ function showPicfeature(b,id){ scr=window.open(b+'popups/picsfeature.html?id='+id+'&pic=0','fullpic','width=850, height=400, resizable=1'); //scr.moveTo(screen.width/2-250,screen.height/2-200); scr.moveTo(0,0); scr.focus(); } function send_to_friend(url){ scr=window.open(url,'friend','width=500, height=450, resizable=1'); scr.moveTo(screen.width/2-250,screen.height/2-275); scr.focus(); } function compare(url){ get=''; pre='?'; if (document.forms['cmp'].elements['prods[]'].length>1){ for(i=0; i1){ for(i=0; i= 4){ win.window.focus(); } } function SetCookie(cookieName,cookieValue,nDays) { var today = new Date(); var expire = new Date(); if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString()+";path=/"; } function getCookie(name){ var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if(begin == -1){ begin = dc.indexOf(prefix); if(begin != 0) return null; } else begin += 2; var end = document.cookie.indexOf(";", begin); if(end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function change_country(x,y){ $(x).style.display = 'block'; $(y).style.display = 'none'; } function change_same(x,y,z){ $(x).style.display = 'block'; $(y).style.display = 'none'; $(z).style.display = 'block'; } function show_order(j,p){ for(var i=0;i1) ajaxMsg(1, 'The products have been added to your favourite products list.'); else ajaxMsg(1, 'The product has been added to your favourite products list.'); setTimeout('ajaxMsg(0, "")', 3000); for(i=0;i