266,267d265 < var mysubject='', myurl=''; < var lastemail='', lastsms=''; 297,305c295 < if (inu.indexOf('HttP') == 0) { < mysubject='Steps'; < if (inu.indexOf('#') != -1) { < mysubject=inu.split('#')[eval(-1 + inu.split('#').length)].replace(/^steps\_/g,'').replace(/\_/g,' ').replace(/\-/g,' '); < if (mysubject.trim() == '') { mysubject='Steps'; } < } < myurl=inu.replace('HttP','http').replace(/\ /g,'%20'); < emailit(''); < } else if (inu.indexOf('HTTP') == 0) { --- > if (inu.indexOf('HTTP') == 0) { 315c305 < woo=window.open(inu.replace(/\ /g,'%20'), '_blank', 'top=50,left=50,width=800,height=800'); --- > woo=window.open(inu, '_blank', 'top=50,left=50,width=800,height=800'); 330c320 < lssel=lssel.replace('', '' + '' + '' + ''); --- > lssel=lssel.replace('', '' + '' + ''); 375,382d364 < } else if (myurl != '' && mysubject != '') { < em=prompt('Please enter Email address or SMS number to share ' + mysubject + ' with.' + (' ' + cookb).substring(0,1) + ' Hash separate an email subject that is not as suggested.', (lastemail != '' ? lastemail : lastsms)); < if (em != null) { < if (em.indexOf('#') != -1) { < mysubject=em.substring(eval(1 + eval('' + em.indexOf('#')))); < em=em.split('#')[0].trim(); < } < } 384c366 < em=prompt('Please enter Email address to share with. ' + cookb, lastemail); --- > em=prompt('Please enter Email address to share with. ' + cookb, ''); 398c380 < setAVal('steps_' + cook.replace(/\ /g,'-'), \"" . str_replace('+',' ',$hashurl) . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); --- > setAVal('steps_' + cook.replace(/\ /g,'-'), \"" . $hashurl . $hashurld . "\" + anyhashes); 404,411c386 < if (myurl != '' && mysubject != '') { < em+='?subject=' + encodeURIComponent(mysubject) + '&body=' + encodeURIComponent(myurl); < myurl=''; < mysubject=''; < } else { < //console.log(\"" . $hashurl . $hashurld . "\" + anyhashes + ' anyhashes=' + anyhashes + ' and hashurld=' + \"" . $hashurld . "\"); < em+='?subject=Steps&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); < } --- > em+='?subject=Steps&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\" + anyhashes); 413d387 < lastemail=em.trim().split('?')[0].split('&')[0]; 416,422c390 < if (myurl != '' && mysubject != '') { < em+='&body=' + encodeURIComponent(myurl); < myurl=''; < mysubject=''; < } else { < em+='&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); < } --- > em+='&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\" + anyhashes); 424d391 < lastsms=em.trim().split('?')[0].split('&')[0]; 428,429d394 < myurl=''; < mysubject=''; 444c409 < em=prompt('Please enter SMS number to share with. ' + cookb, lastsms); --- > em=prompt('Please enter SMS number to share with. ' + cookb, ''); 458c423 < setAVal('steps_' + cook.replace(/\ /g,'-'), \"" . $hashurl . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); --- > setAVal('steps_' + cook.replace(/\ /g,'-'), \"" . $hashurl . $hashurld . "\" + anyhashes); 464c429 < em+='&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); --- > em+='&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\" + anyhashes); 466d430 < lastsms=em.trim().split('?')[0].split('&')[0]; 469c433 < em+='?subject=Steps&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\".replace(/\ /g,'%20') + anyhashes.replace(/\ /g,'%20')); --- > em+='?subject=Steps&body=' + encodeURIComponent(\"" . $hashurl . $hashurld . "\" + anyhashes); 471d434 < lastemail=em.trim().split('?')[0].split('&')[0]; 507c470 < if (thisi == tdc || 1 == 1) { --- > if (thisi == tdc) { 520,522c483,484 < if (document.getElementById('tdi' + eval(-1 + tdc))) { < if (document.getElementById('tdi' + eval(-1 + tdc)).value == '') { < document.getElementById('tdi' + eval(-1 + tdc)).focus(); --- > if ( document.getElementById('tdi' + eval(1 + tdc))) { > document.getElementById('tdi' + eval(1 + tdc)).focus(); 526,527c488 < } else if (document.getElementById('tdi' + eval(0 + tdc))) { < document.getElementById('tdi' + eval(0 + tdc)).focus(); --- > }, 3000); 529,532c490,491 < document.getElementById('tdi' + eval(-1 + tdc)).focus(); < } < console.log('There2'); < }, 1000); --- > if ( document.getElementById('tdi' + eval(1 + tdc))) { > document.getElementById('tdi' + eval(1 + tdc)).focus(); 534d492 < if (document.getElementById('tdi' + eval(0 + tdc))) { 536,537d493 < } else { < document.getElementById('tdi' + eval(-1 + tdc)).focus(); 539d494 < console.log('TherE2'); 587,592d541 < if (document.getElementById('tdi' + eval(0 + aone))) { < if (document.getElementById('tdi' + eval(0 + aone)).value == '') { < document.getElementById('tdi' + eval(0 + aone)).focus(); < } < } < console.log('here1'); 603,608d551 < if (document.getElementById('tdi' + eval(0 + aone))) { < if (document.getElementById('tdi' + eval(0 + aone)).value == '') { < document.getElementById('tdi' + eval(0 + aone)).focus(); < } < } < console.log('Here1'); 618d560 < //alert('herRe1'); 620,625d561 < if (document.getElementById('tdi' + eval(0 + aone))) { < if (document.getElementById('tdi' + eval(0 + aone)).value == '') { < document.getElementById('tdi' + eval(0 + aone)).focus(); < } < } < console.log('HeRe1'); 660c596 < 1) { document.getElementById('tdi' + eval(-1 + aone)).focus(); console.log('hErE1 ' + aone); } else { document.getElementById('tdi' + aone).focus(); console.log('HErE1'); } } cookieAVal('steps_', true); \"> --- >