
function BuildURL( url )
{	
	var curUrl = location.href;
	if ( curUrl.indexOf('www') != -1 ) {
		return "http://www.cleaningtips.com/" + url;
	}	
	else
	{
		return "http://cleaningtips.com/" + url;
	}
}

function XmlPostRequest( post_url, post_type, post_string, xmlStateChanged )
{
	
	if ( post_url != "" && post_string != "" && post_type != "" ) 
	{
		var url= BuildURL( post_url )
		url=url+"?q=hold"
		url=url+"&rtype="+ post_type
		url=url+ post_string
		xmlHttp=getXMLHTTPObject()	
		xmlHttp.onreadystatechange = xmlStateChanged;
		xmlHttp.open("GET", url, true)
		xmlHttp.send( null )
		//return txtResponse
	}
}


function getXMLHTTPObject()
{
    //instantiate new XMLHttpRequest object
    var objhttp=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');
    if(!objhttp){return};
    return objhttp;
}




					
				
		
		
	