
function buyAlLCards(cards) {
	cards = document.getElementById("nMt5").value;
	window.location='http://www.coolstuffinc.com/main_deckBuilder.php?sList='+cards+'&mn1=1';
}

title = "<a href=\"http://mtgurl.com/nMt5\">UW Draft 4-3-2-2</a>";
author = "ThisSatori";
output = '<style type="text/css">.mtgurl-deck { background: #fff; }</style><div id="button-placeholder-deck"><form method="POST" action="/decksend.php" name="form-nMt5"><input type="hidden" id="deck" name="deck" value="true"><input type="hidden" id="mn1" name="mn1" value="1"><table cellpadding="0" cellspacing="0"><tr><td colspan="3" class="alt">Creatures:</td></tr><tr><td><input type="checkbox" name="spot_1" value="3_Welkin_Tern" /></td><td>3</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Welkin_Tern.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Welkin Tern">Welkin Tern</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_2" value="2_Kor_Skyfisher" /></td><td class="alt">2</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Kor_Skyfisher.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Kor Skyfisher">Kor Skyfisher</a> </td></tr><tr><td><input type="checkbox" name="spot_3" value="2_Sky_Ruin_Drake" /></td><td>2</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Sky_Ruin_Drake.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Sky Ruin Drake">Sky Ruin Drake</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_4" value="1_Kor_Aeronaut" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Kor_Aeronaut.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Kor Aeronaut">Kor Aeronaut</a> </td></tr><tr><td><input type="checkbox" name="spot_5" value="1_Kor_Hookmaster" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Kor_Hookmaster.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Kor Hookmaster">Kor Hookmaster</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_6" value="1_Kor_Sanctifiers" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Kor_Sanctifiers.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Kor Sanctifiers">Kor Sanctifiers</a> </td></tr><tr><td><input type="checkbox" name="spot_7" value="1_Reckless_Scholar" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Reckless_Scholar.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Reckless Scholar">Reckless Scholar</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_8" value="1_Umara_Raptor" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Umara_Raptor.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Umara Raptor">Umara Raptor</a> </td></tr><tr><td><input type="checkbox" name="spot_9" value="1_Pillarfield_Ox" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Pillarfield_Ox.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Pillarfield Ox">Pillarfield Ox</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_10" value="1_Sphinx_of_Lost_Truths" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Sphinx_of_Lost_Truths.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Sphinx of Lost Truths">Sphinx of Lost Truths</a> </td></tr><tr><td><input type="checkbox" name="spot_11" value="1_Sphinx_of_Jwar_Isle" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Sphinx_of_Jwar_Isle.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Sphinx of Jwar Isle">Sphinx of Jwar Isle</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_12" value="1_World_Queller" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/World_Queller.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=World Queller">World Queller</a> </td></tr><tr><td colspan="3">Spells:</td></tr><tr><td class="alt"><input type="checkbox" name="spot_14" value="2_Into_the_Roil" /></td><td class="alt">2</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Into_the_Roil.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Into the Roil">Into the Roil</a> </td></tr><tr><td><input type="checkbox" name="spot_15" value="1_Explorer\'s_Scope" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Explorer\'s_Scope.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Explorer\'s Scope">Explorer\'s Scope</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_16" value="1_Cancel" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Cancel.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Cancel">Cancel</a> </td></tr><tr><td><input type="checkbox" name="spot_17" value="1_Summoner\'s_Bane" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Summoner\'s_Bane.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Summoner\'s Bane">Summoner\'s Bane</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_18" value="1_Pitfall_Trap" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Pitfall_Trap.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Pitfall Trap">Pitfall Trap</a> </td></tr><tr><td><input type="checkbox" name="spot_19" value="1_Ior_Ruin_Expedition" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Ior_Ruin_Expedition.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Ior Ruin Expedition">Ior Ruin Expedition</a> </td></tr><tr><td colspan="3" class="alt">Lands:</td></tr><tr><td><input type="checkbox" name="spot_21" value="9_Island" /></td><td>9</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Island.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Island">Island</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_22" value="5_Plains" /></td><td class="alt">5</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Plains.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Plains">Plains</a> </td></tr><tr><td><input type="checkbox" name="spot_23" value="1_Arid_Mesa" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Arid_Mesa.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Arid Mesa">Arid Mesa</a> </td></tr><tr><td class="alt"><input type="checkbox" name="spot_24" value="1_Kabira_Crossroads" /></td><td class="alt">1</td><td class="alt"><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Kabira_Crossroads.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Kabira Crossroads">Kabira Crossroads</a> </td></tr><tr><td><input type="checkbox" name="spot_25" value="1_Sejiri_Refuge" /></td><td>1</td><td><a rel="nofollow" target="_blank" class="magiccard" cardimg="http://www.wizards.com/global/images/magic/general/Sejiri_Refuge.jpg" href="http://www.mananation.com/magic-the-gathering/redirect.php?card=Sejiri Refuge">Sejiri Refuge</a> </td></tr><tr><td colspan="3"><div align="center"><input type="hidden" name="nMt5" id="nMt5" value="|3 Welkin Tern|2 Kor Skyfisher|2 Sky Ruin Drake|1 Kor Aeronaut|1 Kor Hookmaster|1 Kor Sanctifiers|1 Reckless Scholar|1 Umara Raptor|1 Pillarfield Ox|1 Sphinx of Lost Truths|1 Sphinx of Jwar Isle|1 World Queller| |2 Into the Roil|1 Explorer\'s Scope|1 Cancel|1 Summoner\'s Bane|1 Pitfall Trap|1 Ior Ruin Expedition| |9 Island|5 Plains|1 Arid Mesa|1 Kabira Crossroads|1 Sejiri Refuge"><input type="button" text="Get All" onclick="buyAlLCards(\'nMt5\')" value="Get ALL"> <input type="submit" text="Get Checked" value="Get Checked"></div></td></tr></table></form></div>';

