// EXTERNAL AJAX FOR FORM DROP DOWNS

function noError(){return true;}
window.onerror = noError;

function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;

// select box
function GetXmlHttpObject(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObject2(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObject3(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObjectz(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}


function stateChanged()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResult").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlData(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResult").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChanged2()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResult2").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlData2(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResult2").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObject2()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged2;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChanged3()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResult3").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlData3(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResult3").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObject3()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged3;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChangedz()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultz").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataz(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultz").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectz()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedz;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChangedMap()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultMap").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataMap(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultMap").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectz()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedz;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function set_class(obj,number) {
$('#tabs li a').removeClass('tnActive');
			$(obj).addClass('tnActive');
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// CATEGORIES

// select box
function GetXmlHttpObjectCatOne(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObjectCatTwo(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObjectCatThree(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}

function GetXmlHttpObjectCatFour(handler)
{
    var objXMLHttp=null
    if (window.XMLHttpRequest)
    {
        objXMLHttp=new XMLHttpRequest()
    }
    else if (window.ActiveXObject)
    {
        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
    }
    return objXMLHttp
}
function stateChangedCatOne()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultCatOne").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataCatOne(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultCatOne").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectCatOne()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedCatOne;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChangedCatTwo()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultCatTwo").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataCatTwo(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultCatTwo").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectCatTwo()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedCatTwo;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

function stateChangedCatThree()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultCatThree").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataCatThree(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultCatThree").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectCatThree()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedCatThree;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}
function stateChangedCatFour()
{
    if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
    {
            document.getElementById("txtResultCatFour").innerHTML= xmlHttp.responseText;
    }
    else {
            //alert(xmlHttp.status);
    }
}

