function getQueryVariable() { var query = window.location.search.substring(1); var vars = query.split("&"); var arr = new Array(); for (var i=0;i