/*
{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;
	//custom_yconnect(o.responseText);
    }

//if any failure show msg 
    var responseFailure = function(o){ 
        alert("Due to some Internet issues your request could not be processed.\n Please try again");
    }

//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)
	{
		if(cnt != 'newsletter_subscription')
		{
			//document.getElementById(cnt).innerHTML="<span style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;'>&nbsp; Loading...</span>";
			document.getElementById(cnt).innerHTML = "<img src='images/guitar.gif'>";
		}
	}
	

	
}	


function custom_yconnect(url,frm,cnt,func)
{
   
//show the result in this content
    var responseSuccess = function(o){ 
		document.getElementById(cnt).innerHTML=o.responseText;
		//window.setTimeout("test()", 300);
		setTimeout("test()", 1000);
		//test();
		
    }
	
//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="<span style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:10px;'>&nbsp; Loading...</span>";
	}
	
	
	
}	


function test()
{
	alert("bhbhj");
}

	function test()
				{
					var emailarray4400= new Array(105,110,102,111,64,97,108,108,115,111,114,116,115,99,116,46,99,111,109,46,97,117)
					var postemail4400=''
					for (i=0;i<emailarray4400.length;i++)
					postemail4400+=String.fromCharCode(emailarray4400[i])
					document.write('<a href="mailto:'+postemail4400+'" class="link">'+postemail4400+'</a>')
				}