    function clearTextBoxOnCondition(textBox,conditionText){
        if(textBox.value == conditionText)
          textBox.value="";
    }
    function popUp(url, width, height, scrolls) {
		winOptions = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + scrolls + ",resizable=yes,copyhistory=no,width=" + width + ",height=" + height + ",screenX=20,screenY=20";
		var win = window.open(url, 'Bergdorf_Goodman', winOptions);
		if (!win.opener) win.opener = self; // For JS1.0
		if (win.focus) win.focus();
	  }
    function getArgs(){
	   var args = new Object();
	   var query = location.search.substring(1);     // Get query string
	   var pairs = query.split("&");                 // Split at ampersand
	   search_array = query.split("&");     
	   for (var i=0; i < pairs.length; i++){
	       var pos = pairs[i].indexOf('=');          // Look for "name=value"
	       if (pos == -1) continue;                  // If not found, skip
	       var argname = pairs[i].substring(0,pos);  // Extract the name
	       var value = pairs[i].substring(pos+1);    // Extract the value
	       args[argname] = unescape(value);          // Store as a decoded value
	   }
	   return args;                                  // Return the object
	}
  function checkPopUp() {
    	var args = getArgs();
    	if (args.eventsPopUp == 'true') {
    	popUp=window.open('/store/service/events_rsvp.jhtml', '', 'width=540,height=420,screenX=20,screenY=20,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no');
				popUp.focus(); 
			}
		}  
        