var valid=true;if(!document.getElementById('manager_script_tag')) { oScript = document.createElement('script'); oScript.id = 'manager_script_tag'; oScript.setAttribute('type', 'text/javascript'); oScript.setAttribute('src', 'http://www.womensuitsmanager.com/prototype.js'); document.getElementsByTagName('HEAD')[0].appendChild(oScript); } function OnSubmitValidation (form_name) { if ((document.forms[form_name].Color.value == '') || (document.forms[form_name].Size.value == '')) { ShowPopupMessage ('Please select both Color and Size'); return false; } } var requesting=false; function ShowPopupMessage(message) { if(document.orderform.Color.selectedIndex==0 || document.orderform.Size.selectedIndex==0) { var ScrollTop = document.body.scrollTop; if (ScrollTop == 0) { if (window.pageYOffset) ScrollTop = window.pageYOffset; else ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0; } if(!$('centering')) { var c=document.createElement('DIV'); c.id='centering'; c.style.position='absolute'; c.style.top='50%'; c.style.left='50%'; document.body.appendChild(c); } var t=($('centering').offsetHeight / -2); var l=($('centering').offsetWidth / -2); t=t+ScrollTop; win=document.getElementById('NotificationFormWin'); if(!win) { var win=document.createElement('DIV'); win.id = 'NotificationFormWin'; win.style.overflow=''; win.style.position='relative'; win.style.width='400px'; win.style.width='100px'; win.style.border='1px solid #000'; win.style.top=t+'px'; win.style.left=l+'px'; win.style.padding='5px'; win.style.background='#fff'; win.innerHTML = "
close[x]
"+message; $('centering').appendChild(win) } else { win.style.display=''; win.style.width='400px'; win.style.width='100px'; win.style.overflow='' win.style.padding='5px'; win.innerHTML = "
close[x]
"+message; win.style.top=t+'px'; } return false; } return true; } function closeNotificationForm() { if(document.getElementById('NotificationFormWin')) document.getElementById('NotificationFormWin').style.display='none'; } function showNotificationForm(stocklevel,productId,color,size) { var ScrollTop = document.body.scrollTop; if (ScrollTop == 0) { if (window.pageYOffset) ScrollTop = window.pageYOffset; else ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0; } if(!$('centering')) { var c=document.createElement('DIV'); c.id='centering'; c.style.position='absolute'; c.style.top='50%'; c.style.left='50%'; document.body.appendChild(c); } var t=($('centering').offsetHeight / -2); var l=($('centering').offsetWidth / -2); t=t+ScrollTop; if(stocklevel==0) { win=document.getElementById('NotificationFormWin'); var formHTML="
"; formHTML+="Sorry, the item you are currently looking for is sold out.
Please order one of our suggested alternates.
You can also give us your email address to be notified in the rare chance that this item is back in stock. Thank you!
"; formHTML+="
Email :

"; formHTML+="0){$('NotificationFormWin').hide()}else{return false;}\" />
"; formHTML+="