document.write('<style type="text/css">.mtgurl-deck{width:250px;overflow-x:hidden;border:1px solid #000;padding:3px;}.mtgurl-deck table{width:100%;}.mtgurl-deck h3{margin-top:3px;margin-bottom:3px;}.mtgurl-deck h4{margin-top:3px;margin-bottom:3px;}.mtgurl-deck .alt{background:#ddd;}.mtgurl-deck td{color:#333;padding:0 2px;margin:0;}.mtgurl-deck a:link,.mtgurl-deck a:visited,.mtgurl-deck a:hover{color:#040;}.mtgurl-deck .badcard{color:#f00;}#JT_close_left,#JT_close_right{font-size:1.1em;}#JT_copy p,#JT_copy ul{font-size:1.1em;}#JT_arrow{position:absolute;background-repeat:no-repeat;background-position:left top;z-index:101;}.JT_arrow_top{height:23px;width:10px;top:-3px;}.JT_arrow_bottom{height:23px;width:10px;top:266px;}.JT_arrow_left{background-image:url(../images/arrow_left.gif);left:-11px;}.JT_arrow_right{background-image:url(../images/arrow_right.gif);}#JT{position:absolute;z-index:100;border:2px solid #000;background:transparent;width:200px;height:285px;background-image:url(../images/missing.jpg);background-repeat:no-repeat;background-position:left top;}#JT_copy{padding:0;color:#333;}#JT_copy p{margin:3px 0;}#JT_copy img{padding:0;}.jTip{cursor:hand;white-space:nowrap;}.mtgh{border:0 solid;list-style:none;margin:20px 0;padding:0;text-align:left;}.mtgh .header_options{float:right;margin-right:3px;color:#000;text-decoration:none;}.mtgh .header_options a{font-size:11px;color:#000;text-decoration:none;}.mtgh .header{margin:0;padding:3px 0;}.mtgh .header h4{font-weight:bold;font-size:150%;text-align:left;padding:0;margin:0;}.mtgh .header h4 hr{padding:0;margin:0;}.mtgh .header a{text-align:right;font-weight:normal;font-size:90%;padding:0;margin:0;}.mtgh .tab{background:#CCC;}.mtgh .tab ul{width:100%;margin:0;padding:0;list-style:none;}.mtgh .tab li{float:left;margin:0;padding:0;text-align:center;overflow:hidden;}.mtgh .tab li a{display:block;color:#000;margin:0;padding:0;text-decoration:none;width:100%%;height:100%;}.mtgh .tab li a:hover{text-decoration:underline;}.mtgh .content{margin:3px 3px 0 3px;padding:0;border:0 none;}.mtgh .content td{vertical-align:top;margin:0;padding:0;}.mtgh .content ul{list-style:none;margin:0;padding:0;}.mtgh .content li{line-height:110%;list-style:none;margin:0;padding:0;}.mtgh .content a{text-decoration:none;}.mtgh .card_box{margin:0!important;padding:0!important;width:200px!important;height:285px;}.mtgh .card_box img{margin:0;padding:0;}.mtgh .card_box table{border-spacing:0;}.mtgh .card_box table td{padding:0;margin:0;}.mtgh .display_preview{vertical-align:center;width:200px;height:285px;padding:0;margin:0;background-image:url(../images/missing.jpg);background-repeat:no-repeat;background-position:left top;background-color:#000;}.mtgh .thumbnail{margin:0;padding:0;}img.cardpick_border{border:2px solid red;}a.cardpick_border{color:red;font-weight:bold;}</style>');

document.write("<div class='mtgurl-deck'><h3>"+title+"</h3>");
document.write("<h4>"+author+"</h4>");
document.write(output+"<div align=\"center\"><small>Provided by <a href=\"http://mtgurl.com\">mtgurl.com</a></small></div></div>");
