function getCheckedValuesByName(checkboxname) { var e=document.getElementsByName(checkboxname); var p=""; for (var j=0;j 0) url=url.substring(0,url.indexOf('&')+1); var specname=url.substring(url.lastIndexOf('/')+1); while (i=specname.lastIndexOf('.')) { e=specname.substring(i); if (e != ".tar" && e != ".gz" && e != ".zip" && e != ".bz2" && e != ".xz" && e != ".tgz" && e != ".zip" && e != ".src" && e != ".orig") break; specname=specname.substring(0,i); } if (specname.lastIndexOf('-') > 0) { version=specname.substring(specname.lastIndexOf('-')+1); specname=specname.substring(0,specname.lastIndexOf('-')); } document.getElementById("speccreateurl").value=url; if (url.search("cpan.org") >= 0) { specname="perl-"+specname; } else { specname=specname.toLowerCase(); } if (url.search("git://") >= 0) { document.getElementById("speccreategitbranch").disabled=false; } else { document.getElementById("speccreategitbranch").disabled=true; } document.getElementById("speccreatename").value=specname; document.getElementById("speccreateversion").value=version; if (url) { document.getElementById("speccreatename").disabled=false; document.getElementById("speccreateversion").disabled=false; document.getElementById("speccreatetype").disabled=false; document.getElementById("speccreatebutton").disabled=false; } else { document.getElementById("speccreatename").disabled=true; document.getElementById("speccreateversion").disabled=true; document.getElementById("speccreatetype").disabled=true; document.getElementById("speccreatebutton").disabled=true; } if (specname.search("perl-") >= 0) { for (var j=0;j= 0) { for (var j=0;j