// JScript source code 
//this script is used to change protocol to http in case of Login or Enroll Now pages.
//and switch to http in case of another page.
 
if (location.href.toLowerCase().indexOf('itxtest') > -1 ){
	//ITX development server, DO NOTHING
}
else
{
	if ( ( location.href.toLowerCase().indexOf('tabid/393') > -1 ) || ( location.href.toLowerCase().indexOf('tabid/394') > -1 ) || ( location.href.toLowerCase().indexOf('tabid/313') > -1 ) || ( location.href.toLowerCase().indexOf('tabid/385') > -1 ) )
	{
		//LOGIN OR ENROLL NOW PAGE
		//alert('tabid/70 or tabid/83'); 
		if (location.protocol.toLowerCase() == 'http:')
		{
			//alert('http');
			var url = location.href.replace('http:','https:');
			//alert(url);
			//switch to https
			window.location = url
		}
	}
	else 
	{
		// NOT LOGIN OR ENROLL NOW PAGE
		//alert('NOT tabid/70 or tabid/83'); 
		if (location.protocol.toLowerCase() == 'https:')
		{
			//alert('https');
			var url =  location.href.replace('https:','http:');
			//alert(url);
			window.location = url;
		}
	}
}
