function eventkey(e){ e=(e)?e:window.event;var c=(e.which)?e.which:e.keyCode;return c } function valbid(){ bid=dt.bid.value; if(!getcookie("u")){ alert('You are not logged into BlogDrive.\nPlease login before proceeding to installation!');return false; } else if(bid>499&&bid<600000){ setcookie("bid",bid,30);return true; } else { alert('Please reinsert your Blog ID number (bid).'); dt.bid.select();dt.bid.focus();return false; } } function minst() { loaded=0; if(valbid()){ if(confirm(dsclm+'\n\nYou will lose any previous changes you made to your current template.\n\nAre you sure you want to install this template?')) { dt.doc.value=dt.doc.defaultValue.replace("", inad+"").replace("<\/blog>", "<\/blog>"+inlk).replace(addlk1, addlk2+addlk1).replace("[rss]", rssatom+"[rss]").replace("[calendar]", "[calendar]
"+rssreader).replace("[body]", "[body]\n\n" +socble); _preview(instwin,"","260","216","no","no"); dt.submit(); loaded=1;}} return false;} function cinst(){ if(comments==1){ dco.bid.value=bid; dco.submit(); loaded=2; }else{tinst()} } function tinst(){ if(tagboard==1){ dtb.bid.value=bid; dtb.submit(); loaded=3; }else{finst()} } function finst(){ _preview("", "http://www.blogdrive.com/manage/blog_layout?bid=" +bid) loaded=0; } function frameload() { if(loaded==3)finst(); if(loaded==2)tinst(); if(loaded==1)cinst(); } function valminst() {} function enterKey(evt){ evt=(evt)?evt:event; charCode=(evt.which)?evt.which:evt.keyCode; if(charCode==13)minst(); return charCode } function by(wi,tx,ww){ return (wi)?tx+' by '+wi+'
':''; } //Javascript Variable var loaded=0; var bid=getcookie("bid");bid=(bid==null)?'':bid; dt=document.template; dco=document.comments; dtb=document.tagboard; if(!pid){ pid=window.thumbnail.substring(9,12); while(pid.indexOf("0")==0){pid=pid.substring(1);} } //Insert into templates inlk='Don\'t buy Vista Security\n'; inad='\n
\n\n'; ads='\n\n\n\n
'; archive='/archive/cm-6_cy-2004_m-6_d-4_y-2004_o-'; rssreader='\n\n'+'\n'+'
\n'+'\n'+'\n' +'\n'; socble= '\n\n\n\n\n\n'; rssatom='
RSS Atom
'; addlk1=''; addlk2=''+ window.title +'\n

\n'; baseurl=''; dsclm="Disclaimer: BlogDrive.com does not support the install feature we offer,\nand will not provide Customer Support in the event of problems with\neither the feature or the template."; instwin='
Installing... Please Wait

This may take a while depending on your connection speed.

'; //Entry format et= 'Click to preview template
'; et+= 'Insert your Blog ID number (what is bid?) here:

  '; et+= '   '; et+= (window.comments==1)?'
Comments Page':''; et+= (window.tagboard==1)?'
Tag Board CSS':''; et+= '

\* if you can\'t preview your blog, please disable your popup blocker.

'; et+= (window.imagename[0])?'Upload these images to your filemanager\'s "images" directory:
':'
No images
'; for(i=0;i'+window.imagename[i]+''; } et+= '
'; et+= by(window.designer,'Designed',window.designerurl); et+= by(window.editor,'Edited',window.editorurl); et+= by(window.submitted,'Submitted',window.submiturl); et+= by(window.graphicsby,'Graphics',window.graphicsurl); et+= '
Description: '+window.description+'

'+window.others +'

'; et+= dsclm+'

'; et+= '
Is this template or image copyrighted to you?
Report Stolen
'; document.write(et); dt.bid.value=bid;dt.bid.focus();//