/*
{NY notes}

Guys I m  using this for cross browser usablity and to make http calls more reliable. --ny
Please follow the comments..
*/
function yconnect(url,frm,cnt)
{
  //show the result in this content
    var responseSuccess = function(o){ 
        document.getElementById(cnt).innerHTML=o.responseText;
		
    }

//if any failure show msg 
    var responseFailure = function(o){ 
        //alert("XMLHTTPRequest Failure");
    }

//used to handle call back events     
    var callback =
    {
        success:responseSuccess,
        failure:responseFailure
    }



// Create object and intiate connection. 	

	if(frm != ''){
		// set the from where you need to get the data 
		YAHOO.util.Connect.setForm(frm);
		var cObj = YAHOO.util.Connect.asyncRequest('POST', url, callback,null);
	}else{
		var cObj = YAHOO.util.Connect.asyncRequest('GET', url, callback,null);
	}




//This is to check the connection status 
	var callStatus = YAHOO.util.Connect.isCallInProgress(cObj);

// check for the status and show loading information 
	if(callStatus){
		document.getElementById(cnt).innerHTML="";
	}
	
}	
