﻿hs.graphicsDir = '/highslide/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.numberPosition = 'caption';
	hs.dimmingOpacity = 0.75;

	// Add the controlbar
	if (hs.addSlideshow) hs.addSlideshow({
		//slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
			opacity: .75,
			position: 'top center',
			hideOnMouseOut: true
		}
	});



function checkscode()
{
var tt;
tt="";
if (document.form1.ctl13$codeup.value=="")
{
document.getElementById("tbcodeup").innerHTML="<span color=\"red\">Vui lòng nhập mã Up tin</span>";
tt="1";
}
else
{document.getElementById("tbcodeup").innerHTML="";
}
 

if (tt=="")
return true;
else
return false;

}



function checksubmituser()
{
var tt;
tt="";
if (document.form1.ctl18$title.value=="")
{
document.getElementById("tieudeloi").innerHTML="<span color=\"red\">*</span>";
tt="1";
}
else
{document.getElementById("tieudeloi").innerHTML="";
}

if (document.form1.ctl18$cityadd.value=="--Chọn tỉnh/TP--")
{
document.getElementById("tinhloi").innerHTML="<span color=\"red\">*</span>";
tt+="1";
}
else
{document.getElementById("tinhloi").innerHTML="";
}

if (document.form1.ctl18$catadd.value=="--Chọn Danh mục--")
{
document.getElementById("loailoi").innerHTML="<span color=\"red\">*</span>";
tt+="1";
}
else

{document.getElementById("loailoi").innerHTML="";
}


if (document.form1.ctl18$nhucauadd.value=="")
{
document.getElementById("kieuloi").innerHTML="<span color=\"red\">*</span>";
tt+="1";
}
else

{document.getElementById("kieuloi").innerHTML="";
}


if (document.form1.ctl18$email.value=="")
{
document.getElementById("loiemail").innerHTML="<span color=\"red\">*</span>";
tt+="1";
}
else

{document.getElementById("loiemail").innerHTML="";
}


if (tt=="")
return true;
else
return false;

}

function OnStateChangedpoll(cmbState) {
            alert(cmbState.GetValue());
            //parentid.PerformCallback(cmbState.GetValue());
        } 

function weather(cmbState) {
            alert(cmbState.GetValue());
           AP.Core.JS.DynamicContent.getContent({id:'boxInfo_weather-content', url: '/ajax/Weather/get.html', src: cmbState.GetValue()});
        } 
function traslate(cmbState) {
           // alert(cmbState.GetValue());
            doTranslationAll1("<b>"+document.getElementById("ctl15_ASPxGridView2_row0_tieude").innerHTML +"</b><br/>"+ document.getElementById("ctl15_ASPxGridView2_row0_noidung").innerHTML,cmbState.GetValue());
            
            
            //parentid.PerformCallback(cmbState.GetValue());
        } 
        
        
function OnStateChangedcityadd(cmbState) {
            //alert(cmbState.GetValue());
            districadd.PerformCallback(cmbState.GetValue());
        } 

function OnStateChangedcity(cmbState) {
            //alert(cmbState.GetValue());
            distric.PerformCallback(cmbState.GetValue());
        } 
       function OnStateChangedcat(cmbState) {
            //alert(cmbState.GetValue());
            subcat.PerformCallback(cmbState.GetValue());
        } 
        
         function OnStateChangedcatadd(cmbState) {
            //alert(cmbState.GetValue());
            nhucauadd.PerformCallback(cmbState.GetValue());
        } 
    function alexa() {
    var url = document.form1.alexurl.value;
    
new Ajax.Updater( 'alexalbl','http://www.checkpr.org/results.php?url='+  url, { asynchronous: 1 } ) ;
  
}     
         
 function loadweather() {
new Ajax.Updater( 'thoitietlbl','/modul/tools/weathe.aspx', { asynchronous: 1 } ) ;
alert('pl');
}

xajax_danhmuc = function() { return xajax.request( { xjxfun: 'danhmuc' }, { parameters: arguments } );
};
xajax_hotro = function() { 
return xajax.request( { xjxfun: 'hotro' }, { parameters: arguments } );
};
xajax_lich= function() { 
return xajax.request( { xjxfun: 'lich' }, { parameters: arguments } );
};
xajax_bantin= function() { 
return xajax.request( { xjxfun: 'bantin' }, { parameters: arguments } );
};

xajax_thongke = function() { 
return xajax.request( { xjxfun: 'thongke' }, { parameters: arguments } );

};
xajax_weather = function() { 

return xajax.request( { xjxfun: 'weather' }, { parameters: arguments } );
};


