function getCookie ( cookie_name ) {
    var results = document.cookie.match ( cookie_name + '=(.*?)(;|$)' );
    if (results) {
        return ( unescape ( results[1] ) );
    } else {
        return null;
    }
} 

function setCookie (name, value, days) {
    var date = new Date();
    date.setTime(date.getTime() + (days*24*60*60*1000));
    var expires = "; expires=" + date.toGMTString();
    document.cookie = name+"="+value+expires+"; path=/";
}

window.onunload  =  function() {
	if ( getCookie ( 'isVovici' ) == null && getCookie ( 'isLoaded' ) == null && getCookie ( 'order_success' ) == null && getCookie ( 'isC2c' ) == null ) { 
		setCookie ('isLoaded', 'yes', 1);
		ws_window=window.open('https://vovici.com/wsb.dll/s/15241g38f96','','width=620,height=600');
	}
}

window.onload = function(){
	setCookie ('isVovici', 'yes', -1);
}