	var menuDDOn = "";


	function activateCaptcha(URL, idFrame) {
  		var IFrameDoc;
  		var IFrameObj;
	
    		if (document.frames) {
     		 	// this is for IE5 Mac, because it will only
      		// allow access to the document object
      		// of the IFrame if we access it through
      		// the document.frames array
      		IFrameObj = document.frames[idFrame];

   		 }
		else if (window.frames) {
			IFrameObj = window.frames[idFrame];

   		 }
		else {
			IFrameObj = getElementById(idFrame);
    		}
 
  		if (IFrameObj.contentDocument) {
   			 // For NS6
    			IFrameDoc = IFrameObj.contentDocument; 
  		} else if (IFrameObj.contentWindow) {
   			 // For IE5.5 and IE6
    			IFrameDoc = IFrameObj.contentWindow.document;
  		} else if (IFrameObj.document) {
    			// For IE5
    			IFrameDoc = IFrameObj.document;
  		} else {

    			return true;
  		}
  
  		IFrameDoc.location.replace(URL);
  		return false;
	}


	function addFieldValue(field, newvalue) {
    		var formField = new getObj(field);
		formField.obj.value = newvalue;
		return true;
	}
		

	function remoteMessage(mstring) {
		var errMess = new getObj('qformerror');
		errMess.obj.innerHTML = mstring;
	}

		
	function isCaptcha() {
		var errMess = new getObj('qformerror');
		var danswer = new getObj('inpAnswer');
		if (danswer.obj.value==""||danswer.obj.value=="Type your answer here...") {
			errMess.obj.innerHTML = "Please answer the question in the top area";
			return false;
			}
		var inpCA = new getObj('inpChallengeAnswer');
		if (inpCA.obj.value == "") {
			errMess.obj.innerHTML = "Please answer security question above";
			return false;
			}
		var getChallengeKey = new getObj('inpChallengeKey');
		var getChallengeAnswer = new getObj('inpChallengeAnswer');
		var getAttempt = new getObj('inpAttempt');
		activateCaptcha('/qowpost.asp\?CK\=' + getChallengeKey.obj.value + '\&CA\=' + getChallengeAnswer.obj.value + '\&a\=' + getAttempt.obj.value, 'captcha');
		return false;
	} 


	

	function showQForm() {
		var x = new getObj('dogs_body_content');
		x.obj.setAttribute("class","semitransparent");
		x.obj.setAttribute("className","semitransparent");

		var z = new getObj('breeders_body_content');
		z.obj.setAttribute("class","semitransparent");
		z.obj.setAttribute("className","semitransparent");

		var y = new getObj('question_form_div');
		y.obj.setAttribute("class","question_form_container_on");
		y.obj.setAttribute("className","question_form_container_on");

		activateCaptcha('\/captcha1.asp','captcha');

		return false;
	}

	function hideQForm() {
		var x = new getObj('dogs_body_content');
		x.obj.setAttribute("class","");
		x.obj.setAttribute("className","");

		var z = new getObj('breeders_body_content');
		z.obj.setAttribute("class","");
		z.obj.setAttribute("className","");

		var y = new getObj('question_form_div');
		y.obj.setAttribute("class","question_form_container_off");
		y.obj.setAttribute("className","question_form_container_off");

		return false;
	}

	function submitAnswer() {

		document.qform.submit();
	}

	function doneQForm() {
		var qdiv = new getObj('question_form');
		qdiv.obj.innerHTML = "\<br\>\<br\>Thank you for your submission.\<br\>\<br\>Be sure to check back each week to read the best answers, and to post your answer to a new question!\<br\>\<br\>\<input type\=\"button\" name\=\"cancel\" value\=\"Close\" class\=\"question_form_input\" onClick\=\"hideQForm\(\)\;\">";
		var qbutton = new getObj('showq');
		qbutton.obj.onclick = '';
		setTimeout('hideQForm()', 4000);
	}

