
function processFindIt (myForm) {
	mt = myForm.qry.value
	if ((mt.length < 1) || (mt.substring(0,6) == "******") ) {
 
	 popupWin = window.open('http://www.ivillage.com/search/alert.html','remote','width=290,height=190,left=200,top=200');
     return false;
    } 
 	 
	destination = myForm.alias.options[myForm.alias.selectedIndex].value
	if (destination == 'shopping') {
		myForm.action="http://amos.catalogcity.com/cc.class/cc";
	   	myForm.qry.name="st";
		myForm.ccsyn.value = "157";
		myForm.main.value = "ccn_search";
		myForm.sy.value = "products";
	} else if (destination != 'shopping') {
		myForm.action="http://findit.ivillage.com/find";
	   	myForm.qry.name="qry";
	} 
	
	return true;
}


		function s2fSendForm (box) {
			if (noS2Fentry(box)) {
				if (!window.S2F_altURL) {
             s2fURL = window.document.location.href;
         } else {
             s2fURL = S2F_altURL;

				}
				var w = 470, h = 600, cw = w/2, ch = h/3;

         if (window.screen) {
          cw = Math.floor((screen.availWidth-w)/2);
          ch = Math.floor((screen.availHeight-h)/3);
                }
var mywin = window.open ('http://s.ivillage.com/s2f/send/astrology?redirect=http://www.ivillage.com/s2f/form/0,,10,00.html?s2fURL=' + escape(escape(s2fURL))+'&fromEmail='+box.fromEmail.value+'&toEmail1='+box.toEmail1.value+'&s2fTitle='+escape(window.document.title), 's2f', 'width=470,height=600,top='+ch+',left='+cw+',scrollbars=yes')
			} 
		}
		
		function noS2Fentry(box) {
			
     fe = box.toEmail1.value;
     me = box.fromEmail.value;
     if (me == "" || fe == "") {
         alert("Please enter both your name and your friend's name.");
				return false;
			} else { 
			   return true;
			}
		}
			


function processFindIt (myForm) {
	mt = myForm.qry.value
	if ((mt.length < 1) || (mt.substring(0,6) == "******") ) {
 
	 popupWin = window.open('http://www.ivillage.com/search/alert.html','remote','width=290,height=190,left=200,top=200');
     return false;
    } 
 	 
	destination = myForm.alias.options[myForm.alias.selectedIndex].value
	if (destination == 'shopping') {
		myForm.action="http://amos.catalogcity.com/cc.class/cc";
	   	myForm.qry.name="st";
		myForm.ccsyn.value = "157";
		myForm.main.value = "ccn_search";
		myForm.sy.value = "products";
	} else if (destination != 'shopping') {
		myForm.action="http://findit.ivillage.com/find";
	   	myForm.qry.name="qry";
	} 
	
	return true;
}

