diff --git a/parts/static/common.js b/parts/static/common.js
new file mode 100644
index 0000000..00979a2
--- /dev/null
+++ b/parts/static/common.js
@@ -0,0 +1,18 @@
+var rootURL = '/parts/'
+
+function overlay_in() {
+ $('.shadow').css({'display' : 'block'});
+ $('.overlay').css({'display' : 'block'});
+ $('.shadow').animate({'opacity' : 0.7});
+ $('.overlay').animate({'opacity' : 1.0, 'top' : '5%'});
+}
+
+function overlay_out() {
+ $('.shadow').animate({'opacity' : 0.0}, function () {
+ $('.overlay').css({'display' : 'none'});
+ });
+ $('.overlay').animate({'opacity' : 0.0, 'top' : '0'}, function () {
+ $('.shadow').css({'display' : 'none'});
+ });
+ end_edit();
+}
\ No newline at end of file
diff --git a/parts/static/script.js b/parts/static/script.js
index 5268c98..6fe7f85 100644
--- a/parts/static/script.js
+++ b/parts/static/script.js
@@ -1,22 +1,3 @@
-var rootURL = '/parts/'
-
-function overlay_in() {
- $('.shadow').css({'display' : 'block'});
- $('.overlay').css({'display' : 'block'});
- $('.shadow').animate({'opacity' : 0.7});
- $('.overlay').animate({'opacity' : 1.0, 'top' : '5%'});
-}
-
-function overlay_out() {
- $('.shadow').animate({'opacity' : 0.0}, function () {
- $('.overlay').css({'display' : 'none'});
- });
- $('.overlay').animate({'opacity' : 0.0, 'top' : '0'}, function () {
- $('.shadow').css({'display' : 'none'});
- });
- end_edit();
-}
-
function init_edit(partID) {
$('table#details tr#location td p').hide();
$('table#details tr#location td select').show();
diff --git a/parts/templates/partsearch.html b/parts/templates/partsearch.html
index ae6ba1a..b275ef2 100644
--- a/parts/templates/partsearch.html
+++ b/parts/templates/partsearch.html
@@ -10,6 +10,7 @@
+