/*
	Name:		Enforce SSL for Applications
	File:		/js/modules/ssl_enforce.js
	Version:	2009-07-17
----------------------------------------------- */

var ssl_enforce = new Class({

	initialize: function(url){
		
		this.url = url;
		this.returnHTTPS(url);
	
	},
	
	
	returnHTTPS: function(){
		
		//Replace http with https://
		this.url = this.url.replace(new RegExp(/^http\:\/\//i),"https://");
		this.url = this.url.replace("www.", "");
		return this.url;
	
	}


});