// Will populate data based on input
function htmlDataCatFour(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResultCatFour").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObjectCatFour()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChangedCatFour;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}

// JAVASCRIPT FUNCTIONS BBCODE, CLEAR FIELDS //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

// JavaScript Document

function notloggedin() {
	alert("You need to be Registered and Logged in to use this feature.. Join Now by clicking on the log in link at the top of the website");
	$('#login_content').slideToggle();
}
function clearits()
{
var panel = document.getElementById('s');
panel.value='';
panel.focus();
} 

function clearits2()
{
var panel = document.getElementById('s');
panel.value='';
panel.focus();
} 

function clearitc()
{
var panel = document.getElementById('comment');
panel.value='';
panel.focus();
} 

function setHome()
{
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(window.location.href);
}

function clearitreg()
{
var panel = document.getElementById('suburbreg');
panel.value='';
panel.focus();
}

function clearitcat()
{
var panel = document.getElementById('clearcat');
panel.value='';
panel.focus();
}

function check_blockquote1(listing_form, maxLen) 
{
if (listing_form.blockquote1.value.length > maxLen) {
listing_form.blockquote1.value = listing_form.blockquote1.value.substring(0, maxLen);
listing_form.blockchars1.value = "none";
}
else{ 
listing_form.blockchars1.value = maxLen - listing_form.blockquote1.value.length - 1;

	}
	if (listing_form.blockchars1.value < 1){ 
	listing_form.blockchars1.value = 0;
	}
	
}

function check_blockquote2(listing_form, maxLen) 
{
if (listing_form.blockquote2.value.length > maxLen) {
listing_form.blockquote2.value = listing_form.blockquote2.value.substring(0, maxLen);
listing_form.blockchars2.value = "none";
}
else{ 
listing_form.blockchars2.value = maxLen - listing_form.blockquote2.value.length - 1;

	}
	if (listing_form.blockchars2.value < 1){ 
	listing_form.blockchars2.value = 0;
	}	
}

function check_length(listing_form, maxLen)
{
if (listing_form.wpx_description.value.length > maxLen) {
listing_form.wpx_description.value = listing_form.wpx_description.value.substring(0, maxLen);
listing_form.text_num.value = "none";
}
else{ 
listing_form.text_num.value = maxLen - listing_form.wpx_description.value.length - 1;

	}
	if (listing_form.text_num.value < 1){ 
	listing_form.text_num.value = 0;
	}
	
}


function check_length01(listing_form, maxLen)
{
if (listing_form.description1.value.length > maxLen) {
listing_form.description1.value = listing_form.description1.value.substring(0, maxLen);
listing_form.chars1.value = "none";
}
else{ 
listing_form.chars1.value = maxLen - listing_form.description1.value.length - 1;

	}
	if (listing_form.chars1.value < 1){ 
	listing_form.chars1.value = 0;
	}
	
}

function check_length02(listing_form, maxLen)
{
if (listing_form.description2.value.length > maxLen) {
listing_form.description2.value = listing_form.description2.value.substring(0, maxLen);
listing_form.chars2.value = "none";
}
else{ 
listing_form.chars2.value = maxLen - listing_form.description2.value.length - 1;

	}
	if (listing_form.chars2.value < 1){ 
	listing_form.chars2.value = 0;
	}
	
}

function check_length03(listing_form, maxLen)
{
if (listing_form.description3.value.length > maxLen) {
listing_form.description3.value = listing_form.description3.value.substring(0, maxLen);
listing_form.chars3.value = "none";
}
else{ 
listing_form.chars3.value = maxLen - listing_form.description3.value.length - 1;

	}
	if (listing_form.chars3.value < 1){ 
	listing_form.chars3.value = 0;
	}
	
}

function check_length04(listing_form, maxLen)
{
if (listing_form.description4.value.length > maxLen) {
listing_form.description4.value = listing_form.description4.value.substring(0, maxLen);
listing_form.chars4.value = "none";
}
else{ 
listing_form.chars4.value = maxLen - listing_form.description4.value.length - 1;

	}
	if (listing_form.chars4.value < 1){ 
	listing_form.chars4.value = 0;
	}
	
}
function check_length05(listing_form, maxLen)
{
if (listing_form.description5.value.length > maxLen) {
listing_form.description5.value = listing_form.description5.value.substring(0, maxLen);
listing_form.chars5.value = "none";
}
else{ 
listing_form.chars5.value = maxLen - listing_form.description5.value.length - 1;

	}
	if (listing_form.chars5.value < 1){ 
	listing_form.chars5.value = 0;
	}
	
}

function check_length06(listing_form, maxLen)
{
if (listing_form.description6.value.length > maxLen) {
listing_form.description6.value = listing_form.description6.value.substring(0, maxLen);
listing_form.chars6.value = "none";
}
else{ 
listing_form.chars6.value = maxLen - listing_form.description6.value.length - 1;

	}
	if (listing_form.chars6.value < 1){ 
	listing_form.chars6.value = 0;
	}
	
}

function check_length07(listing_form, maxLen)
{
if (listing_form.description7.value.length > maxLen) {
listing_form.description7.value = listing_form.description7.value.substring(0, maxLen);
listing_form.chars7.value = "none";
}
else{ 
listing_form.chars7.value = maxLen - listing_form.description7.value.length - 1;

	}
	if (listing_form.chars7.value < 1){ 
	listing_form.chars7.value = 0;
	}
	
}

function check_length08(listing_form, maxLen)
{
if (listing_form.description8.value.length > maxLen) {
listing_form.description8.value = listing_form.description8.value.substring(0, maxLen);
listing_form.chars8.value = "none";
}
else{ 
listing_form.chars8.value = maxLen - listing_form.description8.value.length - 1;

	}
	if (listing_form.chars8.value < 1){ 
	listing_form.chars8.value = 0;
	}
	
}

function check_length09(listing_form, maxLen)
{
if (listing_form.description9.value.length > maxLen) {
listing_form.description9.value = listing_form.description9.value.substring(0, maxLen);
listing_form.chars9.value = "none";
}
else{ 
listing_form.chars9.value = maxLen - listing_form.description9.value.length - 1;

	}
	if (listing_form.chars9.value < 1){ 
	listing_form.chars9.value = 0;
	}
	
}

function check_length10(listing_form, maxLen)
{
if (listing_form.description10.value.length > maxLen) {
listing_form.description10.value = listing_form.description10.value.substring(0, maxLen);
listing_form.chars10.value = "none";
}
else{ 
listing_form.chars10.value = maxLen - listing_form.description10.value.length - 1;

	}
	if (listing_form.chars10.value < 1){ 
	listing_form.chars10.value = 0;
	}
	
}

function check_length11(listing_form, maxLen)
{
if (listing_form.description11.value.length > maxLen) {
listing_form.description11.value = listing_form.description11.value.substring(0, maxLen);
listing_form.chars11.value = "none";
}
else{ 
listing_form.chars11.value = maxLen - listing_form.description11.value.length - 1;

	}
	if (listing_form.chars11.value < 1){ 
	listing_form.chars11.value = 0;
	}
	
}

function check_speciallength(listing_form, maxLen) 
{
if (listing_form.wpx_special_offer.value.length > maxLen) {
listing_form.wpx_special_offer.value = listing_form.wpx_special_offer.value.substring(0, maxLen);
listing_form.text_numsp.value = "none";
}
else{ 
listing_form.text_numsp.value = maxLen - listing_form.wpx_special_offer.value.length - 1;

	}
	if (listing_form.text_numsp.value < 1){ 
	listing_form.text_numsp.value = 0;
	}
	
}

function check_termslength(listing_form, maxLen) 
{
if (listing_form.wpx_special_terms.value.length > maxLen) {
listing_form.wpx_special_terms.value = listing_form.wpx_special_terms.value.substring(0, maxLen);
listing_form.text_terms.value = "none";
}
else{ 
listing_form.text_terms.value = maxLen - listing_form.wpx_special_terms.value.length - 1;

	}
	if (listing_form.text_terms.value < 1){ 
	listing_form.text_terms.value = 0;
	}
	
}

function check_longlength(listing_form, maxLen)
{
if (listing_form.wpx_description2.value.length > maxLen) {
listing_form.wpx_description2.value = listing_form.wpx_description2.value.substring(0, maxLen);
listing_form.text_num2.value = "none";
}
else{ 
listing_form.text_num2.value = maxLen - listing_form.wpx_description2.value.length - 1;

	}
	if (listing_form.text_num2.value < 1){ 
	listing_form.text_num2.value = 0;
	}
	
}

function check_longlength2(listing_form, maxLen)
{
if (listing_form.wpx_description3.value.length > maxLen) {
listing_form.wpx_description3.value = listing_form.wpx_description3.value.substring(0, maxLen);
listing_form.text_num3.value = "none";
}
else{ 
listing_form.text_num2.value = maxLen - listing_form.wpx_description2.value.length - 1;

	}
	if (listing_form.text_num2.value < 1){ 
	listing_form.text_num2.value = 0;
	}
	
}

function check_dirlength(listing_form, maxLen)
{
if (listing_form.directions.value.length > maxLen) {
listing_form.directions.value = listing_form.directions.value.substring(0, maxLen);
listing_form.text_numdir.value = "none";
}
else{ 
listing_form.text_numdir.value = maxLen - listing_form.directions.value.length - 1;

	}
	if (listing_form.text_numdir.value < 1){ 
	listing_form.text_numdir.value = 0;
	}
	
}

function check_address(listing_form, maxLen)
{
if (listing_form.address.value.length > maxLen) {
listing_form.address.value = listing_form.address.value.substring(0, maxLen);
listing_form.text_numad.value = "none";
}
else{ 
listing_form.text_numad.value = maxLen - listing_form.address.value.length - 1;

	}
	if (listing_form.text_numad.value < 1){ 
	listing_form.text_numad.value = 0;
	}
	
}

function check_postal(listing_form, maxLen)
{
if (listing_form.postal.value.length > maxLen) {
listing_form.postal.value = listing_form.postal.value.substring(0, maxLen);
listing_form.text_numpost.value = "none";
}
else{ 
listing_form.text_numpost.value = maxLen - listing_form.postal.value.length - 1;

	}
	if (listing_form.text_numpost.value < 1){ 
	listing_form.text_numpost.value = 0;
	}
	
}

function check_lengthkey(listing_form, maxLen)
{
if (listing_form.wpx_keyline.value.length > maxLen) {
listing_form.wpx_keyline.value = listing_form.wpx_keyline.value.substring(0, maxLen);
listing_form.text_num_keyline.value = "none";
}
else{ 
listing_form.text_num_keyline.value = maxLen - listing_form.wpx_keyline.value.length - 1;

	}
	if (listing_form.text_num_keyline.value < 1){ 
	listing_form.text_num_keyline.value = 0;
	}
	
}







function ismaxlength(obj){
var mlength=obj.getAttribute? parseInt(obj.getAttribute("maxlength")) : ""
if (obj.getAttribute && obj.value.length>mlength){
alert('You have reached your maximum limit of characters allowed');
obj.value=obj.value.substring(0,mlength)
}
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

<!--
var clientInfo = navigator.userAgent.toLowerCase();
var isIE = ( clientInfo.indexOf("msie") != -1 );
var isWin = ( (clientInfo.indexOf("win")!=-1) || (clientInfo.indexOf("16bit") != -1) );

function createBBtag( openerTag , closerTag , areaId ) {
	if(isIE && isWin) {
		createBBtag_IE( openerTag , closerTag , areaId );
	}
	else {
		createBBtag_nav( openerTag , closerTag , areaId );
	}
	return;
}

function createBBtag_IE( openerTag , closerTag , areaId ) {
	var txtArea = document.getElementById( areaId );
	var aSelection = document.selection.createRange().text;
	var range = txtArea.createTextRange();

	if(aSelection) {
		document.selection.createRange().text = openerTag + aSelection + closerTag;
		txtArea.focus();
		range.move('textedit');
		range.select();
	}
	else {
		var oldStringLength = range.text.length + openerTag.length;
		txtArea.value += openerTag + closerTag;
		txtArea.focus();
		range.move('character',oldStringLength);
		range.collapse(false);
		range.select();
	}
	return;
}

function createBBtag_nav( openerTag , closerTag , areaId ) {
	var txtArea = document.getElementById( areaId );
	if (txtArea.selectionEnd && (txtArea.selectionEnd - txtArea.selectionStart > 0) ) {
		var preString = (txtArea.value).substring(0,txtArea.selectionStart);
		var newString = openerTag + (txtArea.value).substring(txtArea.selectionStart,txtArea.selectionEnd) + closerTag;
		var postString = (txtArea.value).substring(txtArea.selectionEnd);
		txtArea.value = preString + newString + postString;
		txtArea.focus();
	}
	else {
		var offset = txtArea.selectionStart;
		var preString = (txtArea.value).substring(0,offset);
		var newString = openerTag + closerTag;
		var postString = (txtArea.value).substring(offset);
		txtArea.value = preString + newString + postString;
		txtArea.selectionStart = offset + openerTag.length;
		txtArea.selectionEnd = offset + openerTag.length;
		txtArea.focus();
	}
	return;
}
//-->


// cmx forms

// apply inline-box only for mozilla
if( jQuery.browser.mozilla ) {
	// do when DOM is ready
	$( function() {
		// search form, hide it, search labels to modify, filter classes nocmx and error
		$( 'form.cmxform' ).hide().find( 'p>label:not(.nocmx):not(.error)' ).each( function() {
			var $this = $(this);
			var labelContent = $this.html();
			var labelWidth = document.defaultView.getComputedStyle( this, '' ).getPropertyValue( 'width' );
			// create block element with width of label
			var labelSpan = $("<span>")
				.css("display", "block")
				.width(labelWidth)
				.html(labelContent);
			// change display to mozilla specific inline-box
			$this.css("display", "-moz-inline-box")
				// remove children
				.empty()
				// add span element
				.append(labelSpan);
		// show form again
		}).end().show();
	});
};

function ClickToPrint()
{
        var DocumentContainer = document.getElementById('print_div');		
        var WindowObject = window.open('', "ShowMe&trade; Favourites", "width=740,height=325,top=200,left=250,toolbars=no,scrollbars=yes,status=no,resizable=no");       
		WindowObject.document.writeln(DocumentContainer.innerHTML);
        WindowObject.document.close();
        WindowObject.focus();
        WindowObject.print();
        WindowObject.close();
    }